-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathspartan
34 lines (30 loc) · 1.73 KB
/
spartan
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
YELLOW="\033[1;33m"
GREEN="\033[0;32m"
RED="\033[0;31m"
RESET="\033[0m"
echo -e "
___________.__ .__ .___ _________ __
\__ ___/| |__ |__| ______ | | ______ / _____/__________ ________/ |______ ____
| | | | \| |/ ___/ | |/ ___/ \_____ \\____ \__ \\_ __ \ __\__ \ / \
| | | Y \ |\___ \ | |\___ \ / \ |_> > __ \| | \/| | / __ \| | \
|____| |___| /__/____ > |___/____ > /_______ / __(____ /__| |__| (____ /___| /
\/ \/ \/ \/|__| \/ \/ \/ - by $RED@madrobot$RESET
"
sleep 2;
aquatone-discover -d $1
aquatone-scan -d $1 --ports huge
aquatone-takeover -d $1
mkdir $HOME/Recon/$1
python3 /$HOME/Sublist3r/sublist3r.py -d $1 -o $HOME/Recon/$1/$1.txt
cat $HOME/Recon/$1/$1.txt | httprobe > $HOME/Recon/$1/$1_live.txt
cat $HOME/Recon/$1/$1_live.txt $HOME/aquatone/$1/urls.txt | sort -u > $HOME/Recon/$1/final_urls.txt
cat $HOME/Recon/$1/final_urls.txt |sed 's/https\?:\/\///' > $HOME/Recon/$1/url.txt
nmap -iL $HOME/Recon/$1/url.txt -Pn -n -sn -oG $HOME/Recon/$1/resolved.txt
cat $HOME/Recon/$1/resolved.txt | grep ^Host | cut -d " " -f 2 > $HOME/Recon/$1/host.txt
sudo masscan -iL $HOME/Recon/$1/host.txt -p 0-65535 -oX $HOME/Recon/$1/mass_output.xml --max-rate 100000
cat $HOME/Recon/$1/final_urls.txt | aquatone -out $HOME/Recon/$1/ -ports xlarge
gau $1 -subs > $HOME/Recon/$1/wayback.txt
$HOME/CMSeeK/sc > $HOME/Recon/$1/cms_scan.txt
python3 $HOME/dirsearch/dirsearch.py -L $HOME/Recon/$1/final_urls.txt -e * --plain-text-report=$HOME/Recon/$1/dirsearch.txt
echo -e "---+++++++++==============================+++++++++---"