Skip to content

Commit

Permalink
BinExport Scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
EliasKotlyar committed Jan 26, 2024
1 parent fc87a0e commit fab890d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
18 changes: 18 additions & 0 deletions general/ExportBin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#TODO write a description for this script
#@author
#@category Tuning
#@keybinding
#@menupath
#@toolbar


#TODO Add User Code Here
from java.io import File
fullpath = "test.bin"
from ghidra.app.util.exporter import BinaryExporter
bexp = BinaryExporter()
memory = currentProgram.getMemory()
monitor = getMonitor()
domainObj = currentProgram
f = File(fullpath)
bexp.export(f, domainObj, memory, monitor)
19 changes: 19 additions & 0 deletions general/ExportBinExport.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#TODO write a description for this script
#@author
#@category Tuning
#@keybinding
#@menupath
#@toolbar


from com.google.security.binexport import BinExportExporter
#TODO Add User Code Here
from java.io import File
fullpath = "test.BinExport"
from ghidra.app.util.exporter import BinaryExporter
bexp = BinExportExporter()
memory = currentProgram.getMemory()
monitor = getMonitor()
domainObj = currentProgram
f = File(fullpath)
bexp.export(f, domainObj, memory, monitor)

0 comments on commit fab890d

Please sign in to comment.