Commit ·
dc6986a
1
Parent(s): b9264ff
get offset
Browse files
main.py
CHANGED
|
@@ -22,7 +22,7 @@ def get_functions(file):
|
|
| 22 |
|
| 23 |
with pyghidra.open_program(file) as flat_api:
|
| 24 |
program = flat_api.getCurrentProgram()
|
| 25 |
-
function_addrs = [(f.getName(), f.getEntryPoint().
|
| 26 |
|
| 27 |
# o = subprocess.run(["/code/GhidraFunctionCPPExporter/export.bash", file, "output_dir", TEMP_DIR], shell=False, capture_output=True, encoding="utf8")
|
| 28 |
|
|
|
|
| 22 |
|
| 23 |
with pyghidra.open_program(file) as flat_api:
|
| 24 |
program = flat_api.getCurrentProgram()
|
| 25 |
+
function_addrs = [(f.getName(), f.getEntryPoint().getOffset()) for f in program.getFunctionManager().getFunctions(True)]
|
| 26 |
|
| 27 |
# o = subprocess.run(["/code/GhidraFunctionCPPExporter/export.bash", file, "output_dir", TEMP_DIR], shell=False, capture_output=True, encoding="utf8")
|
| 28 |
|