airbus-cyber / ghidralligator

Apache License 2.0
301 stars 23 forks source link

update ghidra dependency to 11.0.3 #5

Closed M3NIX closed 2 months ago

M3NIX commented 3 months ago

This pull request:

All test in the example folder are running without errors. Feel free to run own tests and I am happy to fix new occurring bugs :)

solves #4

M3NIX commented 3 months ago

@c-eax any chance to get this reviewed + merged?

to make it easier for you to check if the pull request contains the original files from ghidra, I have written some commands you can run to validate the sha256sum of all the relevant files from my branch with the files from the ghidra 11.0.3 release. If you like I could also make a github workflow for it to run on pull requests to automate this in the future. let me know :)

git clone -b ghidra-11.0.3 https://github.com/M3NIX/ghidralligator.git
# download ghidra release from github https://github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_11.0.3_build
wget https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_11.0.3_build/ghidra_11.0.3_PUBLIC_20240410.zip
unzip ghidra_11.0.3_PUBLIC_20240410.zip

# check sha256sum for decompiler source files
cd ghidralligator/src/; sha256sum ./* > ../../sha256sum_source.txt; cd ../../
cd ghidra_11.0.3_PUBLIC/Ghidra/Features/Decompiler/src/decompile/cpp/
sha256sum -c ../../../../../../../sha256sum_source.txt
cd ../../../../../../..

# check sha256sum for .sla files
for i in $(ls ghidralligator/specfiles/*); do find ./ghidra_11.0.3_PUBLIC/ -iname $(basename $i) -exec sha256sum {} + | sed -E 's|(.+)(\s+\./.+/)([^/]+)$|\1 \3|' >> sha256sum_specfiles.txt; done
cd ghidralligator/specfiles/
sha256sum -c ../../sha256sum_specfiles.txt
cd ../..
c-eax commented 3 months ago

Sorry for the delay. I will review your pull request soon (in the next few days). Thanks for your contribution.