Skip to content

Instantly share code, notes, and snippets.

@lostsnow
Created December 8, 2017 15:54
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save lostsnow/c11ed537c4c4768ca8d9961b984e3f32 to your computer and use it in GitHub Desktop.
Save lostsnow/c11ed537c4c4768ca8d9961b984e3f32 to your computer and use it in GitHub Desktop.
SecureCRT and SecureFX crack script for windows version
#!/bin/sh
DIR=$1
CRT="SecureCRT.exe"
FX="SecureFX.exe"
LIC="LicenseHelper.exe"
crt_old_key="6e533e406a45f0b6372f3ea1071700000c7120127cd915cef8ed1a3f2c5b"
crt_new_key="785782391ad0b9169f17415dd35f00002790175204e3aa65ea10cff20818"
fx_old_key="c847abca184a6c5dfa47dc8efcd700019dc9df3743c640f50be307334fea"
fx_new_key="e02954a71cca592c855c91ecd4170001d6c606d38319cbb0deabebb05126"
cd ${DIR}
echo "start crack"
if [ -f $CRT ]; then
cat ${CRT} | od -A n -v -t x1 | tr -d ' \n' > ${CRT}.txt
cat ${CRT}.txt | grep ${crt_old_key} > /dev/null
if [ $? -eq 0 ]; then
mv ${CRT} ${CRT}.backup
sed -i "s/${crt_old_key}/${crt_new_key}/g" ${CRT}.txt
cat ${CRT}.txt | xxd -r -p > ${CRT}
echo "SecureCRT cracked"
else
echo "SecureCRT already cracked"
fi
rm ${CRT}.txt
fi
if [ -f $FX ]; then
cat ${FX} | od -A n -v -t x1 | tr -d ' \n' > ${FX}.txt
cat ${FX}.txt | grep ${fx_old_key} > /dev/null
if [ $? -eq 0 ]; then
mv ${FX} ${FX}.backup
sed -i "s/${fx_old_key}/${fx_new_key}/g" ${FX}.txt
cat ${FX}.txt | xxd -r -p > ${FX}
echo "SecureFX cracked"
else
echo "SecureFX already cracked"
fi
rm ${FX}.txt
fi
if [ -f $LIC ]; then
cat ${LIC} | od -A n -v -t x1 | tr -d ' \n' > ${LIC}.txt
crt_crack=0
fx_crack=0
if [ -f $CRT ]; then
cat ${LIC}.txt | grep ${crt_old_key} > /dev/null
if [ $? -eq 0 ] ; then
mv ${LIC} ${LIC}.backup
sed -i "s/${crt_old_key}/${crt_new_key}/g" ${LIC}.txt
crt_crack=1
fi
fi
if [ -f $FX ]; then
cat ${LIC}.txt | grep ${fx_old_key} > /dev/null
if [ $? -eq 0 ] ; then
if [ ${crt_crack} -eq 0 ]; then
mv ${LIC} ${LIC}.backup
fi
sed -i "s/${fx_old_key}/${fx_new_key}/g" ${LIC}.txt
fx_crack=1
fi
fi
if [ ${crt_crack} -eq 1 ] || [ ${fx_crack} -eq 1 ]; then
cat ${LIC}.txt | xxd -r -p > ${LIC}
echo "LicenseHelper cracked"
else
echo "LicenseHelper already cracked"
fi
rm ${LIC}.txt
fi
echo "crack done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment