You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Generate a random Sun Tzu quote for offensive security
5
5
6
-
#Array of Sun Tzu quotes
6
+
#Generate a random Sun Tzu quote for offensive security
7
7
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.")
8
-
9
-
# Get a random quote from the array
10
8
random_quote=${quotes[$RANDOM % ${#quotes[@]}]}
9
+
echo"Offensive security tip: $random_quote - Sun Tzu"| lolcat
11
10
12
-
# Check if lolcat, fortune-mod, figlet and curl are installed
13
-
if!command -v lolcat > /dev/null;then
14
-
echo"lolcat not found, installing..."
15
-
ifcommand -v dnf > /dev/null;then
16
-
sudo dnf install -y lolcat
17
-
elifcommand -v yum > /dev/null;then
18
-
sudo yum install -y lolcat
19
-
elifcommand -v apt-get > /dev/null;then
20
-
sudo apt-get install -y lolcat
21
-
else
22
-
echo"Error: package manager not found, please install lolcat manually"
23
-
exit 1
24
-
fi
25
-
fi
26
-
27
-
if!command -v fortune > /dev/null;then
28
-
echo"fortune-mod not found, installing..."
29
-
ifcommand -v dnf > /dev/null;then
30
-
sudo dnf install -y fortune-mod
31
-
elifcommand -v yum > /dev/null;then
32
-
sudo yum install -y fortune-mod
33
-
elifcommand -v apt-get > /dev/null;then
34
-
sudo apt-get install -y fortune-mod
35
-
else
36
-
echo"Error: package manager not found, please install fortune-mod manually"
37
-
exit 1
38
-
fi
39
-
fi
40
-
41
-
if!command -v figlet > /dev/null;then
42
-
echo"figlet not found, installing..."
43
-
ifcommand -v dnf > /dev/null;then
44
-
sudo dnf install -y figlet
45
-
elifcommand -v yum > /dev/null;then
46
-
sudo yum install -y figlet
47
-
elifcommand -v apt-get > /dev/null;then
48
-
sudo apt-get install -y figlet
49
-
else
50
-
echo"Error: package manager not found, please install figlet manually"
51
-
exit 1
52
-
fi
53
-
fi
54
-
55
-
if!command -v curl > /dev/null;then
56
-
echo"curl not found, installing..."
57
-
ifcommand -v dnf > /dev/null;then
58
-
sudo dnf install -y curl
59
-
elifcommand -v yum > /dev/null;then
60
-
sudo yum install -y curl
61
-
elifcommand -v apt-get > /dev/null;then
62
-
sudo apt-get install -y curl
63
-
else
64
-
echo"Error: package manager not found, please install curl manually"
65
-
exit 1
66
-
fi
67
-
fi
68
-
69
-
echo"All dependencies installed successfully"
11
+
echo"Important Note: If you do not change the SMTP configuration, and create your own account, you will not be able to see the results. You can use for free mailtrap.io and edit the tool source code by replacing your own credentials."| lolcat
70
12
71
13
# Print the quote
72
14
echo"Offensive security tip: $random_quote - Sun Tzu"| lolcat
@@ -75,175 +17,142 @@ figlet "HACK THE PLANET!" | lolcat
75
17
sleep 1
76
18
echo"MEANS, IT'S ☕ 1337 ⚡ TIME, 369 ☯ "| lolcat
77
19
sleep 1
78
-
echo"[YOUR ARE USING XSSRocket.sh] - (v1.0) CODED BY Chris 'SaintDruG' Abou-Chabké WITH ❤ FOR blackhatethicalhacking.com for Educational Purposes only!"| lolcat
20
+
echo"[YOUR ARE USING XSSRocket.sh] - (v2.0) CODED BY Chris 'SaintDruG' Abou-Chabké WITH ❤ FOR blackhatethicalhacking.com for Educational Purposes only!"| lolcat
79
21
sleep 1
80
-
#check if the user is connected to the internet
81
-
tput bold;echo"CHECKING IF YOU ARE CONNECTED TO THE INTERNET!"| lolcat
82
-
# Check connection
22
+
23
+
# Ask if user wants results via email
24
+
echo"Do you want to receive the results via email? (y/n): "| lolcat
25
+
read send_email
26
+
27
+
# If user wants email, ask for their email address
28
+
if [[ "$send_email"=="y" ]];then
29
+
echo"Enter your email to receive the results: "| lolcat
30
+
read user_email
31
+
fi
32
+
33
+
# Dependencies check for lolcat, fortune-mod, figlet, and curl
34
+
dependencies=("lolcat""fortune""figlet""curl")
35
+
fordepin"${dependencies[@]}";do
36
+
if!command -v "$dep"> /dev/null;then
37
+
echo"$dep not found, installing..."| lolcat
38
+
ifcommand -v dnf > /dev/null;then
39
+
sudo dnf install -y "$dep"
40
+
elifcommand -v yum > /dev/null;then
41
+
sudo yum install -y "$dep"
42
+
elifcommand -v apt-get > /dev/null;then
43
+
sudo apt-get install -y "$dep"
44
+
else
45
+
echo"Error: package manager not found, please install $dep manually"
46
+
exit 1
47
+
fi
48
+
fi
49
+
done
50
+
51
+
# Check if the user is connected to the internet
52
+
echo"CHECKING IF YOU ARE CONNECTED TO THE INTERNET!"| lolcat
83
53
wget -q --spider https://google.com
84
-
if [ $?-ne 0 ];then
85
-
echo"++++ CONNECT TO THE INTERNET BEFORE RUNNING XSSRocket.sh!"| lolcat
86
-
exit 1
54
+
if [ $?-ne 0 ];then
55
+
echo"++++ CONNECT TO THE INTERNET BEFORE RUNNING XSSRocket.sh!"| lolcat
0 commit comments