3 ms·
I wrote my first ever (and last) virus for the Archimedes... Some history: Waaay back in the mists of time (1988) I was a 1st-year undergrad in Physics. Toget
by spacedcowboy 6y ago
I wrote my first ever (and last) virus for the Archimedes...
Some history:
Waaay back in the mists of time (1988) I was a 1st-year undergrad in Physics. Together with a couple of friends, I wrote a virus, just to see if we could (having read through the Advanced User Guide and the Econet System User Guide), then let it loose on just one of the networked archimedes machines in the year-1 lab.
I guess I should say that the virus was completely harmless, it just prepended 'Copyright (c) 1988 The Virus' to the start of directory listings. It was written for Acorn Archimedes (the lab hadn't got onto PC's by this time, and the Acorn range had loads of ports, which physics labs like :-)
It spread like wildfire. People would come in, log into the network, and become infected because the last person to use their current computer was infected. It would then infect their account, so wherever they logged on in future would also infect the computer they were using then. A couple of hours later, and most of the lab was infected.
You have to remember that viruses in those days weren't really networked. They came on floppy disks for Atari ST's and Amiga's. I witnessed people logging onto the same computer "to see if they were infected too". Of course, the act of logging in would infect them...
Of course "authority" was not amused. Actually they were seriously unamused, not that they caught us. They shut down the year-1,2,3 network and disinfected all the accounts on the network server by hand. Ouch.
There were basically 3 ways the virus could be activated:
- Typing any 'star' command (eg: "* .", which gave you a directory listing. Sneaky, I thought, since the virus announced itself when you did a '* .' When you thought you'd beaten it, you'd do a '* .' to see if it was still there :-)
- The events (keypress, network, disk etc.) all activated the virus if inactive, and also re-enabled the interrupts, if they had been disabled
- The interrupts (NMI,VBI,..) all activated the virus if inactive, and also re-enabled the events, if they had been deactivated.
On activation, the virus would replicate itself to the current mass-storage media. This was to cause problems because we hadn't really counted on just how effective this would be. Within a few days of the virus being cleansed (and everyone settling back to normal), it suddenly made a re-appearance again, racing through the network once more within an hour or two. Someone had put the virus onto their floppy disk (by typing *. on the floppy when saving their work, rather than the network) and had then brought the disk back into college and re-infected the network.
If we thought authority was unamused last time, this time they held a meeting for the entire department, and calmly said the culprit when found would be expelled. Excrement and fans came to mind. Of course, they thought we'd just re-released it, but in fact it was just too successful for comfort...
Since we had "shot our bolt", owning up didn't seem like a good idea. The only solution we came up with was to write another (silent, this time :-) virus which would disable any copy of the old one, whilst hiding itself from the users. We built in a time-to-die of a couple of months, let it go, and prayed...
We had actually built in a kill-switch to the original virus, which would disable and remove it - we didn't want to be infected ourselves (at the start). Of course, it became a matter of self-preservation to be infected later on in the saga - 3 accounts unaccountably (pun intended :-) uninfected... It wasn't too hard to destroy the original by having the new virus "press" the key combination that deleted the old one.
So, everyone was happy. Infected with the counter-virus for a while, but happy. "Authority" thought they'd laid down the law, and been taken seriously (oh if they knew...) and we'd not been expelled. Everyone else lost their infections within a few months ...
Anyway. I've never written anything remotely like a virus since [grin]
- hactually 6y agoOh wow... very similar story from me that started from not being able to gain access to the "End of term only" games that the IT admin let us play. This virus was able to hide in directorys `!Boot`, `!Run` and would share anything it found of interest. Long story short, Pineapple Software came in - said it was pretty advanced and ended up patching their antivirus for it! Pretty scary for a 12 year old!
- eythian 6y agoDid a sorta similar thing on RiscOS, in BASIC, on our high school computers. It would hide in application directories and put itself in as !Boot (so it'd run when the icon was viewed) and then copy itself into any other application that was run/viewed (I forget which.) Being the smartarse I was, I also unlocked the harddrive of some of the computers (hold some key on boot), put it into an installed application, and then relocked it behind me. This way anyone using that computer was guaranteed to get it on their disk. My fall came when I left a disk with the raw source on it with my name on it in the lab and the teacher found it and figured out what it was. Luckily the teacher was a good sort, I got a talking to from the principal, and banned from the lab for the rest of the school year (but it was September, so only a couple of months.) The next year they started giving me a lot more access to our various school machines so that I could do whatever projects I wanted with them, and once they start to do that you don't want to piss them off and have them take it away, so I behaved :)