-
Notifications
You must be signed in to change notification settings - Fork 1
/
web_page_attack.py
63 lines (60 loc) · 2.08 KB
/
web_page_attack.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
def attack():
print("[*]Enter 'exit' to exit")
print("[*]Enter 'show options' show all the project")
def main_attack():
options = input("Setool-Master~/Main Console~/Web_Page_Attack//")
if options == "show options":
def show_options():
print("""
1:pop-up window_1
2:pop-up window_2
""")
show_options()
main_attack()
return True
if options == "exit":
import setool
setool.main()
return True
if options == "1":
def pop_up_1():
import os
if os.name == "posix":
#linux
os.system("cp webpage_attack/index_1/index.html ./")
os.system("python3 -m http.server 8080")
main_attack()
return True
if os.name == "nt":
os.system("copy webpage_attack/index_1/index.html ./")
os.system("python -m http.server 8080")
main_attack()
return True
else:
print("[!]Unknow Optioning system")
return False
return True
pop_up_1()
if options == "2":
def pop_up_2():
import os
if os.name == "posix":
#linux
os.system("cp webpage_attack/index_2/index.html ./")
os.system("python3 -m http.server 8080")
main_attack()
return True
if os.name == "nt":
os.system("copy webpage_attack/index_2/index.html ./")
os.system("python -m http.server 8080")
main_attack()
return True
else:
print("[!]Unknow Optioning system")
return False
return True
pop_up_2()
else:
main_attack()
return False
main_attack()