Advertisement
Guest User

Untitled

a guest
May 24th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import subprocess
  2. import random
  3. s = open("log", "w")
  4. s.close()
  5. s = open("log", "r")
  6. y = s.read()
  7. s.close()
  8. x = random.randint(0,65535)
  9. s = open("log", "w")
  10. s.write(str(x))
  11. s.close()
  12. subprocess.check_output(["cp", "bs" + y + ".py", "bs" + str(x) + ".py"])
  13. subprocess.check_output(["python", "bs" + str(x) + ".py"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement