-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathNucleimonst3r.sh
117 lines (100 loc) · 4.25 KB
/
Nucleimonst3r.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#!/bin/bash
curl --silent "https://raw.githubusercontent.com/blackhatethicalhacking/Subdomain_Bruteforce_bheh/main/ascii.sh" | lolcat
echo ""
# Generate a random Sun Tzu quote for offensive security
# Array of Sun Tzu quotes
quotes=("The supreme art of war is to subdue the enemy without fighting." "All warfare is based on deception." "He who knows when he can fight and when he cannot, will be victorious." "The whole secret lies in confusing the enemy, so that he cannot fathom our real intent." "To win one hundred victories in one hundred battles is not the acme of skill. To subdue the enemy without fighting is the acme of skill.")
# Get a random quote from the array
random_quote=${quotes[$RANDOM % ${#quotes[@]}]}
# Print the quote
echo "Offensive Security Tip: $random_quote - Sun Tzu" | lolcat
sleep 1
echo "MEANS, IT'S ☕ 1337 ⚡ TIME, 369 ☯ " | lolcat
sleep 1
figlet -w 80 -f small Nucleimonst3r | lolcat
echo ""
echo "[YOUR ARE USING Nucleimonst3r.sh] - (v1.0) CODED BY Chris 'SaintDruG' Abou-Chabké WITH ❤ FOR blackhatethicalhacking.com for Educational Purposes only!" | lolcat
sleep 1
#check if the user is connected to the internet
tput bold;echo "CHECKING IF YOU ARE CONNECTED TO THE INTERNET!" | lolcat
# Check connection
wget -q --spider https://google.com
if [ $? -ne 0 ];then
echo "++++ CONNECT TO THE INTERNET BEFORE RUNNING NucleiMonst3r.sh!" | lolcat
exit 1
fi
tput bold;echo "++++ CONNECTION FOUND, LET'S GO!" | lolcat
# get domain name from user input
echo "Enter Domain:"
read domain
# create a directory with the domain name of the website
echo "Creating directory for output files..."
mkdir "$domain"
# Fetching URLs for website and filtering by specific extensions please wait...
echo "Fetching URLs for $domain and filtering by specific extensions..."
waybackurls $domain | tee $domain/filtered_urls.txt | lolcat
# Checking filtered URLs with httpx and saving the output in httpx_output.txt...
echo "Checking filtered URLs with httpx and saving the output in httpx_output.txt..."
cat $domain/filtered_urls.txt | httpx -silent | tee $domain/httpx_output.txt | lolcat
total_filtered_urls=$(grep -c '^' "$domain/httpx_output.txt")
echo "Total Filtered URLs found: $total_filtered_urls" | lolcat
echo "Please choose from the following options for nuclei templates:"
echo "1. cves"
echo "2. vulnerabilities"
echo "3. exposed-panels"
echo "4. exposures"
echo "5. file"
echo "6. miscellaneous"
echo "7. misconfiguration"
echo "8. technologies"
echo "9. All Templates AKA Hail Mary (Takes Hours)"
echo "Enter the numbers separated by commas:"
read templates
if [[ $templates == *"1"* ]]; then
t_args="$t_args -t /root/nuclei-templates/http/cves/"
fi
if [[ $templates == *"2"* ]]; then
t_args="$t_args -t /root/nuclei-templates/http/vulnerabilities/"
fi
if [[ $templates == *"3"* ]]; then
t_args="$t_args -t /root/nuclei-templates/http/exposed-panels/"
fi
if [[ $templates == *"4"* ]]; then
t_args="$t_args -t /root/nuclei-templates/http/exposures/"
fi
if [[ $templates == *"5"* ]]; then
t_args="$t_args -t /root/nuclei-templates/file/"
fi
if [[ $templates == *"6"* ]]; then
t_args="$t_args -t /root/nuclei-templates/http/miscellaneous/"
fi
if [[ $templates == *"7"* ]]; then
t_args="$t_args -t /root/nuclei-templates/http/misconfiguration/"
fi
if [[ $templates == *"8"* ]]; then
t_args="$t_args -t /root/nuclei-templates/http/technologies/"
fi
if [[ $templates == *"9"* ]]; then
t_args="$t_args -t /root/nuclei-templates"
fi
echo "Starting Nuclei scan with the selected templates..."
cat $domain/httpx_output.txt | nuclei -stats -si 100 $t_args -o $domain/nuclei_results_for_$domain.txt
# Matrix effect
echo "Entering the Matrix for 5 seconds:" | toilet --metal -f term -F border
R='\033[0;31m'
G='\033[0;32m'
Y='\033[1;33m'
B='\033[0;34m'
P='\033[0;35m'
C='\033[0;36m'
W='\033[1;37m'
for ((i=0; i<5; i++)); do
echo -ne "${R}10 ${G}01 ${Y}11 ${B}00 ${P}01 ${C}10 ${W}00 ${G}11 ${P}01 ${B}10 ${Y}11 ${C}00\r"
sleep 0.2
echo -ne "${R}01 ${G}10 ${Y}00 ${B}11 ${P}10 ${C}01 ${W}11 ${G}00 ${P}10 ${B}01 ${Y}00 ${C}11\r"
sleep 0.2
echo -ne "${R}11 ${G}00 ${Y}10 ${B}01 ${P}00 ${C}11 ${W}01 ${G}10 ${P}00 ${B}11 ${Y}10 ${C}01\r"
sleep 0.2
echo -ne "${R}00 ${G}11 ${Y}01 ${B}10 ${P}11 ${C}00 ${W}10 ${G}01 ${P}11 ${B}00 ${Y}01 ${C}10\r"
sleep 0.2
done