Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Decompile multiple jar files for analysis
#!/bin/bash
#DiabloHorn - https://diablohorn.com
#easy opengrok analysis of all decompiled source
# sudo docker run -v /home/me/Desktop/libanalysis/srces:/src -p 9000:8080 itszero/opengrok
# http://localhost:9000/source/
OUTPUTDIR="srces"
DECOMPATH="/home/me/tools/javadecomp"
DECOMBIN="cfr_0_130.jar"
if [ ! -d "$OUTPUTDIR" ]; then
mkdir "$OUTPUTDIR"
fi
for i in $(ls -1 *.jar)
do
JARSRCES="$OUTPUTDIR/$i"
mkdir "$JARSRCES"
java -jar "$DECOMPATH/$DECOMBIN" "$i" --outputdir "$JARSRCES/"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.