-
Notifications
You must be signed in to change notification settings - Fork 7
/
probe.sh
65 lines (51 loc) · 1.69 KB
/
probe.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
clear
#Some cool art stuff
bash script/art.sh
#Creating Project
echo -n "Create project [Y/n]: "
read response
if [[ $response == "Y" || $response == "y" || $response == "yes" || $response == "Yes" ]]
then
echo -n "Project name : "
read pro_name
echo "[*]Creating project $pro_name....." | pv -qL 25
mkdir Projects/$pro_name 2>/dev/null
elif [[ $response == "N" || $response == "n" || $response == "no" || $response == "No" ]]
then
echo "[*] Using Scan directory as project "
mkdir Scan
else
echo -n "Project name : "
read pro_name
echo "[*]Creating project $pro_name....." | pv -qL 25
mkdir Projects/$pro_name 2>/dev/null
fi
#Target
python3 script/targets.py
#Probing
function subdomain(){
subfinder -dL /tmp/targets.txt -t 200 -v -o /tmp/sub1.txt
echo -e "[*]This process may take some time " | pv -qL 30
amass enum -src -df /tmp/targets.txt -o /tmp/sub2.txt
bash script/assestFinder.sh #It will create a file /tmp/sub3.txt
anubis -f /tmp/targets.txt -o /tmp/sub3.txt
python3 script/webarchive.py #It will create a file /tmp/sub4.txt
cd Projects/$pro_name
sort /tmp/sub1.txt /tmp/sub2.txt /tmp/sub3.txt /tmp/sub4.txt | uniq -u > sub_uniq.txt
cat sub_uniq.txt |httpx -threads 200| tee -a subdomains.txt
cat subdomains.txt | waybackurls | tee -a waybackurls.txt
cat waybackurls.txt |gf xss| tee -a gfxss.txt
}
if [[ $response == "Y" || $response == "y" || $response == "yes" || $response == "Yes" ]]
then
subdomain
elif [[ $response == "N" || $response == "n" || $response == "no" || $response == "No" ]]
then
cd Scan/Random
subdomain
else
cd Projects/$pro_name
cd ../..
subdomain
fi