Well, technically, this isn't a "virus" by definition, but it is the first piece of "malicious" code for the NXT, specifically targeting the NBC/NXC Enhanced Firmware:
/* Program Name: "! Startup.nxc"
** This program was created by "muntoo" on November 7, 2010
** Created using BricxCC (by John Hansen) and written in NXC (by John Hansen)
** ( http://bricxcc.sourceforge.net/ )
Description:
MUHUHAHAHAHAHAHAHAHAHAHAHAHAHAHA!!!
*/
task main()
{
PowerDown();
RebootInFirmwareMode();
}
I was dumb enough to download this to my NXT. I thought I could fix it by redownloading the firmware... but that doesn't seem to work.
Any ideas on how to remove this "virus"?
Last edited by muntoo on 14 Nov 2010, 03:56, edited 1 time in total.
Commit to LEGO Mindstorms Robotics Stack Exchange: bit.ly/MindstormsSE
Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
Hit the reset button for a couple of seconds and then reflash. Easy.
- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
Actually Xander, it is not that easy. I once built a program that was basically the same thing, and it took a lot more than just holding the reset button to reset it. How I fixed it, was by holding the orange button AND the reset button for a COUPLE MINUTES. It finally did fix it. The reset button only seems to work when the NXT is powered on, so holding the orange button will keep turning it on, and holding the reset button will hopefully reset it (it FINALLY did for me). After that, I decided to NEVER download the program again.
mattallen37 wrote:What do you mean by "transmit itself"?
Sort of similar to some cellphone viruses that go from phone to phone using Bluetooth. In other words, it would duplicate itself, sort of like an earthworm getting chopped in half*, growing again and repeating the cycle. Pretty soon you have lots of worms . At least, that's how I understand it.
* Well, maybe they don't quite duplicate, just grow back.
Last edited by nxtreme on 08 Nov 2010, 16:20, edited 1 time in total.
One King to rule them all, One King to find them,
One King to bring them all and in the darkness bind them
On Earth where Shadows lie.
If your fix works (I'll try it on Saturday), I'll probably make another one. I'll see if there are any exploits in BT to make a worm... Of course, I'll do some pre-testing to make sure it's safe, and I'll add a safety feature (stops after 2 transmits?).