This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
thegreatstudio's profile picture

Grapes Antivirus v1.1 Pear OS compatible! and Other OS compatible!

Started by thegreatstudio, 01 May 2013 - 09:30 AM
thegreatstudio #1
Posted 01 May 2013 - 11:30 AM
Hey guys Grapes Antivirus v1.1 is finally out!! if you know that your os is not working and its has errors! dont worry and the G.AV will Help you stop your os on errors!!.. Oh one thing that bugs me its not a Window its a terminal based.

Download:
pastebin get HcWxjuCa setup

try the new orange antivirus

Download:
pastebin get GP9PY3YD installer
Sammich Lord #2
Posted 01 May 2013 - 11:42 AM
Can you tell us how it tests for errors and provide some more information for us?
GravityScore #3
Posted 01 May 2013 - 11:47 AM


print("Scanning Files.")
sleep(1)
print(fs.getName("roms/apis/colors"))
sleep(1)
print(fs.getName("roms/apis/io"))
sleep(1)
print(fs.getName("roms/apis/vector"))
sleep(1)
print(fs.getName("roms/programs"))
sleep(1)
print(fs.delete("/BMOS"))
sleep(1)
print(fs.delete("/virus"))
sleep(1)

Oh god the fake loading screen horror…

By the looks of the code, it removes files called "/viris" and "/BMOS", and then copies the startup file to a different location, deletes the original startup file, then replaces it with the original one, resulting in no change at all (meaning that was totally useless).

You might want to rethink how you can check if a file might be a virus, how you can effectively notify the user of that, and remove it.

P.S Please remove all the sleep(1)s, they are really annoying.
thegreatstudio #4
Posted 01 May 2013 - 11:54 AM
i have downloaded NexOS but it went getting to errors like langueges and more so i maked this antivirus for os that has errors and has viruses
thegreatstudio #5
Posted 01 May 2013 - 11:56 AM
Forgot your pass to acces your computer
thegreatstudio #6
Posted 01 May 2013 - 12:31 PM
antivirus is now version 2.1
M4sh3dP0t4t03 #7
Posted 01 May 2013 - 01:14 PM
This isn't an actual antivirus program
thegreatstudio #8
Posted 01 May 2013 - 01:23 PM
This isn't an actual antivirus program

maybe.. because i made this program for os that has errors nexus os it has many errors..

it checks
Shinjiteru #9
Posted 01 May 2013 - 06:33 PM
Is this a troll? Because I've seen REAL antiviruses in CC, it's POSSIBLE, what's with this code!?!?!?!?!

Oh and also just a suggestion for the Update your antivirus thing:


resp = http.get("http://pastebin.com/raw.php?i=K6SZkGib")
if resp then
fileHandle=io.open(shell.getRunningProgram(),"w")
fileHandle.write(resp.readAll())
fileHandle.close()
print("Updated!")
else
print(":(/> Couldn't reach server!")
end
Sammich Lord #10
Posted 01 May 2013 - 06:37 PM
Is this a troll? Because I've seen REAL antiviruses in CC, it's POSSIBLE, what's with this code!?!?!?!?!

Oh and also just a suggestion for the Update your antivirus thing:


resp = http.get("http://pastebin.com/raw.php?i=K6SZkGib")
if resp then
fileHandle=io.open(shell.getRunningProgram(),"w")
fileHandle.write(resp.readAll())
fileHandle.close()
print("Updated!")
else
print(":(/>/> Couldn't reach server!")
end
IO needs : but you can just switch the IO to FS and be fine.
Shinjiteru #11
Posted 01 May 2013 - 06:41 PM
@Sammich: I've had issues with saving using FS, FS is for reading, IO is for writing, as far as I know. Also as far as I know, : == . in Lua, (I may be mistaken because I've never experimented with the differences).
Mandrake Fernflower #12
Posted 01 May 2013 - 06:41 PM
Is this a troll? Because I've seen REAL antiviruses in CC, it's POSSIBLE, what's with this code!?!?!?!?!

Oh and also just a suggestion for the Update your antivirus thing:


resp = http.get("http://pastebin.com/raw.php?i=K6SZkGib")
if resp then
fileHandle=io.open(shell.getRunningProgram(),"w")
fileHandle.write(resp.readAll())
fileHandle.close()
print("Updated!")
else
print(":(/>/> Couldn't reach server!")
end
It certainly looks like a troll! I hope that this isn't a real program and is a troll or hello world.
Sammich Lord #13
Posted 01 May 2013 - 06:47 PM
@Sammich: I've had issues with saving using FS, FS is for reading, IO is for writing, as far as I know. Also as far as I know, : == . in Lua, (I may be mistaken because I've never experimented with the differences).
: puts the object that called the function as the first argument. So for instance:

function hello(self)
  print('Self')
end
hi = "Hello World"
hi:hello()
Would print 'Hello world'.
Shnupbups #14
Posted 01 May 2013 - 07:04 PM
@Sammich: I've had issues with saving using FS, FS is for reading, IO is for writing, as far as I know. Also as far as I know, : == . in Lua, (I may be mistaken because I've never experimented with the differences).
FS can be used for either.
fs.open("somefile","r") -- Read mode
fs.open("somefile","w") -- Write mode
-- There are also many other modes.

Anyway, on topic, from what I can see, this does nothing except remove random stuff, print random stuff, sleep a crazy number of unnecessary times, and move the startup file forward and back again for no purpose. I'm sorry, because I know you're trying, but if we had everyone post their first program on here, we would have hundreds upon thousands of door locks and 'Hello World!'s. Look into making a full antivirus when you become experienced with CC and Lua.
theoriginalbit #15
Posted 02 May 2013 - 12:39 AM
@Sammich: I've had issues with saving using FS, FS is for reading, IO is for writing, as far as I know. Also as far as I know, : == . in Lua, (I may be mistaken because I've never experimented with the differences).
FS can read and write.
IO uses FS to read and write.
You just have to use the object notation with IO

FS

local h = fs.open('file', 'w') -- open for write
h.write('Hello World!')
h.close()


local h = fs.open('file', 'r') -- open for read
print(h.readLine())
h.close()

IO

local h = io.open('file', 'w') -- open for write
h:write('Hello World!')
h:close()

local h = io.open('file', 'r') -- open for read
print(h:read())
h:close()
Edited on 01 May 2013 - 10:53 PM
thegreatstudio #16
Posted 02 May 2013 - 12:50 AM
@Sammich: I've had issues with saving using FS, FS is for reading, IO is for writing, as far as I know. Also as far as I know, : == . in Lua, (I may be mistaken because I've never experimented with the differences).
FS can read and write.
IO uses FS to read and write.
You just have to use the object notation with IO

FS

local h = fs.open('file', 'w') -- open for write
h.write('Hello World!')
h.close()


local h = fs.open('file', 'r') -- open for read
print(h.read())
h.close()

IO

local h = io.open('file', 'w') -- open for write
h:write('Hello World!')
h:close()

local h = io.open('file', 'r') -- open for read
print(h:read())
h:close()

oh one thing on fs api type print(h.readAll()) – to read all
theoriginalbit #17
Posted 02 May 2013 - 12:54 AM
oh one thing on fs api type print(h.readAll()) – to read all
Whops, I did originally type readLine there, I must have accidentally removed it. I use readLine because the read in IO is a read line, you then have readAll and read('*a')
TheVarmari #18
Posted 02 May 2013 - 09:14 AM
Antivirus you say? Well, seems like my file deleter debug virus passed through it like a charm. So it works! /s
thegreatstudio #19
Posted 02 May 2013 - 12:38 PM
Hey everyone! the orange antivirus is now out!!

it has functions that can help your computer to be fixed!!


Download:
pastebin get GP9PY3YD installer
GravityScore #20
Posted 02 May 2013 - 12:49 PM
You can just edit your old post by clicking the edit button at the bottom of it. You don't have to post a new topic every time you update your program.
thegreatstudio #21
Posted 02 May 2013 - 01:02 PM
oh
Lyqyd #22
Posted 02 May 2013 - 02:01 PM
Threads merged.
ardera #23
Posted 02 May 2013 - 02:29 PM
lol, above it says the program is version 1.1, and in the program it says the version is 6.2…