forked from StormWorld0/storm-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstorm
More file actions
executable file
·99 lines (82 loc) · 2.61 KB
/
Copy pathstorm
File metadata and controls
executable file
·99 lines (82 loc) · 2.61 KB
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
#!/usr/bin/env python3
import os
import time
import sys
import readline # noqa: F401
import app.base.config_ui as ui
import lib.smf.core.sf.ldch as ldch
from app.base.config_update import *
from app.utility.colors import C
from app.utility.verify import *
from app.banners.uib import banner
from lib.core import handler as h
def main():
check_critical_files()
run_verif()
try:
for i in range(6, 0, -1):
sys.stdout.write(f"\r{C.SUCCESS}[*] Verification Success! Start Storm: [{i}] {C.RESET}")
sys.stdout.flush()
time.sleep(1)
except KeyboardInterrupt: return
os.system('clear')
print(banner())
ui.stormUI()
check_update()
current_module = None
current_module_name = ""
options = {
"IP": "",
"PORT": "",
"PASS": "",
"URL": "",
"EMAIL": "",
"HASH": "",
"MESSAGE": "",
"USER": "",
"ID": "",
"COUNT": "",
"PATH": "",
"INTERFACE": "",
"THREAD": "",
"DOMAIN": "",
"HOSTNAME": "",
"MODULE": ""
}
options = ldch.session(options)
while True:
START_INV = "\001"
END_INV = "\002"
BLUE = f"{START_INV}{C.BLUE}{END_INV}"
CYAN = f"{START_INV}{C.MENU}{END_INV}"
YELLOW = f"{START_INV}{C.INPUT}{END_INV}"
RED = f"{START_INV}{C.ERROR}{END_INV}"
RESET = f"{START_INV}{C.RESET}{END_INV}"
p_mod = current_module_name if current_module else "~"
try:
print(f"{CYAN}┌─({BLUE}storm{YELLOW}<⚡>{BLUE}framework{CYAN}){RESET}-{RED}[{p_mod}]{RESET}")
promp = f"{CYAN}└─{BLUE}➤ {RESET}"
user_input = input(promp).strip().split()
except KeyboardInterrupt: return
except EOFError: break
if not user_input: continue
cmd = user_input[0].lower()
args = user_input[1:]
# Wrap all data into Context
context = {
"current_module": current_module,
"current_module_name": current_module_name,
"options": options,
"exit": False
}
# HAND IT OVER TO THE FOREMAN (HANDLER)
new_context = h.execute(cmd, args, context)
if new_context:
current_module = new_context["current_module"]
current_module_name = new_context["current_module_name"]
options = new_context["options"]
if new_context.get("exit"): break
else:
print(f"[-] Unknown Command: {cmd} > Run the {C.SUCCESS}help{C.RESET} command for more details.")
if __name__ == "__main__":
main()