-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathwebAppFound.sh
More file actions
34 lines (27 loc) · 1016 Bytes
/
Copy pathwebAppFound.sh
File metadata and controls
34 lines (27 loc) · 1016 Bytes
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
#!/bin/bash
#Add colour to the shell output
RED='\033[0;31m'
WHITE='\033[0;37m'
NC='\033[0m' # No Color
if [ $# -eq 2 ]; then
echo "Your IP and PORT"
echo -e "${WHITE}IP Address: ${RED}$1"
echo -e "${WHITE}PORT Number: ${RED}$2 ${WHITE}"
else
echo "Your command line contains no arguments"
echo -e "${WHITE}Usuage example: ${RED} ./webAppFound.sh 10.10.10.121 80 ${WHITE}"
exit 1
fi
#Get the date, will be used in filename
DATE=`date +%Y-%m-%d`
filename=$1_$DATE
echo "Lets run gobuster ......"
gobuster -e -u http://$1:$2 -w /Users/keithreilly/Documents/EHInfo/HTB/wordlists/common.txt > gobuster_$filename.txt
echo -e "${WHITE}gobuster results stored in file ${RED}gobuster_$filename.txt ${WHITE}"
echo "Running Nikto Scan ......"
echo "This may take a few mins...."
nikto --host $1:$2 > nikto_$filename.txt &
echo -e "${WHITE}nikto results stored in the file ${RED}nikto_$filename.txt ${WHITE}"
echo "Scanning done."
echo -e "${WHITE}Wait a few minutes for scans to finish"
exit 0