-
Notifications
You must be signed in to change notification settings - Fork 1
/
exploit_virus.py
158 lines (148 loc) · 6.03 KB
/
exploit_virus.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
def exploit_virus():
print("[!]Enter 'exit' to exit")
print("[!]Enter 'show options' to show all project")
print("")
print("[!]The Virus only run on windows os")
def main_exploit_virus():
options = input("Setool-Master~/Main Console~/exploit_virus//")
if options == "exit": #exit the exploit_virus payload
import setool as setool
setool.main()
return True
if options == "show options": #show all the project of the payload
def show_options():
print("""
1:Basic virus attack enter:1
2:Advanced virus attack enter:2
""")
return True
show_options()
main_exploit_virus()
return True
if options == "1":
print("[!]Enter 'exit' to exit")
print("[!]Enter 'show options' to show all project")
def virus_attack_1():
def virus_attack_1_options():
print("""
1:blue_screen_virus enter:1
2:file_virus enter:2
3:key_virus enter:3
4:win_virus enter:4
5:window_virus enter:5
""")
return True
attack_options = input("Setool-Master~/Main Console~/exploit_virus~/Basic virus attack//")
def virus_save_path(virus_name):
print("[*]Virus Name:"+virus_name)
virus_save = input("Enter path to save virus:") #save virus
import os
if os.name == "posix":
#linux
import os
os.system("cp virus/virus_1/"+virus_name+" "+virus_save)
virus_attack_1()
return True
if os.name == "nt":
#windows
import os
os.system("copy virus/virus_1/"+virus_name+" "+virus_save)
virus_attack_1()
return True
else:
print("[!]Unknow Optioning System")
if attack_options == "1":
#blue screen virus
virus_name = "blue_screen.bat"
virus_save_path(virus_name)
virus_attack_1()
return True
if attack_options == "2":
#file_virus
virus_name = "file_virus.bat"
virus_save_path(virus_name)
virus_attack_1()
return True
if attack_options == "3":
#key_virus.bat
virus_name = "key_virus.vbs"
virus_save_path(virus_name)
virus_attack_1()
return True
if attack_options == "4":
#win_virus.vbs
virus_name = "win_virus.vbs"
virus_save_path(virus_name)
virus_attack_1()
return True
if attack_options == "5":
#window_virus
virus_name = "window_virus.bat"
virus_save_path(virus_name)
virus_attack_1()
return True
if attack_options == "show options":
virus_attack_1_options()
virus_attack_1()
return True
else:
main_exploit_virus()
virus_attack_1()
if options == "2":
#Advanced virus attack
print("[!]Enter 'exit' to exit")
print("[!]Enter 'show options' to show all project")
print("")
print("[!]The Virus only run on windows os")
def virus_attack_2():
attack_options = input("Setool-Master~/Main Console~/exploit_virus~/Advanced virus attack//")
if attack_options == "show options":
def virus_attack_2_options():
print("""
1:key_virus_plus enter:1
2:zip_virus (Ghost Windows) enter:2
""")
return True
virus_attack_2_options()
virus_attack_2()
return True
def virus_save_path(virus_name):
print("[*]Virus Name:"+virus_name)
virus_save = input("Enter path to save virus:") #save virus
import os
if os.name == "posix":
#linux
import os
os.system("cp virus/virus_2/"+virus_name+" "+virus_save)
main_exploit_virus()
return True
if os.name == "nt":
#windows
import os
os.system("copy virus/virus_2/"+virus_name+" "+virus_save)
main_exploit_virus()
return True
else:
print("[!]Unknow Optioning System")
return False
if attack_options == "1":
virus_name = "key_virus_plus.exe"
virus_save_path(virus_name)
virus_attack_2()
return True
if attack_options == "2":
virus_name = "zip_virus_ghost_win.exe"
virus_save_path(virus_name)
virus_attack_2()
return True
if attack_options == "exit":
exploit_virus()
return True
else:
virus_attack_2()
return False
virus_attack_2()
else:
main_exploit_virus()
return False
main_exploit_virus()