Jump to content




Help with Injecting Virus


  • This topic is locked This topic is locked
4 replies to this topic

#1 PixelFox

  • Members
  • 106 posts

Posted 11 April 2015 - 11:51 PM

I'm making a virus for learning purposes, and I can't inject the disks "startup" file into the "startup" file of the computer. I MEAN WHEN THE DISK IS OUT OF THE DISK DRIVE IT STILL WORKS.
I also want to know how to make it so people can not use Ctrl+T to get out of it.

Here is the code:
term.clear()
term.setCursorPos(1, 1)
print("CraftOS 1.7")
term.write("> ")
while true do
read()
print("No such program")
term.write("> ")
end

Edited by Lightning, 12 April 2015 - 12:10 AM.


#2 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 12 April 2015 - 12:08 AM

First off, we don't promote malicious code on the forums. However, I can answer your questions:

1) You don't need to inject the disks startup. Just place the disk in, ctrl+r the computer, and the startup on the disk will run. If you really need to edit files, look into the fs api

2) Put this at the top of your program:
os.pullEvent = os.pullEventRaw

Please note that it is impossible to brick a computer completely, you can always use ctrl+R to reboot or ctrl+S to run the startup script. This, combined with a disk drive, allows you to bypass any startup file.

#3 PixelFox

  • Members
  • 106 posts

Posted 12 April 2015 - 12:10 AM

View PostKingofGamesYami, on 12 April 2015 - 12:08 AM, said:

First off, we don't promote malicious code on the forums. However, I can answer your questions:

1) You don't need to inject the disks startup. Just place the disk in, ctrl+r the computer, and the startup on the disk will run. If you really need to edit files, look into the fs api

2) Put this at the top of your program:
os.pullEvent = os.pullEventRaw

Please note that it is impossible to brick a computer completely, you can always use ctrl+R to reboot or ctrl+S to run the startup script. This, combined with a disk drive, allows you to bypass any startup file.
I mean when the disk is out of the disk drive it still works.
and I know that a disk drive can bypass it, I'm making an anti-virus using that technique, unless... I copy the startup file to the disk, before it runs....
Wait...
I could copy startup from the disk into a file, and startup, then, when a disk is put in, the virus would put the copy of itself into the floppy disc, and then, it would run the file. woah, then the virus would spread. (but I wouldn't do that.)

Edited by Lightning, 12 April 2015 - 12:19 AM.


#4 PixelFox

  • Members
  • 106 posts

Posted 12 April 2015 - 12:52 AM

Huh.

#5 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 12 April 2015 - 01:04 AM

We don't help with malicious code.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users