dod-cyber-crime-center / pyhidra

Pyhidra is a Python library that provides direct access to the Ghidra API within a native CPython interpreter using jpype.
Other
176 stars 15 forks source link

BUG: pyhidra cli crash when running script in headless mode #32

Closed wntress closed 9 months ago

wntress commented 9 months ago
Traceback (most recent call last):
  File "/home/user/.virtualenvironments/pyhidra/bin/pyhidra", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/user/.virtualenvironments/pyhidra/lib/python3.11/site-packages/pyhidra/__main__.py", line 218, in main
    parser.parse_args(namespace=PyhidraArgs(parser)).func()
  File "/home/user/.virtualenvironments/pyhidra/lib/python3.11/site-packages/pyhidra/__main__.py", line 62, in func
    analyze=not self.skip_analsis
                ^^^^^^^^^^^^^^^^^
AttributeError: 'PyhidraArgs' object has no attribute 'skip_analsis'. Did you mean: 'skip_analysis'?

Issue: Crashes when running scripts in headless mode: pyhidra <script>

Fix: editing the typo manually in pyhidra/__main__.py seems to fix this

Version info: pyhidra 0.5.3 ghidra 10.4 python 3.11