Giter Club home page Giter Club logo

retypd-ghidra-plugin's People

Contributors

aeflores avatar asaven-gt avatar jaruchti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

hinoue am009 sw2160

retypd-ghidra-plugin's Issues

headless analysis script error

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.