-
Notifications
You must be signed in to change notification settings - Fork 0
/
auto.sh
executable file
·50 lines (27 loc) · 1.26 KB
/
auto.sh
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
#echo "Creating Directory $1."
DIRECTORY=$1
IP=$2
mkdir $DIRECTORY
echo "Directory $DIRECTORY Created:"
case $3 in
nmap)
echo "Running Nmap ==========================="
echo "========================================"
nmap -sS -T4 -Pn -A -p- $IP | tee /home/kali/hackthebox/$DIRECTORY/nmap
;;
dirsearch)
echo "Running Directory Brute Forcing===================="
echo "==================================================="
gobuster dir -u http://$IP/ -x php, py, asp, aspx -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt | tee -a /home/kali/hackthebox/$DIRECTORY/directory.txt
;;
*)
echo "======================Running Nmap =========================="
echo "======================================================================================="
nmap -sS -T4 -Pn -A -p- $IP | tee /home/kali/hackthebox/$DIRECTORY/nmap &
echo "Nmap Process name: "${!}
echo "*******************"
echo "===============Running Directory Brute Forcing==============="
echo "============================================================="
gobuster dir -u http://$IP/ -x php, py, asp, aspx -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt | tee -a /home/kali/hackthebox/$DIRECTORY/directory.txt
esac