grammatech / retypd-ghidra-plugin Goto Github PK
View Code? Open in Web Editor NEWRetypd plugin for Ghidra reverse engineering framework from NSA
License: GNU General Public License v3.0
Retypd plugin for Ghidra reverse engineering framework from NSA
License: GNU General Public License v3.0
The script gives me following error:
(AutoAnalysisManager)
INFO REPORT: Analysis succeeded for file: /small_examples/benchmarks/stripped/test.exe (HeadlessAnalyzer)
INFO SCRIPT:
/open_source/ghidra_10.2.3_PUBLIC/Ghidra/Extensions/GhidraRetypd/ghidra_scripts/Retypd.java (HeadlessAnalyzer)
WARN Decompiling 00204020, pcode error at 00204020: Unable to disassemble EXTERNAL block location: 00204020 (DecompileCallback)
WARN Decompiling 00204008, pcode error at 00204008: Unable to disassemble EXTERNAL block location: 00204008 (DecompileCallback)
WARN Decompiling 00204000, pcode error at 00204000: Unable to disassemble EXTERNAL block location: 00204000 (DecompileCallback)
INFO Executing command: retypd-ghidra --json-in /tmp/retypd3995791693830618628/bin.json (RetypdRunner)
INFO Retypd.java> ERROR: Failed to execute Retypd executable: ghidraretypd.AnalysisException: Failed to execute ghidra-retypd:
Traceback (most recent call last):
File "/open_source/retypd-ghidra-plugin/ghidra_retypd_provider/venv/bin/retypd-ghidra", line 33, in <module>
sys.exit(load_entry_point('ghidra-retypd-provider==0.1.dev0', 'console_scripts', 'retypd-ghidra')())
File "/pcfi/open_source/retypd-ghidra-plugin/ghidra_retypd_provider/venv/lib64/python3.9/site-packages/ghidra_retypd_provider/main.py", line 47, in main
types = infer_types(args.json_in, args.function)
File "/pcfi/open_source/retypd-ghidra-plugin/ghidra_retypd_provider/venv/lib64/python3.9/site-packages/ghidra_retypd_provider/type_inference.py", line 112, in infer_types
config = SolverConfig(
TypeError: __init__() got an unexpected keyword argument 'max_path_length' (GhidraScript)
Writing JSON output to /tmp/retypd3995791693830618628/bin.json
The error comes when SolverConfig
tries to behave like GraphSolverConfig
.
Edit:
I made following change to type_inference.py
config = SolverConfig(graph_solver_config = GraphSolverConfig(
max_path_length=15,
max_paths_per_root=5000,
max_total_paths=100000,
# precise_globals=False,
restrict_graph_to_reachable = False
))
And now it works, but I am not sure if that's the best way.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.