forked from xibijj/MstForAndroid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mst.py
65 lines (64 loc) · 2.09 KB
/
mst.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
#!/usr/bin/python2.7
#coding:utf-8
################################
# mst::My Sec Tools #
# ver::2.0Beta #
# mkt::2013-11-03 #
# url::http://mstoor.duapp.com #
################################
from libs.MstUpdate import update
from libs.MstCache import cache
if __name__ == "__main__":
try:
cache.start()
while True:
cache.printmst()
cmd = raw_input('>')
if cmd == 'help':
cache.mainhelp()
elif cmd == 'exit':
cache.mainexit()
elif cmd == 'cls':
cache.cls()
elif cmd == 'use':
cache.usage("use")
elif cmd == 'show':
cache.usage("show")
elif cmd == 'search':
cache.usage("search")
elif cmd == 'banner':
cache.banner()
elif cmd == 'update':
update.download()
cache.start()
elif len(cmd.split(" ")) == 2:
n = cmd.split(" ")
c = n[0]
g = n[1]
if c == 'search':
if len(g.replace(" ",""))>0:
cache.search(g)
else:
cache.usage(c)
elif c == 'show':
if g == 'exploit':
cache.showplus("exploit")
elif g == 'payload':
cache.showplus("payload")
elif g == 'multi':
cache.showplus("multi")
else:
cache.usage(c)
elif c == 'use':
if len(g.replace(" ",""))>0:
cache.load(g)
else:
cache.usage(c)
elif len(cmd.replace(" ",""))>0:
cache.execmd(cmd)
elif len(cmd.replace(" ",""))>0:
cache.execmd(cmd)
except KeyboardInterrupt:
cache.mainexit()
except Exception,e:
cache.errmsg(e)