Created
June 11, 2018 16:57
-
-
Save 0xbadjuju/a43c9ca90cfbc0c438db2c5e211433f0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Encryption algorithms: DES, Triple-DES, AES/128, AES/192 and AES/256 | |
ENCLIST="1 5 7/128 7/192 7/256" | |
# Hash algorithms: MD5 and SHA1 | |
HASHLIST="1 2" | |
# Authentication methods: Pre-Shared Key, RSA Signatures, Hybrid Mode and XAUTH | |
AUTHLIST="1 3 64221 65001" | |
# Diffie-Hellman groups: 1, 2 and 5 | |
GROUPLIST="1 2 5" | |
# | |
if [ -z $2 ] | |
then | |
echo ike-scan --aggressive --pskcrack=${1}.pskcrack --multiline --id=fake-id $1 | |
ike-scan --aggressive --pskcrack=${1}.pskcrack --multiline --id=fake-id $1 | |
else | |
for ENC in $ENCLIST; do | |
for HASH in $HASHLIST; do | |
for AUTH in $AUTHLIST; do | |
for GROUP in $GROUPLIST; do | |
echo ike-scan --aggressive --pskcrack=${1}.pskcrack --multiline --trans=$ENC,$HASH,$AUTH,$GROUP --id=${2} $1 | |
ike-scan --aggressive --pskcrack=${1}.pskcrack --multiline --trans=$ENC,$HASH,$AUTH,$GROUP --id=${2} $1 | |
done | |
done | |
done | |
done | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment