Advertisement
182days

Worm Example

Apr 28th, 2016
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.02 KB | None | 0 0
  1. #file worm (maxim & mike)
  2. #creates 10 random named files in the folder the program is run from!
  3. counter=0
  4. print("Please wait....")
  5. while True:
  6.     import random
  7.     rnum0 = random.choice("qwertyuiopasdfghjklzxcvbnm1234567890")
  8.     rnum1 = random.choice("qwertyuiopasdfghjklzxcvbnm1234567890")
  9.     rnum2 = random.choice("qwertyuiopasdfghjklzxcvbnm1234567890")
  10.     rnum3 = random.choice("qwertyuiopasdfghjklzxcvbnm1234567890")
  11.     rnum4 = random.choice("qwertyuiopasdfghjklzxcvbnm1234567890")
  12.     rnum5 = random.choice("qwertyuiopasdfghjklzxcvbnm1234567890")
  13.     rnum6 = random.choice("qwertyuiopasdfghjklzxcvbnm1234567890")
  14.     rnum7 = random.choice("qwertyuiopasdfghjklzxcvbnm1234567890")
  15.     rnum8 = random.choice("qwertyuiopasdfghjklzxcvbnm1234567890")
  16.     rnum9 = random.choice("qwertyuiopasdfghjklzxcvbnm1234567890")
  17.     myobj = open(rnum0 + rnum1 + rnum2 + rnum2 + rnum4 + rnum5 + rnum6 + rnum7 + rnum8 + rnum9, "a")
  18.     myobj.write("""LOL""")
  19.     myobj.close()
  20.     counter +=1
  21.     if counter == 10:
  22.         break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement