Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行命令行模式报错。 #68

Open
Darren-zl opened this issue May 17, 2023 · 1 comment
Open

运行命令行模式报错。 #68

Darren-zl opened this issue May 17, 2023 · 1 comment

Comments

@Darren-zl
Copy link

求助下我如果用GUI模式,到修改完BinAbsInspector.java(默认参数),那么GUI界面会闪退消失。但是如果是命令行模式的话会出现下面的错误。
image

@Darren-zl
Copy link
Author

D:\ghidra1\ghidra_10.1.2_PUBLIC_20220125\ghidra_10.1.2_PUBLIC\support>analyzeHea
dless D:/test test1 -import E:/ota/mi/payload1.bin -postScript BinAbsInspector "
@@-K 50 -callStringK 3 -Z3Timeout 1000 -timeout -1 -json -all"
INFO Using log config file: jar:file:/D:/ghidra1/ghidra_10.1.2_PUBLIC_20220125/
ghidra_10.1.2_PUBLIC/Ghidra/Framework/Generic/lib/Generic.jar!/generic.log4j.xml
(LoggingInitialization)
INFO Using log file: C:\Users\Administrator.ghidra.ghidra_10.1.2_PUBLIC\appli
cation.log (LoggingInitialization)
INFO Loading user preferences: C:\Users\Administrator.ghidra.ghidra_10.1.2_PU
BLIC\preferences (Preferences)
INFO Loading previous preferences: C:\Users\Administrator.ghidra.ghidra_10.1.
5_PUBLIC\preferences (Preferences)
INFO Class search complete (1709 ms) (ClassSearcher)
INFO Initializing SSL Context (SSLContextInitializer)
INFO Initializing Random Number Generator... (SecureRandomFactory)
INFO Random Number Generator initialization complete: SHA1PRNG (SecureRandomFac
tory)
INFO Trust manager disabled, cacerts have not been set (ApplicationTrustManager
Factory)
INFO HEADLESS Script Paths:
D:\ghidra1\ghidra_10.1.2_PUBLIC_20220125\ghidra_10.1.2_PUBLIC\Ghidra\Feature
s\VersionTracking\ghidra_scripts
D:\ghidra1\ghidra_10.1.2_PUBLIC_20220125\ghidra_10.1.2_PUBLIC\Ghidra\Feature
s\Base\ghidra_scripts
D:\ghidra1\ghidra_10.1.2_PUBLIC_20220125\ghidra_10.1.2_PUBLIC\Ghidra\Process
ors\DATA\ghidra_scripts
D:\ghidra1\ghidra_10.1.2_PUBLIC_20220125\ghidra_10.1.2_PUBLIC\Ghidra\Feature
s\Python\ghidra_scripts
D:\ghidra1\ghidra_10.1.2_PUBLIC_20220125\ghidra_10.1.2_PUBLIC\Ghidra\Feature
s\BytePatterns\ghidra_scripts
D:\ghidra1\ghidra_10.1.2_PUBLIC_20220125\ghidra_10.1.2_PUBLIC\Ghidra\Process
ors\PIC\ghidra_scripts
D:\ghidra1\ghidra_10.1.2_PUBLIC_20220125\ghidra_10.1.2_PUBLIC\Ghidra\Debug\D
ebugger-agent-dbgmodel-traceloader\ghidra_scripts
D:\ghidra1\ghidra_10.1.2_PUBLIC_20220125\ghidra_10.1.2_PUBLIC\Ghidra\Feature
s\FunctionID\ghidra_scripts
D:\ghidra1\ghidra_10.1.2_PUBLIC_20220125\ghidra_10.1.2_PUBLIC\Ghidra\Feature
s\GnuDemangler\ghidra_scripts
D:\ghidra1\ghidra_10.1.2_PUBLIC_20220125\ghidra_10.1.2_PUBLIC\Ghidra\Process
ors\8051\ghidra_scripts
D:\ghidra1\ghidra_10.1.2_PUBLIC_20220125\ghidra_10.1.2_PUBLIC\Ghidra\Feature
s\MicrosoftCodeAnalyzer\ghidra_scripts
D:\ghidra1\ghidra_10.1.2_PUBLIC_20220125\ghidra_10.1.2_PUBLIC\Ghidra\Feature
s\Decompiler\ghidra_scripts
C:\Users\Administrator.ghidra.ghidra_10.1.2_PUBLIC\Extensions\SleighDevToo
ls\ghidra_scripts
D:\ghidra1\ghidra_10.1.2_PUBLIC_20220125\ghidra_10.1.2_PUBLIC\Ghidra\Debug\D
ebugger\ghidra_scripts
D:\ghidra1\ghidra_10.1.2_PUBLIC_20220125\ghidra_10.1.2_PUBLIC\Ghidra\Feature
s\FileFormats\ghidra_scripts
C:\Users\Administrator.ghidra.ghidra_10.1.2_PUBLIC\Extensions\BinAbsInspec
tor\ghidra_scripts (HeadlessAnalyzer)
INFO HEADLESS: execution starts (HeadlessAnalyzer)
INFO Opening existing project: D:\test\test1 (HeadlessAnalyzer)
INFO Opening project: D:\test\test1 (HeadlessProject)
INFO REPORT: Processing input files: (HeadlessAnalyzer)
INFO project: D:\test\test1 (HeadlessAnalyzer)
INFO IMPORTING: E:\ota\mi\payload1.bin (HeadlessAnalyzer)
INFO No load spec found for import file: E:\ota\mi\payload1.bin (AutoImporter)

ERROR The AutoImporter could not successfully load E:\ota\mi\payload1.bin with t
he provided import parameters. Please ensure that any specified processor/cspec
arguments are compatible with the loader that is used during import and try agai
n. (HeadlessAnalyzer)
ERROR REPORT: Import failed for file: E:\ota\mi\payload1.bin (HeadlessAnalyzer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant