NationalSecurityAgency / ghidra

Ghidra is a software reverse engineering (SRE) framework
https://www.nsa.gov/ghidra
Apache License 2.0
51.9k stars 5.89k forks source link

Import failure may be due to missing opinion for "PeLoader" #6966

Closed 0xh3xa closed 1 month ago

0xh3xa commented 1 month ago

Describe the bug ERROR NOTE: Import failure may be due to missing opinion for "PeLoader". If so, please contact Ghidra team for assistance. (HeadlessAnalyzer)

To Reproduce

Steps to reproduce the behavior:

./analyzeHeadless ~/reverse project -import binaries -loader PeLoader -loader-loadSystemLibraries true

Environment:

OS: any Linux Java Version: 17 Ghidra Version: 11.2 Ghidra Origin: official build

ryanmkurtz commented 1 month ago

Are there non-PE files in that binaries directory?

0xh3xa commented 1 month ago

@ryanmkurtz They are PE files. I have also tried using other PE and updated the argument and it works fine, thanks

./analyzeHeadless ~/reverse project -import binaries -loader PeLoader -librarySearchPaths ~/system32