Commit ·
9446bbb
1
Parent(s): f29eead
Disassembly
Browse files
main.py
CHANGED
|
@@ -146,7 +146,7 @@ This is a space to experiment with GhidraFunctionCPPExporter, a Ghidra scripts t
|
|
| 146 |
fm = program.getFunctionManager()
|
| 147 |
func = fm.getFunctionAt(program.getAddressFactory().getAddress(hex(selected_fun)))
|
| 148 |
listing = program.getListing()
|
| 149 |
-
disassembly = "\n".join([i.toString() for i in listing.getInstructions(func.
|
| 150 |
|
| 151 |
|
| 152 |
o = subprocess.run(["/code/GhidraFunctionCPPExporter/export.bash", state['file'], "base_name", "file", "address_set_str", hex(selected_fun), "output_dir", TEMP_DIR], shell=False, capture_output=True, encoding="utf8")
|
|
|
|
| 146 |
fm = program.getFunctionManager()
|
| 147 |
func = fm.getFunctionAt(program.getAddressFactory().getAddress(hex(selected_fun)))
|
| 148 |
listing = program.getListing()
|
| 149 |
+
disassembly = "\n".join([i.toString() for i in listing.getInstructions(func.getBody(), True)])
|
| 150 |
|
| 151 |
|
| 152 |
o = subprocess.run(["/code/GhidraFunctionCPPExporter/export.bash", state['file'], "base_name", "file", "address_set_str", hex(selected_fun), "output_dir", TEMP_DIR], shell=False, capture_output=True, encoding="utf8")
|