-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain2.py
226 lines (205 loc) · 5.81 KB
/
main2.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
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
version="2.1.9"
#IMPORT
import getpass,time,os
import signal
if os.path.isdir("/sdcard/ROC-X")!=True and os.path.isdir("$HOME/Desktop/ROC-X")!=True :
try:
os.mkdir("/sdcard/ROC-X")
except:
os.mkdir("$HOME/Desktop/ROC-X")
#CVALUE
blue= '\33[94m'
lightblue = '\033[94m'
red = '\033[91m'
white = '\33[97m'
yellow = '\33[93m'
green = '\033[1;32m'
cyan = "\033[96m"
end = '\033[0m'
line=yellow+"======================================================================================================================"
space=" "
logo=red+str("""
8888888b. .d88888b. .d8888b. Y88b d88P
888 Y88b d88P" "Y88b d88P Y88b Y88b d88P
888 888 888 888 888 888 Y88o88P
888 d88P 888 888 888 888888 Y888P
8888888P" 888 888 888 888888 d888b
888 T88b 888 888 888 888 d88888b
888 T88b Y88b. .d88P Y88b d88P d88P Y88b
888 T88b "Y88888P" "Y8888P" d88P Y88b""")
os.system("clear || cls")
notice=green+""
# Definition
def header():
print(logo+cyan+"\n\n\n\t\tDeveloped By : Sanaur Asif\n\n"+green+"\t\t Version : "+str(version)+" \n\n"+end+line+"\n"+end)
def clear():
os.system("clear || cls")
count=1
about=7
e_count=1
ddos_count=1
kali_count=1
ms_count=1
sms_count=1
t_count=1
os.system("clear")
header()
print(cyan+"\n\t\t[•] Checking For Updates")
time.sleep(0.7)
try:
import requests
except:
os.system("pip install requests")
import requests
r=requests.get('https://pastebin.com/raw/0e7CzUNG')
upchck=r.text
if upchck==version:
pass
elif upchck!=version:
os.system("clear")
header()
print(cyan+"\n [°] Installing The Updated Tools. Allow Up to 10 minutes ")
time.sleep(2)
os.system("clear")
notice=cyan+"\t\t[°] Installing Updated Tools.. \n"
header()
notice=""
print("\n")
clear()
notice=cyan+"\t\t[•] Backing up the ROC-X...."
header()
os.system("mkdir $HOME/roc-x_updater")
os.system("cp -rf $HOME/roc-x $HOME/roc-x_updater")
try:
clear()
notice=cyan+"\t\t[•] Updating the Tools...."
header()
os.system("cd $HOME")
os.system("cd $HOME && rm -rf roc-x")
print(green)
os.system("cd $HOME && git clone https://github.com/RootOfCyber/roc-x")
clear()
notice=green+"\t\t[√] Update Successful!"
header()
print(cyan+"\n [•••] TerMux Restart is Required for The Update. Please Restart Termux For The ROC-X Updated Version")
#os.kill(os.getppid(), signal.SIGHUP)
os.system("rm -rf $HOME/roc-x_updater")
for i in range(99999999999):
os.system("clear")
a=input(cyan+"\n"*10+" [>] Please Exit Termux from Notification Bar. Then Again Open ROC-X Tools By :\n\n "+yellow+"\t [1] Exit Termux\n\t [2] Open Termux"+"\n\t [3] cd $HOME/roc-x"+yellow+"\n\t [4] "+yellow+"python3 main.py\n\n")
except:
clear()
notice=red+"\t\t[×] Update Failed!"
header()
sjsjstshsb=input(cyan+"\n\n\t Press Enter to Restore ROC-X")
os.system("cd $HOME")
os.system("cd $HOME && mkdir roc-x")
os.system("cd $HOME && cp -rf $HOME/roc-x_updater/roc-x $HOME")
os.system("rm -rf $HOME/roc-x_updater")
os.system("python3 $HOME/roc-x/main.py")
for i in range(99999999999):
os.system("clear")
a=input(cyan+"\n"*10+" [>] Please Exit Termux from Notification Bar. Then Again Open ROC-X Tools By :\n\n "+yellow+"\t [1] Exit Termux\n\t [2] Open Termux"+"\n\t [3] cd $HOME/roc-x"+yellow+"\n\t [4] "+yellow+"python3 main.py\n\n")
#Main Page
while count<2:
clear()
header()
notice=""
print(cyan+"\n==> Select the number of the option that you want to start from below : ")
print(yellow+"\n [1] BD SMS Bomber\n\n [2] ROC-X Phishing\n\n [3] DDoS Attacker\n\n [4] Kali NetHunter\n\n [5] MetaSploit FrameWork\n\n [6] E-Mail Bomber\n\n ["+str(about)+"] Contact Us"+end)
main_opt=str(input(blue+"\n[>] Select Your Option : "+yellow))
if main_opt=="1":
if sms_count==1:
import bdsms
sms_count=2
else:
try:
reload(bdsms)
except:
try:
import imp
imp.reload(bdsms)
except:
import importlib
importlib.reload(bdsms)
elif main_opt=="2":
if t_count==1:
import t
t_count=2
else:
try:
reload(t)
except:
try:
import imp
imp.reload(t)
except:
import importlib
importlib.reload(t)
elif main_opt=="6":
if e_count==1:
import emailtool
e_count=2
else:
try:
reload(emailtool)
except:
try:
import imp
imp.reload(emailtool)
except:
import importlib
importlib.reload(emailtool)
notice=""
count=1
elif main_opt=="3":
if ddos_count==1:
import ddos_opt
ddos_count=2
else:
try:
reload(ddos_opt)
except:
try:
import imp
imp.reload(ddos_opt)
except:
import importlib
importlib.reload(ddos_opt)
elif main_opt=="4":
if kali_count==1:
import kali
kali_count=2
else:
try:
reload(kali)
except:
try:
import imp
imp.reload(kali)
except:
import importlib
importlib.reload(kali)
elif main_opt=="5":
if ms_count==1:
import ms_opt
ms_count=2
else:
try:
reload(ms_opt)
except:
try:
import imp
imp.reload(ms_opt)
except:
import importlib
importlib.reload(ms_opt)
elif main_opt==str(about):
notice=""
print(cyan+"\n\n\tYoutube:"+yellow+"\n\n\thttps://www.youtube.com/c/RootOfCyber"+cyan+"\n\n\tFacebook:"+yellow+"\n\n\thttps://www.facebook.com/RootOfCyber"+cyan+"\n\n\tWhat\'s app:"+yellow+"\n\n\thttps://chat.whatsapp.com/JPTOWlsJhhgEVtzht4tAlr"+cyan+"\n\n\tTelegram:\n"+yellow+"https://t.me/joinchat/RScE4xF8TiQIOs2Z"+cyan+"\n\n\n\n\tContact Us:"+yellow+"\n\n\[email protected]"+cyan+"\n\n\n\tDeveloped By "+yellow+"Sanaur Asif"+cyan+"\n\tFB:"+yellow+" https://fb.com/sanaur.asif.72")
a=input(cyan+"\n\n\t\t[>] Press "+yellow+"Enter"+cyan+" to Continue")
count=1
else:
clear()
notice=red+"\t\t[×] Wrong Option Entered!"
count=1