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

yara.py not correctly finding executable on imported projects #7

Open
tfriesen opened this issue Apr 30, 2020 · 1 comment
Open

yara.py not correctly finding executable on imported projects #7

tfriesen opened this issue Apr 30, 2020 · 1 comment

Comments

@tfriesen
Copy link

Long story short, I'm following your excellent Youtube series on reversing wannacry, and due to headaches with the ooanalyzer plugin, moved from Windows to Linux, and transferred the project from one to the other in order to preserve my work so far.

However, the following line in yara.py:

currentProgram.getDomainFile().getMetadata()["Executable Location"]

Returns the old location on my C: drive, rather than its current location in my Linux machine. I can workaround this by manually specifying the executable location.

This may be a bug with Ghidra rather than your script.

@Te-k
Copy link
Contributor

Te-k commented Jul 2, 2020

Is there a difference between currentProgram.getDomainFile().getMetadata()["Executable Location"] and currentProgram.getExecutablePath() in Ghidra ?

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

2 participants