Skip to content
Discussion options

You must be logged in to vote

It looks like (and I didn't actually know this) Python/PyGhidra scripts do not require the -scriptPath to be set for out-of-tree scripts, but Java scripts do. So @henrihein I would think this is the issue. Change your command to:

cmd /c C:[path...]\ghidra_12.0.4_PUBLIC\support\analyzeHeadless.bat "C:[APPDATA path...]\Ghidra\ghidra1893291174\ghidra1893291174_639088574209880818" tempProject -import "C:[path...]\cat.exe" -postscript "GPTest.java" -deleteproject -scriptpath "C:\t5C019DF15B19A5"

TIL Python scripts don't need to specify the scriptPath.

Replies: 5 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ryanmkurtz
Comment options

@henrihein
Comment options

Comment options

You must be logged in to vote
1 reply
@henrihein
Comment options

Comment options

You must be logged in to vote
3 replies
@ryanmkurtz
Comment options

@henrihein
Comment options

@henrihein
Comment options

Comment options

You must be logged in to vote
6 replies
@bdemick
Comment options

Answer selected by henrihein
@ABratovic
Comment options

@bdemick
Comment options

@ABratovic
Comment options

@henrihein
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants