-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathrun-ikescan
More file actions
executable file
·22 lines (20 loc) · 896 Bytes
/
run-ikescan
File metadata and controls
executable file
·22 lines (20 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# https://github.com/jnqpblc/Randomness/blob/master/3.mapping/run-ikescan.sh
if [ -z $1 ];then
printf "\nSyntax: ./$0 <ip|1.1.1.1> <Option|-i or -a or -t>\n\n"
else
IP=$1
OPTION=$2
if [ $OPTION == '-i' ];then
echo "# ike-scan -M $IP" | tee ikescan-$IP-main-mode.txt
sudo ike-scan -M $IP | tee -a ikescan-$IP-main-mode.txt
elif [ $OPTION == '-a' ];then
echo "# ike-scan -M -A --id=GroupVPN $IP" | tee ikescan-$IP-aggressive-mode.txt
sudo ike-scan -M -A --id=GroupVPN $IP | tee -a ikescan-$IP-aggressive-mode.txt
elif [ $OPTION == '-t' ];then
echo "# generate-transforms.sh | xargs --max-lines=8 ike-scan -A --id=GroupVPN $IP | grep Handshake" | tee ikescan-$IP-transforms.txt
bash generate-transforms.sh | xargs --max-lines=8 sudo ike-scan -A --id=GroupVPN $IP | grep Handshake | tee -a ikescan-$IP-transforms.txt
else
echo 'Dammit Bobby.'
fi
fi