-
Notifications
You must be signed in to change notification settings - Fork 0
/
[dev] Flexible shell.py
74 lines (68 loc) · 4.6 KB
/
[dev] Flexible shell.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
import glob
def show_available_modules():
available_modules = []
for item in glob.glob('./src/modules/*.py'):
if not "__init__" in item:
item = item.split("src/modules")[1]
available_modules.append(item[1:].replace(".py",""))
return available_modules
def call_module(command,*args):
try:
getattr(
getattr(
getattr(
__import__("src.modules."+command),'modules'
),command
),command)( args )
except ImportError:
print("[!] Module does not excist. Please use one of these modules. \n")
for help_number,help_item in enumerate(show_available_modules(),start=1):
print "[" + str(help_number) + "] " + help_item
except AttributeError:
print("[!] Please enter some command")
if __name__ == "__main__":
print("""
+-----------------------------------------------------------------------------------------------+
|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|
|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|
|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+/:-.````|xxxxxxxxxxxxxxxxxxxxx|
|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+:.`` |xxxxxxxxxxxxxxxxxxxxx|
|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+-` |xxxxxxxxxxxxxxxxxxxxx|
|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|
|xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx|
+-----------------------------------------------------------------------------------------------+
Flashgun, SWF vulnerability discovery framework.
""")
while 1:
c = raw_input("Fg> ")
try:
command = c.split()[0]
argument = c.split()[1]
call_module(command,argument)
except:
call_module(c)