-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetool.py
401 lines (360 loc) · 12.8 KB
/
setool.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
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
#LinWin-Cloud
#auther : linwin-cloud
#setool-master
def main():
print("")
options = input("Setool-Master~/Main Console//")
if options == "help":
a=open("config/help" , "r+")
b=a.read()
print(b)
main()
return True
if options == "payload web_gp":
import payload as payload
payload.payload_web_gp()
main()
return True
if options == "use web_gp":
import web_gp as web_gp
web_gp.web_gp()
return True
if options == "payload web_ip -info":
import payload as payload
payload.payload_web_ip()
main()
return True
if options == "use web_ip":
#get ip adress
import getip as getip
getip.main_get_ip()
return True
if options == "payload web_threaten -info":
import payload as payload
payload.payload_web_threaten()
main()
return True
if options == "use web_threaten":
#use web_threaten
def web_threaten():
import threaten as threaten
threaten.threaten()
web_threaten()
return True
if options == "use py_tools":
import py_tools as py_tools
py_tools.py_tools()
return True
if options == "payload py_tools -info":
def payload_py_tools():
#show the payload of the py_tools
#py_tools
lang = open("config/lang" , "r+")
langset = lang.read()
if langset == "zh-cn":
#chinese
openpaylaod = open("config/payload/py_tools-zh" , "r+")
readpayload = openpaylaod.read()
print(readpayload)
return True
else:
#english
openpaylaod = open("config/payload/py_tools-en" , "r+")
readpayload = openpaylaod.read()
print(readpayload)
return True
payload_py_tools()
main() #reture to the main function
return True
if options == "use web_page_attack": #use the payload:web_page_attack
import web_page_attack as web_page_attack
web_page_attack.attack()
main()
return True
if options == "payload web_page_attack":
import payload as payload
payload.payload_web_page_attack()
main()
return True
if options == "use web_console":
import os
if os.name == "posix":
import os , webbrowser
os.system("cp 'Web Console/index/index.html' ./")
os.system("python3 -m http.server 8080")
return True
if os.name == "nt":
import os , webbrowser
os.system("copy 'Web Console/index/index.html' ./")
os.system("python -m http.server 8080")
return True
else:
print("[!]Unknow Optioning System")
if options == "use shodan_search":
import shodan_search as shodan_search
shodan_search.shodansearch()
return True
if options == "payload shodan_search -info":
#show the payload shodan_search 's info
lang = "config/lang" #the language set file
openlang = open(lang , "r+")
setlang = openlang.read()
if setlang == "zh-cn":
openpaylaod = open("config/payload/shodan_search-zh" , "r+")
readpayload = openpaylaod.read()
print(readpayload)
main()
return True
else:
#english
openpaylaod = open("config/payload/shodan_search-en" , "r+")
readpayload = openpaylaod.read()
print(readpayload)
main()
return True
return True
if options == "payload web_clone -info":
#show the inforamtion for the web_clone
def payload_web_clone():
lang = "config/lang" #the language set file
openlang = open(lang , "r+")
setlang = openlang.read()
if setlang == "zh-cn":
def read_web_clone():
openpaylaod = open("config/web_clone-zh" , "r+")
readpayload = openpaylaod.read()
print(readpayload)
return True
read_web_clone()
else:
def read_web_clone_en():
openpaylaod = open("config/web_clone-en" , "r+")
readpayload = openpaylaod.read()
print(readpayload)
return True
read_web_clone_en()
payload_web_clone()
main()
return True
if options == "use web_clone":
#use web site clone
import webiteclone as websiteclone
websiteclone.website_clone()
return True
if options == "payload /?":
print("")
print("payload [payload name] -info")
main()
if options == "use exploit_seeker": #use seeker-master
def startseeker():
#only linux can start
import os
os.system("bash ./startseeker.sh")
def exploit_seeker():
def oschose():
import os
print("")
print("[*]Optioning System:"+os.name) #get os name
print("[*]Work Path:"+os.getcwd()) #get work path
if os.name == "posix":
#Linux os
startseeker()
return True
else:
print("[*]Do not start the seeker-master on your system!")
return False
oschose()
exploit_seeker()
main()
if options == "use exploit_social": #show the payload exploit_social info
def setool():
import social as social
social.socialtools()
setool()
return True
elif options == "payload exploit_social -info":
def exploit_social_info():
openconfig = open("config/lang" , "r+") #open language config
readconfig = openconfig.read() #read language config
if readconfig== "zh-cn": #if the language is chinese than run this function
#chinese
def readsocial_zh():
opensocial = open ("config/socialpayload-zh" , "r+")
socialinfo = opensocial.read()
print(socialinfo)
return True
readsocial_zh()
else:
#english
def readsocial_en():
openconfig = open("config/socialpayload-en" , "r+") #open social payload config
socialinfo = openconfig.read()
print (socialinfo)
return True
readsocial_en()
exploit_social_info()
main()
elif options == "clear":
def clear():
import os
print("System:" + os.name) #get os
print("WorkPath:"+os.getcwd()) #get work path
if os.name == "posix":
#Linux
import os
os.system("sudo rm -f index.html")
os.system("sudo rm -f index.js")
os.system("sudo rm -f logo.jpeg")
os.system("sudo rm -f pass.PNG")
os.system("sudo rm -f qqlogon.jpg")
os.system("sudo rm -f users.PNG")
os.system("sudo rm -f pass.html")
os.system("sudo rm -f logo.png")
print("[*]clear work path OK!")
return True
if os.name == "nt":
#windows
os.system("del /F /S /Q index.html")
os.system("del /F /S /Q index.js")
os.system("del /F /S /Q logo.jpeg")
os.system("del /F /S /Q pass.PNG")
os.system("del /F /S /Q qqlogon.jpg")
os.system("del /F /S /Q users.PNG")
os.system("del /F /S /Q pass.html")
os.system("del /F /S /Q logo.png")
print("[*]clear work path OK!")
return True
else:
print("[*]Unknow Optioning System , do not clear the work path!")
return False
clear()
main()
if options == "setool -info":
def info(): #show setool's vistion anf information
openconfig = open ("config/info" , "r+")
readconfig = openconfig.read()
print(readconfig)
info()
main()
if options == "set language": #set language
def languageset():
print("""
1:English Enter:1
2:Chinese Enter:2
""")
#enter 1 set language english
#enter 2 set language chinese
lang = input ("Setool-Master~/Main Console~/Language Setting//")
if lang == "1":
with open ("config/lang" , "w") as f:
f.write ("en-us")
f.close()
if lang == "2":
with open ("config/lang" , "w") as f:
f.write ("zh-cn")
f.close()
languageset()
main()
if options == "payload ngrok -info":
#show the info for the ngrok
def payload_ngrok():
lang = open("config/lang" , "r+")
langconfig = lang.read()
if langconfig == "zh-cn": #chinese
def read_ngrok_zh():
openngrok = open("config/payload/ngrok-zh" , "r+")
readngrok = openngrok.read()
print(readngrok)
return True
read_ngrok_zh()
main()
return True
else:
openngrok = open("config/payload/ngrok-en" , "r+")
readngrok = openngrok.read()
print(readngrok)
main()
return True
payload_ngrok()
return True
if options == "show options":
lang = open("config/lang" , "r+")
langset = lang.read()
if langset == "en-us":
#the English language
openoptions = open("config/options" , "r+")
readoptions = openoptions.read()
print(readoptions)
main()
#the chinese language
if langset == "zh-cn":
openoptions = open("config/options-zh" , "r+")
readoptions = openoptions.read()
print(readoptions)
main()
else:
openoptions = open("config/options" , "r+") #en-us
readoptions = openoptions.read()
print(readoptions)
main() #use main function
if options == "exit":
exit() #qiut
if options == "use ngrok":
def ngrok():
import os
if os.name == "posix":
#Linux
print("[!]You must logon for the ngrok than can use ngrok server!")
print("[!]Logon to ngrok in url:https://www.ngrok.com/")
print("[*]Enter 'exit' to retrue console")
ngrokoptions = input("Enter http port to start:")
if ngrokoptions == "exit":
main()
return True
else:
import os
os.system("./ngrok/ngrok http "+ngrokoptions) #use ngrok
ngrok()
return False
else:
print("[*]The System do not run this software!")
return False
ngrok()
else:
def oscommand():
import os
os.system(options) #run the system command
oscommand()
main()
def startlogo(): #logo
print("""
//////////////////////////////////////////////////
____ _ _
/ ___| ___ | |_ ___ ___ | |
\___ \ / _ \ | __| / _ \ / _ \ | |
___) | | __/ | |_ | (_) | | (_) | | |
|____/ \___| \__| \___/ \___/ |_|
_____ ____
|_ _|__ / ___| ___
______________________ | |/ _ \| | _ / _ \
|______________________| | | (_) | |_| | (_) |
|_|\___/ \____|\___/
https://github.com/LinWin-Cloud
https://gitee.com/LinWin-Cloud
==================================
//////////////////////////////////////////////////
""")
print("[!]Enter 'help' to get help")
def chose_os():
import os
if os.name == "posix": #linux
main()
return True
if os.name == "nt": #windows
main()
return True
else:
print("[!]Unknow Optioning System")
return False
chose_os()
startlogo()