Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ##############################################################################
- # Author: Goodies #
- # If you can afford the software, please purchase it! Raphael has #
- # put in countless hours into CS and he deserves credit. #
- ##############################################################################
- SITE="http://www.advancedpentest.com"
- echo "[+] Downloading Cobalt Strike..."
- curl -# -O $SITE$(curl -s $SITE/download 2>/dev/null | grep "jQuery.*downloads" | cut -d "'" -f 6)cobaltstrike-trial.tgz | sed 's/ //g'
- echo "[+] Download Complete... Extracting."
- tar zxf cobaltstrike-trial.tgz || { echo "Error Occured."; exit 1; }
- echo "[+] Saving the original JAR file as cobaltstrike.jar.old"
- cp cobaltstrike/cobaltstrike.jar cobaltstrike/cobaltstrike.jar.old
- echo "[+] Extracting cobaltstrike.jar"
- unzip -q cobaltstrike/cobaltstrike.jar -d cobaltstrike/cs_tmp || { echo "Error Occured."; exit 1; }
- rm cobaltstrike/cobaltstrike.jar
- echo "[+] Saving the original license file as license.sl.old"
- cp cobaltstrike/cs_tmp/scripts/license.sl cobaltstrike/cs_tmp/scripts/license.sl.old || { echo "Error Occured."; exit 1; }
- echo "[+] Patching License File..."
- sed -i 's/$life = 21;/$life = 0;/g' cobaltstrike/cs_tmp/scripts/license.sl
- sed -i 's/if ($difference > $life || ($today - $start) < 0) {/if (1 == 2){/g' cobaltstrike/cs_tmp/scripts/license.sl
- sed -i 's/$left = $life - $difference;/#$left = $life - $difference;/g' cobaltstrike/cs_tmp/scripts/license.sl
- sed -i 's/$form = "$left day" . iff($left == 1, "", "s");/#$form = "$left day" . iff($left == 1, "", "s");/g' cobaltstrike/cs_tmp/scripts/license.sl
- sed -i 's/\[JOptionPane showMessageDialog: $frame, \"This is a trial version/#\[JOptionPane showMessageDialog: $frame, \"This is a trial version/g' cobaltstrike/cs_tmp/scripts/license.sl
- echo "[+] License File has Been Patched! Recompressing..."
- cd cobaltstrike/cs_tmp
- zip -qr ../cobaltstrike.jar .
- echo "[+] Cleaning Up Temp Files"
- cd ../..
- rm -rf cobaltstrike/cs_tmp
- rm cobaltstrike-trial.tgz
- tar zcf cobaltstrike-cracked.tar.gz cobaltstrike
- echo "[+] Cobalt Strike Has Been Fully Patched!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement