ghidra-evm icon indicating copy to clipboard operation
ghidra-evm copied to clipboard

Extension version for [ghidra_9.1.2_PUBLIC_20201108_ghidra_evm.zip] is incompatible with Ghidra.

Open MrToph opened this issue 4 years ago • 11 comments

Hi, I don't have much experience with Ghidra and followed your installation instructions.

It fails at the last step for me at:

Extension version for [ghidra_9.1.2_PUBLIC_20201108_ghidra_evm.zip] is incompatible with Ghidra.
---------------------------------------------------
Build Date: 2020-Dec-29 1701 EST
Ghidra Version: 9.2.2
Java Home: /Library/Java/JavaVirtualMachines/jdk-15.jdk/Contents/Home
JVM Version: Oracle Corporation 15
OS: Mac OS X 10.15.7 x86_64

Is Ghidra really that strict with versions that 9.1.2 scripts don't run on 9.2.2?

MrToph avatar Feb 02 '21 21:02 MrToph

When downgrading to 9.1.2 it works 👍

MrToph avatar Feb 02 '21 21:02 MrToph

I have little knowledge on Ghidra scripting but I wanna to know is it easy to support the most recent 9.2.2 or provide a zip file for 9.2.2 ?

Ainevsia avatar Mar 31 '21 01:03 Ainevsia

Indeed I built the module for Ghidra 9.1.2. I think it should be possible to compile to 9.2.2 however I did not tested it yet.

adelapie avatar Mar 31 '21 07:03 adelapie

Thanks for your timely reply!

I used the command gradle -PGHIDRA_INSTALL_DIR="D:\Ghidra\ghidra_9.2.2_PUBLIC" build to build it and the command succeeded. But how am I going to get the final zip file ? ( forgive my ignorance I really don't have any experience in developing Ghidra extensions. )

Ainevsia avatar Mar 31 '21 08:03 Ainevsia

Updates:

Well, I do setup a Ghidra Extension development environment and use the ghidra_evmLoader.java file to produce the final zip file. But I cannot check the Installation status box in File > Install Extensions...

( I also cannot install the deafult SleigDevTools extension.)

Is there something going wrong with me ?

Ainevsia avatar Mar 31 '21 13:03 Ainevsia

Okay, at the time of writing, desptie the ghidra version on kali being 9.1.2 on the repos, the installed version was a 9.1 dev build. Pay attention to the version on the launch menu. So it's pretty easy to fix. You unzip the file in the dist directory. Then change "9.1.2" to "9.1" in ghidra_evm/extension.properties. You can also check the version of the other sample/skeleton plugins that are listed on the install plugins page. Anyways, zip the file like zip -r ghidra_9.1_DEV_20201108_ghidra_evm.zip ghidra_evm and mv it back to /usr/share/ghidra/Extensions/Ghidra (or whatever that directory is witht the other zip files). If all works out, it won't be "red" anymore and you should be able to enable it. The can then load the evm file (should be bytes, not hex. though i didn't try just hex). Can't speak to the quality of the experience as I haven't dug in much but that's how you get it to work. I imagine this will change, expecially with ghidra 10 in beta (might not even work with that).

3lpsy avatar Jun 16 '21 04:06 3lpsy

Hi everyone - just encountered the same issue. A 9.2.4 version is available here https://github.com/bbenzikry/ghidra-evm/releases/tag/9.2.4 Hope that helps

bbenzikry avatar Jun 23 '21 19:06 bbenzikry

Running into this same issue with Ghidra version 10.1.1

JeremyLegere avatar Jan 26 '22 16:01 JeremyLegere

Same issue with Ghidra v 10.1.2

Xeway avatar Feb 22 '22 21:02 Xeway

I was able to use 3lpsy's suggestiong from: https://github.com/adelapie/ghidra-evm/issues/2#issuecomment-862036676 to get it to run with version 10.1.4. Not sure if the functionality is 100% or not but seems viable.

kevzettler avatar Jun 15 '22 04:06 kevzettler

I face the same issue with 10.2.2, Is there any workaround?

vadhyar avatar Jul 18 '24 04:07 vadhyar