-
Notifications
You must be signed in to change notification settings - Fork 2
/
Payload_master.py
109 lines (90 loc) · 3.23 KB
/
Payload_master.py
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
#!/usr/bin/python3 env
import os
import random
import time
import Payloads.pld_types as plds
from sys import platform
rows, columns = os.popen('stty size', 'r').read().split()
Colms = int ((int (columns)-37) / 2)-2
c = " " * Colms
colors = ["\033[1;31m","\033[1;32m", "\033[1;33m", "\033[1;34m", "\033[1;35m", "\033[1;36m"]
fore = random.choice (colors)
fore1 = "\033[1;36m"
fore2 = "\033[1;35m"
os.system ("clear")
blue = "\033[1;34m"
cyan = "\033[1;36m"
def banner ():
os.system ("clear")
print (" \n ")
print (fore+" o o ")
print (fore+" o o")
print (fore+" 0 ■■ 0")
print (fore+" ■■■■■■ ")
print (fore+" ■■"+fore1+"▣"+fore+"■■"+fore1+"▣"+fore+"■■")
print (fore+" ■■■■■■■■■■")
print (fore+" __ __________ __")
print (fore+" ■■ ■■■■■■■■■■ ■■")
print (fore+" ■■ ■■■■■■■■■■ ■■")
print (fore+" ■■ ■■■■■■■■■■ ■■")
print (fore+" ■■■■■■■■■■ ")
print (fore+" ■■ ■■ ")
print (fore+" ■■ ■■")
print ("\033[1;36mCooded By \033[1;34m :----->> \033[1;31m Navin Hariharan \033[1;34m")
print ("\033[1;36mInsagram \033[1;34m :----->> \033[1;31m navin_hariharan \033[1;34m")
print ("\033[1;36mGitHub \033[1;34m :----->> \033[1;31m navin-hariharan \033[1;34m\n\n")
def Check_requirments ():
if platform == "linux" or platform == "linux2":
if os.path.exists ("navin_playload") == False :
os.system ("mkdir navin_playload")
else:
if os.path.exists ("/sdcard/navin_playload") == False :
os.system ("mkdir /sdcard/navin_playload")
if os.path.exists ('/data/data/com.termux/files/usr/bin/msfconsole') == True :
print ("")
else:
print("\033[1;31mMetasploit Not Installed 😢")
print("\033[1;36mHit Enter To Install..")
os.system('read ch')
os.system("pkg install unstable-repo;pkg install metasploit")
os.system('clear')
banner ()
def chose_opt ():
print ("\033[1;34mNavin_payload\033[1;31m/~"+cyan+" Choose Your Payload\n")
time.sleep (0.5)
pld_list = ["Android" ,"Windows", "Linux", "Mac","Python","Bash", "Perl","Exit"]
for pld in pld_list:
time.sleep (0.1)
print (cyan+" ["+blue,pld_list.index (pld)+1,cyan+"] "+pld)
print(" \n ")
pld_type = int (input (" \033[1;34mNavin_payload\033[1;31m/~ \033[1;36m"))
if pld_type > 8:
try:
raise ValueError
except ValueError:
time.sleep(3)
exit (0)
else:
pld_to_gen = ["plds.Android ()", "plds.Windows ()", "plds.Linux()", "plds.Mac ()", "plds.Python ()", "plds.Bash ()", "plds.Perl ()", "exite ()"]
exec (pld_to_gen[pld_type - 1])
def exite ():
time.sleep (1.2)
banner()
print ("\033[1;34mNavin_payload\033[1;31m/~"+cyan+" BY BY SEE YOU SOON.\n\n")
exit (0)
def main ():
os.system("rm -rf meterpreter_droid.rc metasploit_install.rc __pycache__ navin_playload/* Payloads/__pycache__;killall -2 ngrok > /dev/null")
banner ()
Check_requirments ()
time.sleep (1.5)
chose_opt ()
if __name__ == "__main__":
try:
main ()
except KeyboardInterrupt:
exite ()
except ValueError:
time.sleep()
exit (0)
except EOFError:
exite ()