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

Virus

Started by EmTeaKay, 02 April 2012 - 07:06 PM
EmTeaKay #1
Posted 02 April 2012 - 09:06 PM
Hello. I am going to give you the code to "prank" your friends or people you don't like on your server. This makes it so the computer is unusable.
Spoiler

local oldPull = os.pullEvent;
os.pullEvent = os.pullEventRaw;
term.clear() -- Clears screen
term.setCursorPos(1,1) -- Puts where you type back to top
sleep(10000000000000000000000000000000000000000)
os.reboot()
os.pullEvent = oldPull;
Put this code into startup file. When the computer starts up, type
edit startup
You'll be showen a blank screen. Type in that code for endless 'lolz'!
Gurkenmaster #2
Posted 05 April 2012 - 01:32 PM
This is simpler and shorter

shell.resolveProgram = function() end
EmTeaKay #3
Posted 05 April 2012 - 09:45 PM
This is simpler and shorter

shell.resolveProgram = function() end

This is full of troll! And this makes it so they think they're making a mistake.
Cloudy #4
Posted 06 April 2012 - 10:52 PM
Even shorter.
os.shutdown()
Noodle #5
Posted 06 April 2012 - 10:55 PM
Not long enough..
@Cloudy
Yes.
Leonardoas111 #6
Posted 03 August 2012 - 02:27 PM
Even shorter.
os.shutdown()

1. Make a floppy disk
2. Create a startup file
3. Insert the floppy disk on a disk drive
4. Profit!
filipkwro #7
Posted 13 August 2012 - 02:33 PM
EVEN shorter!

os.reboot()
niels22 #8
Posted 13 August 2012 - 03:33 PM
Even faster: Remove their computer.
Cranium #9
Posted 13 August 2012 - 03:49 PM
Misnamed as a virus. Should just be a troll program. Virus indicates that it overwrites previous coding for malicious intent.
ardera #10
Posted 15 August 2012 - 08:16 PM
One Time, I had a program that (how 1lann said it) Ruined the whole Computer!
No Str+R, Str+S, Str+T and so on…
But he deleted the file and so I don't know the code of the vire anymore…
"But isn't the System hardcoded?"
Yes, but I know what I saw!
ardera #11
Posted 16 August 2012 - 10:16 AM
I think the Ctrl+R and Ctrl+S function is hardcoded?
One time I "deleted" the os.shutdown function and Ctrl+S still worked.
And i typed coroutine.yield=function() end and I reboote the PC using Ctrl+R.
ardera #12
Posted 16 August 2012 - 10:25 AM
Hey Ultimate Vire: (No Ctrl+R, No Ctrl+S, No Ctrl+T):
Deleted it, because its malicious…
FuzzyPurp #13
Posted 16 August 2012 - 10:04 PM
Please refrain from posting malicious scripts on the forums.
inventor2514 #14
Posted 17 August 2012 - 01:47 AM
So, if a program on your actual computer rendered it unusable, that wouldn't be malicious? I would certainly consider it to be.
Lyqyd #15
Posted 17 August 2012 - 01:52 AM
Hey Ultimate Vire: (No Ctrl+R, No Ctrl+S, No Ctrl+T):

function ab()
  aa=coroutine.create(ab)
  coroutine.resume(aa)
  while true do end
end
ac=coroutine.create(ab)
coroutine.resume(ac)
(Tested on 1.3, CCEmu by tomass1997)

Did you test this on computercraft itself, not just an emulator? I'm thinking that would just throw a "too long without yielding".
ardera #16
Posted 17 August 2012 - 04:44 PM
Hey Ultimate Vire: (No Ctrl+R, No Ctrl+S, No Ctrl+T):
Deleted it, because its malicious

Did you test this on computercraft itself, not just an emulator? I'm thinking that would just throw a "too long without yielding".
Youre thinking, im testing.

EDIT: he Lyqyd, can you delete the vire from your post too?
ardera #17
Posted 17 August 2012 - 04:45 PM
So, if a program on your actual computer rendered it unusable, that wouldn't be malicious? I would certainly consider it to be.
It don't changes programs and don't deletes programs.
inventor2514 #18
Posted 17 August 2012 - 05:02 PM
Files may not be changed, but it still prevents the computer from being used. On a server that uses a custom shell, you might not even be able to disk boot around it. Thus, it is a form of malware.

Relevant Link:
http://en.wikipedia.org/wiki/Malware
Cranium #19
Posted 17 August 2012 - 05:12 PM
Yeah, not virus, but definitely malware…
ardera #20
Posted 17 August 2012 - 08:41 PM
OK then sorry… I'll delete the virus from the forum… But how makes it the computer unusable?
Cloudy #21
Posted 17 August 2012 - 09:22 PM
Closed. Stick to the rules please guys, don't want to have to hand out warnings.