Qbasicnews.com
Heh, I have an idea... - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: QBasic (http://qbasicnews.com/newforum/forum-4.html)
+--- Forum: QB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-11.html)
+--- Thread: Heh, I have an idea... (/thread-333.html)

Pages: 1 2


Heh, I have an idea... - Zack - 03-03-2003

I AM NOT A VIRUS WRITER!!!
But I have an idea for a virus...
First make the program open AUTOEXEC.BAT and REM all the lines in it, and add a line telling it to start this program before it starts windows. Then it crashes the computer:
Use the ol'
Code:
FOR i=1 to 65535
OUT i,0
NEXT
And when you reboot, it runs the program again, crashes, etc etc etc.
Hmm, I think I'll try that on my old Pentium 100... :lol:
Of course, I think WIN/XP and some other versions of Windows don't use the old MS-DOS AUTOEXEC.BAT, but this would work on WIN/95 or WIN/98 Tongue


Damn... - Zack - 03-03-2003

That post was supposed to be in my "Crashing your computer in QB" post lower down the "Programming help" section...
I accidentaly pressed "Post new topic" rather than "Post Reply" :roll:


Heh, I have an idea... - Agamemnus - 03-04-2003

then edit it and delete it.


Heh, I have an idea... - Hexadecimal Disaster - 03-04-2003

I should note that a real virus is capable of replicate itself. But... I don't want to be the kill-joy here. That's the work of our Traveling Curmudgeon. [Image: xyxwave.gif]


Heh, I have an idea... - Agamemnus - 03-04-2003

where do you get all those smileys??


Heh, I have an idea... - Hexadecimal Disaster - 03-04-2003

Somewhere... [Image: deal.gif]


Heh, I have an idea... - Agamemnus - 03-04-2003

oh, cool.
[Image: 3dbiggrin3.gif]


Heh, I have an idea... - Neo - 03-04-2003

hehehehe
[Image: jump.gif]
[Image: Tomcat.gif]


Whoa... - Zack - 03-05-2003

Where DO you get those emoticons???


I'd have just raised the simpler point that... - Glenn - 03-05-2003

there's no need to REM all the lines in the autoexec. That code will crash the computer regardless. But in this day and age of windows allowing people to use computers when they don't know how, you can have lots of fun with the following QB program (do it with an executable and open a DOS window on someone's computer before running it):

'$INCLUDE: 'QB.BI'
DIM INREGSX AS REGTYPEX, OUTREGSX AS REGTYPEX
INREGSX.AX=1
CALL INTERRPUTX(&H33,INREGSX,OUTREGSX)
INREGSX=&H4C00
CALL INTERRUPTX(&H21, INREGSX,OUTREGSX)


They'll spend all day trying to figure out what to click on (with the rodent cursor that that code makes appear on a DOS screen) to make "that screen" go away.




Or just have the program produce an otherwise blank screen with the following printed on it:

Hard disk formatting completed.
All files deleted...


(The scream I got woke up dead people.)




Quote:I should note that a real virus is capable of replicate itself. But... I don't want to be the kill-joy here. That's the work of our Traveling Curmudgeon. [Image: xyxwave.gif]