-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathrun-ikeforce
executable file
·26 lines (24 loc) · 1.02 KB
/
run-ikeforce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# https://github.com/jnqpblc/Randomness/blob/master/3.mapping/run-ikeforce.sh
# git clone https://github.com/SpiderLabs/ikeforce.git
if [ -z $5 ];then
printf "\nSyntax: ./$0 <ip|1.1.1.1> <Enc|5> <Hash|1> <Auth|1> <DH|2>\n"
echo "
Enc Type (1) Hash Type (2) Auth Type (3) DH Group (4)
1 = DES 1 = HMAC-MD5 1 = PSK 1 = 768-bit MODP group
2 = IDEA 2 = HMAC-SHA 2 = DSS-Sig 2 = 1024-bit MODP group
3 = Blowfish 3 = TIGER 3 = RSA-Sig 3 = EC2N group on GP[2^155]
4 = RC5-R16-B64 4 = SHA2-256 4 = RSA-Enc 4 = EC2N group on GP[2^185]
5 = 3DES 5 = SHA2-384 5 = Revised RSA-Sig 5 = 1536-bit MODP group
6 = CAST 6 = SHA2-512 64221 = Hybrid Mode
7 = AES 65001 = XAUTHInitPreShared
"
else
IP=$1
ENC=$2
HASH=$3
AUTH=$4
DH=$5
echo "# ikeforce.py $IP -e -w groupnames.txt -t $ENC $HASH $AUTH $DH" -s 1 | tee ikeforce-$IP-groupnames-$ENC-$HASH-$AUTH-$DH.txt
sudo ikeforce.py $IP -e -w ~/Scripts/wordlists/passwords/groupnames.txt -t $ENC $HASH $AUTH $DH -s 1 | tee -a ikeforce-$IP-groupnames-$ENC-$HASH-$AUTH-$DH.txt
fi