EDIT: So anyways, here's my code for you to examine.
http://pastebin.com/kVH61sLb
I'm making a Nandton antivirus. It won't stop grievers, but it will prevent you from accidently bricking your command computer or accidently removing your filesystem
I'm making a Nandton antivirus. It won't stop grievers, but it will prevent you from accidently bricking your command computer or accidently removing your filesystem
Hmmm….
Erm….
Wait what? An antivirus system?
I thought a few days ago to code one, but there are some reasons against that:
- No one post any viruses on computercraft (and if they do they are stupid)
- Oh, you know that i can write rom/programs/edit to not using your edit?
- Too much effort for too less products.
- How coding a antivirus system?
- Do I hash all 'good programs'?
- Or should i search for malicios software?
- Or should i scan files.
- If i do so, then how could i detect malicios software?
- For example:
- os.pullEvent = couroutine.yield
- while coroutine.yield() do print('No!') end
- He could program a login screen.
- And what is with binaries?
- Okay, you could use a custom environment, but why should i do that? Who could attack my computer?
- Is it not much easier to build bedrock or obsidian arround my computer?
- Okay the best argument is, it is fun. If you have fun then don't stop writing on an antivirus.
Mines an active antivirus
Whenever the code attempts to run a malicous code, it verifies wit the user.
I'm not sure how this would be done, but you could sandbox a shell inside the program, and monitor its activites. Perhaps if a virus activates, it would be sandboxed too, it would scan for any bad code(such as changing name to or copying to startup) and quarantine it?I'm making a Nandton antivirus. It won't stop grievers, but it will prevent you from accidently bricking your command computer or accidently removing your filesystem
I'm not sure how this would be done, but you could sandbox a shell inside the program, and monitor its activites. Perhaps if a virus activates, it would be sandboxed too, it would scan for any bad code(such as changing name to or copying to startup) and quarantine it?I'm making a Nandton antivirus. It won't stop grievers, but it will prevent you from accidently bricking your command computer or accidently removing your filesystem
<p>I'm making a Nandton antivirus. It won't stop grievers, but it will prevent you from accidently bricking your command computer or accidently removing your filesystem
Hmmm….
Erm….
Wait what? An antivirus system?
I thought a few days ago to code one, but there are some reasons against that:
- No one post any viruses on computercraft (and if they do they are stupid)
- Oh, you know that i can write rom/programs/edit to not using your edit?
- Too much effort for too less products.
- How coding a antivirus system?
- Do I hash all 'good programs'?
- Or should i search for malicios software?
- Or should i scan files.
- If i do so, then how could i detect malicios software?
- For example:
- os.pullEvent = couroutine.yield
- while coroutine.yield() do print('No!') end
- He could program a login screen.
- And what is with binaries?
- Okay, you could use a custom environment, but why should i do that? Who could attack my computer?
- Is it not much easier to build bedrock or obsidian arround my computer?
- Okay the best argument is, it is fun. If you have fun then don't stop writing on an antivirus.
Depends on the type of AV you want to build: there are passive and active ones. The passive ones scan files (the simplest ones just compare hashes, more advanced ones check for partial equality with known parts of viruses etc. AFAIK). Active AVs detect the stuff a program tries to do while it runs, checking for malicious intend.This actually made me think of a good use for the "new" setting which allows you to disable automatic booting from a disk: on startup a "permission" system, similar to the one Android uses, is injected into the computer. Then it will continue the boot sequence like normal (with disks). That way you could control the program without having to worry about some AV not picking up some virus. If the computer messes up it's the users fault.
<p>I'm making a Nandton antivirus. It won't stop grievers, but it will prevent you from accidently bricking your command computer or accidently removing your filesystem
Hmmm….
Erm….
Wait what? An antivirus system?
I thought a few days ago to code one, but there are some reasons against that:
- No one post any viruses on computercraft (and if they do they are stupid)
- Oh, you know that i can write rom/programs/edit to not using your edit?
- Too much effort for too less products.
- How coding a antivirus system?
- Do I hash all 'good programs'?
- Or should i search for malicios software?
- Or should i scan files.
- If i do so, then how could i detect malicios software?
- For example:
- os.pullEvent = couroutine.yield
- while coroutine.yield() do print('No!') end
- He could program a login screen.
- And what is with binaries?
- Okay, you could use a custom environment, but why should i do that? Who could attack my computer?
- Is it not much easier to build bedrock or obsidian arround my computer?
- Okay the best argument is, it is fun. If you have fun then don't stop writing on an antivirus.
Depends on the type of AV you want to build: there are passive and active ones. The passive ones scan files (the simplest ones just compare hashes, more advanced ones check for partial equality with known parts of viruses etc. AFAIK). Active AVs detect the stuff a program tries to do while it runs, checking for malicious intend.This actually made me think of a good use for the "new" setting which allows you to disable automatic booting from a disk: on startup a "permission" system, similar to the one Android uses, is injected into the computer. Then it will continue the boot sequence like normal (with disks). That way you could control the program without having to worry about some AV not picking up some virus. If the computer messes up it's the users fault.
Actually, with some self-promotion, You can put the permission system on a GBios custom pack or /vmgalaxi (it wouldn't really matter), and it would run before anything else. This is a good use for GBios as a Computer Recovery pack, because if the virus writes itself to /startup, and it disables disk startup from that script, there is no way you can fix it with a disk. Assuming no files are damaged, only that the shell is unaccessible and you cannot terminate /startup, you can put an empty GBios release without autoroot for automatically booting into a rescue shell, there you can delete the file and go back to normal.
Real efficient antivirus should be incrusted in ROM because of this, you can avoid viruses that brick your computer just by overwriting /startup and disabling disk statrtup.
<p>I'm making a Nandton antivirus. It won't stop grievers, but it will prevent you from accidently bricking your command computer or accidently removing your filesystem
Hmmm….
Erm….
Wait what? An antivirus system?
I thought a few days ago to code one, but there are some reasons against that:
- No one post any viruses on computercraft (and if they do they are stupid)
- Oh, you know that i can write rom/programs/edit to not using your edit?
- Too much effort for too less products.
- How coding a antivirus system?
- Do I hash all 'good programs'?
- Or should i search for malicios software?
- Or should i scan files.
- If i do so, then how could i detect malicios software?
- For example:
- os.pullEvent = couroutine.yield
- while coroutine.yield() do print('No!') end
- He could program a login screen.
- And what is with binaries?
- Okay, you could use a custom environment, but why should i do that? Who could attack my computer?
- Is it not much easier to build bedrock or obsidian arround my computer?
- Okay the best argument is, it is fun. If you have fun then don't stop writing on an antivirus.
Depends on the type of AV you want to build: there are passive and active ones. The passive ones scan files (the simplest ones just compare hashes, more advanced ones check for partial equality with known parts of viruses etc. AFAIK). Active AVs detect the stuff a program tries to do while it runs, checking for malicious intend.This actually made me think of a good use for the "new" setting which allows you to disable automatic booting from a disk: on startup a "permission" system, similar to the one Android uses, is injected into the computer. Then it will continue the boot sequence like normal (with disks). That way you could control the program without having to worry about some AV not picking up some virus. If the computer messes up it's the users fault.
Actually, with some self-promotion, You can put the permission system on a GBios custom pack or /vmgalaxi (it wouldn't really matter), and it would run before anything else. This is a good use for GBios as a Computer Recovery pack, because if the virus writes itself to /startup, and it disables disk startup from that script, there is no way you can fix it with a disk. Assuming no files are damaged, only that the shell is unaccessible and you cannot terminate /startup, you can put an empty GBios release without autoroot for automatically booting into a rescue shell, there you can delete the file and go back to normal.
Real efficient antivirus should be incrusted in ROM because of this, you can avoid viruses that brick your computer just by overwriting /startup and disabling disk statrtup.
I still don't see how using that /vmgalaxi file has any advantages over a TLCO (other than the simpler use after installing it). You can recover the files just fine. Just put the computer into a disk drive and you can edit the files.
– snip