| View previous topic :: View next topic |
| Author |
Message |
Graham Site Admin

Joined: 21 May 2007 Posts: 219 Location: Piga Software HQ, near Seba Beach, Alberta, Canada
|
Posted: Fri Nov 21, 2008 7:54 am Post subject: Piga Virus? |
|
|
No, we haven't gone nuts. I have actually been playing around with some destructive code though. The nice thing about DOS Box is that it allows you to say which directory you want the fake DOS to think is your root directory. So I used this to safely play around with some file and directory deletion code I have in a book on QBasic. There are some scary revelations here, the "KILL" command can take out any file, even one that I removed permissions too. I don't know if this applies to Microsoft Window's file security, but the way the book was talking about it, this is potent stuff! The directory deletion command "RMDIR" does have one limitation I found, you can't delete your root directory ("C:/"), however you can delete "C:/Windows/". I created a program that creates a directory, and then deletes it, and then repeats. Now, in the spirit of free software, here it is (made in QBasic 4.5):
| Code: | DO WHILE PAUSETWO$ = ""
INPUT PAUSEONE
MKDIR "C:/test/"
INPUT PAUSETWO$
IF PAUSETWO$ = "Exit" THEN
END
END IF
RMDIR "C:/test/"
LOOP
|
_________________ Developer and Web Master for Piga Software, Graham L. Wilson
Fedora GNU/Linux User, Gambas Programmer
Ace Programmer, Future Poor Man. ;-D |
|
| Back to top |
|
 |
Hamish Site Admin

Joined: 20 May 2007 Posts: 109 Location: Piga Software HQ, Alberta Canada
|
Posted: Sun Nov 23, 2008 10:56 pm Post subject: |
|
|
What is that old Joke, The Linux Honour System Virus?
rmdir / _________________ BDFL of Piga Software and Forum Administrator, Hamish Wilson
My Blog: http://www.linuxquestions.org/linux/blog/Chargh
"Low-level programming is good for the programmer's soul." - John Carmack, id Software |
|
| Back to top |
|
 |
klingoncowboy4 Hog

Joined: 24 May 2007 Posts: 127 Location: Piga Basement
|
Posted: Tue Nov 25, 2008 8:46 pm Post subject: |
|
|
If you try running it in a windows nt cmd you might run into a permissions thing if you for example try c:windows _________________
Free Empires Source Release Two (Linux) |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|