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
153 stars 14 forks source link

Cross Arch: Java Path delimiter #3

Closed lacraig2 closed 2 years ago

lacraig2 commented 2 years ago

On non-windows systems the java path is not necessarily delimited by ;. In particular, on OSX and Linux it is delimited by :.

For that reason when attempting to split at this line on non-windows systems it results in a single very long invalid path provided to the compiler.

https://github.com/Defense-Cyber-Crime-Center/pyhidra/blob/c487e4d39445d836e8626aacc65f206f127ab063/pyhidra/javac.py#L39

Target: OSX 11.6.4, Python 3.7.6, Ghidra 10.2 DEV