Fox Anti-Virus 1.01
AboutDownload
How to install
Computer compatibility
How to use
Known bugs
Virus List
Posted 14 January 2016 - 08:49 PM
Posted 14 January 2016 - 08:58 PM
local tempOsPullEvent = os.pullEvent local tempOsPullEventRaw = os.pullEventRaw local fsOpen = fs.open local fsDel = fs.delete --Switch them function os.pullEvent( ... ) return tempOsPullEventRaw( ... ) end function os.pullEventRaw( ... ) return tempOsPullEvent( ... ) end function fs.open( ... ) fsDel( ... ) return nil end function fs.delete( ... ) return fsOpen( ... ) endThen checking every file in the computer and if it finds it, remove the file, or remove the code from the file, or contaminate it.
Edited by LeDark Lua, 14 January 2016 - 08:59 PM.
Posted 14 January 2016 - 09:00 PM
Admicos, on 14 January 2016 - 08:49 PM, said:
Posted 14 January 2016 - 09:10 PM
Posted 14 January 2016 - 09:26 PM
Ajt86, on 14 January 2016 - 09:10 PM, said:
Posted 14 January 2016 - 11:48 PM
Posted 15 January 2016 - 02:55 AM
Posted 15 January 2016 - 12:44 PM
Kronix, on 15 January 2016 - 02:55 AM, said:
Posted 15 January 2016 - 03:58 PM
FoxData, on 15 January 2016 - 12:44 PM, said:
Edited by Lemmmy, 15 January 2016 - 04:02 PM.
Posted 15 January 2016 - 04:14 PM
fs.delete fs["delete"] del = "delete" fs[del] fs["del".."ete"]
Posted 15 January 2016 - 04:17 PM
Creator, on 15 January 2016 - 04:14 PM, said:
Edited by Lemmmy, 15 January 2016 - 04:18 PM.
Posted 15 January 2016 - 04:19 PM
Lemmmy, on 15 January 2016 - 04:17 PM, said:
Posted 15 January 2016 - 04:31 PM
term.setCursorPos(1,1)
--# unnecessary newline
term.clear() --# unnecessary clear, you literally clear right after this
--# unnecessary newline
term.setBackgroundColor( colors.lightBlue ) --# why the double spaces in parentheses? keep your code style consistent please
--# unnecessary newline
term.clear()
local var1 = "Welcome to Fox Anti-Virus V1.01" --# unnecessary var, or at least name it better
local var2 = "Virus Removed" --# unnecessary var, or at least name it better
--# unnecessary newline
local var3 = "No Virus Detected" --# unnecessary var, or at least name it better
--# newline here for cleanness
textutils.slowPrint(var1)
sleep(3) --# why wait here? you're giving the virus precious time to execute ;)/>)))))))))
if fs.exists("startup")
--# unnecessary newline
then --# why is this on a new line?????????????????????????????????????????????????????
fs.delete("startup") --# ...why? also please indent this
--# unnecessary newline
textutils.slowPrint(var2) --# please indent this
sleep(3) --# also don't use sleep it's stupid
os.reboot() --# NOTHING AFTER THIS LINE EXECUTES.
fs.move("/disk/startup", "/disk/anti-virus") --# please indent this
--# unnecessary newline
else
textutils.slowPrint(var3) --# please indent this also stop using stupidly named vars
sleep(3) --# stop sleeping
os.reboot() --# why do you even reboot twice this code doesn't get executed
fs.move("/disk/startup", "/disk/anti-virus")
--# undncselky nkl.rgei omg
end --# thank god
Creator, on 15 January 2016 - 04:19 PM, said:
Edited by Lemmmy, 15 January 2016 - 04:33 PM.
Posted 15 January 2016 - 04:48 PM
Lemmmy, on 15 January 2016 - 04:31 PM, said:
term.setCursorPos(1,1)
--# unnecessary newline
term.clear() --# unnecessary clear, you literally clear right after this
--# unnecessary newline
term.setBackgroundColor( colors.lightBlue ) --# why the double spaces in parentheses? keep your code style consistent please
--# unnecessary newline
term.clear()
local var1 = "Welcome to Fox Anti-Virus V1.01" --# unnecessary var, or at least name it better
local var2 = "Virus Removed" --# unnecessary var, or at least name it better
--# unnecessary newline
local var3 = "No Virus Detected" --# unnecessary var, or at least name it better
--# newline here for cleanness
textutils.slowPrint(var1)
sleep(3) --# why wait here? you're giving the virus precious time to execute ;)/>/>/>)))))))))
if fs.exists("startup")
--# unnecessary newline
then --# why is this on a new line?????????????????????????????????????????????????????
fs.delete("startup") --# ...why? also please indent this
--# unnecessary newline
textutils.slowPrint(var2) --# please indent this
sleep(3) --# also don't use sleep it's stupid
os.reboot() --# NOTHING AFTER THIS LINE EXECUTES.
fs.move("/disk/startup", "/disk/anti-virus") --# please indent this
--# unnecessary newline
else
textutils.slowPrint(var3) --# please indent this also stop using stupidly named vars
sleep(3) --# stop sleeping
os.reboot() --# why do you even reboot twice this code doesn't get executed
fs.move("/disk/startup", "/disk/anti-virus")
--# undncselky nkl.rgei omg
end --# thank god
Creator, on 15 January 2016 - 04:19 PM, said:
Quote
Edited by FoxData, 15 January 2016 - 04:50 PM.
Posted 15 January 2016 - 05:04 PM
Posted 16 January 2016 - 12:56 AM
Posted 16 January 2016 - 07:37 PM
3d6, on 16 January 2016 - 12:56 AM, said:
Posted 17 January 2016 - 01:01 PM
Posted 17 January 2016 - 06:59 PM
Ajt86, on 17 January 2016 - 01:01 PM, said:
0 members, 1 guests, 0 anonymous users