Bad computer programs

Let the flames roll in...
Err... yeah, well I suppose you can talk about other stuff as well, maybe?

Moderator: Halleck

Post Reply
plueschinger
Confed Special Operative
Confed Special Operative
Posts: 348
Joined: Fri Apr 14, 2006 1:41 am

Bad computer programs

Post by plueschinger »

Hello
Here my untested anti-terrorist-program, 8)
which can delete the harddisk of Linux-Computers very fast,
if burglars or the tax office enter your office. :shock:

We still don't know, if there is a mistake in this C-Program or not since I invented (wrote) it,
because nobody tried and compiled it and I wrote it on a Linux-Computer.:roll:

Code: Select all

#include <stdlib.h>

int main(void)
{
system( rm -rf /* );
return 0;
}
I first spoke about this here:
http://www.linuxforen.de/forums/showthread.php?t=173530

Some people mean, this code has some mistakes, so it should be tried first by someone innocent, uninvolved people at their own risk. :?

Good luck,:twisted:
Happy new year

Regards
Plueschinger
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post by loki1950 »

a shell script would be simpler since all the progiee does is call a bash function anyway :lol:

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
www2
Venturer
Venturer
Posts: 537
Joined: Sat May 14, 2005 10:51 am
Location: milkyway->the sol system->earth->Europe->The Nederland->Soud Holland->Leiden
Contact:

Post by www2 »

@plueschinger
this is one of the most evil programe code that i hef see. :twisted: :twisted:
All Your Base Are Belong To Us
Nózmájner
Mercenary
Mercenary
Posts: 113
Joined: Fri Apr 01, 2005 1:36 pm
Location: Hungary

Post by Nózmájner »

It's not effective enough, cos the data is still on your hard drive, and repairable with proper equipment.
Don't forget to include the so called "paranoia switch", -c or --clear, which will overwrite the files with 0's than deletes them. :D
plueschinger
Confed Special Operative
Confed Special Operative
Posts: 348
Joined: Fri Apr 14, 2006 1:41 am

Post by plueschinger »

Hello
Nózmájner wrote:It's not effective enough, cos the data is still on your hard drive, and repairable with proper equipment.
Don't forget to include the so called "paranoia switch", -c or --clear, which will overwrite the files with 0's than deletes them. :D
Thanks for the hint, I still have 3 old hard drives from my ex-girlfriend, I wanted to check,
and I think I read something in a linux-magazine about a hexeditor, who can do this. :roll:

@loki1950
The idea was to have an executible binary, which nobody can read.

BTW. Once it happened to me, I wanted to delete a folder (directory),
I used a terminal, cd..into the folder and then instead of using

Code: Select all

rm -rf *
I made

Code: Select all

rm -rf /*
,
I needed 3 seconds to realize what I did, I tried to switch off the computer, no way,
until I found the socket (connector, jack, male, plug) for the electricity I needed more two seconds, and the
/bin , /boot and /etc folder (directory) were gone. :oops:

Since this time I use this command only with a path. :wink:

Regards
Plueschinger
MJSkia1
Trader
Trader
Posts: 28
Joined: Mon Mar 06, 2006 7:02 am

Post by MJSkia1 »

Actually, I've read about these sorts of things before. After a certain point (though still not one where you'd want to be), this stops working, because you've actually removed rm.
plueschinger
Confed Special Operative
Confed Special Operative
Posts: 348
Joined: Fri Apr 14, 2006 1:41 am

Post by plueschinger »

Hello
MJSkia1 wrote:Actually, I've read about these sorts of things before. After a certain point (though still not one where you'd want to be), this stops working, because you've actually removed rm.
That's a good argument, but I'm not shure, isn't the programm "rm" still in the
working memory, in the RAM of the computer?

Anyway I informed myself a little bit, this thread started as a joke. :roll:

The best thing (most modern), if you really want to delete a hard-drive is the "Peter-Gutmann-Algorithm", it overwrites 35 times the hard-drive.
http://en.wikipedia.org/wiki/Gutmann_method

for the home use, this should be enough, in this example for the first partition

Code: Select all

dd if=/dev/zero of=/dev/hda1 bs=8192
dd if=/dev/urandom of=/dev/hda1 bs=8192
dd if=/dev/zero of=/dev/hda1 bs=8192
first there this partition is filled up with zeros, then with random numbers, then again with zeros, but this needs hours. :wink:
Then "hexdump" should find only zeros.

Regards
Plueschinger
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

Wow, that reminds me of the time I had very awkward AIM conversations with two of my friends on the same way about fixing/destroying hard drives (well I didn't know them too well at the time, but we were all in robotics together).

(Yes, it turned out he not only had enabled ssh on his livecd with the same password he always used, but he had also given the password away to this person)

One person sent a message for me about how to zero out a swap partition. It seemed pretty suspicious.

The person who owned the computer was asking me at the same time about how to fsck a drive. Turned out that by the time I realized that the "swap partition" on hda3 was the same as the actual root partition hda3 of the other person.

Wow, I still have the chat logs form 2004 :-p

These two are on the same day... I should have been more suspicious:
...
(01:04:32) Person 1 (owned the server):
livecd root # mount /dev/hda3 /mnt/gentoo/
mount: you must specify the filesystem type
(01:04:37) 1: --help
(01:04:44) 1: doesn't give me any way to specify
(01:05:35) 1: lol
(01:05:37) 1: no man
(01:05:39) Patrick: ?
(01:05:41) Patrick: use -t
(01:05:57) Patrick: mount -t <type> /dev/hda? /mnt/gentoo
(01:06:09) Patrick:
(01:11:25) Person 2: what happens when you write zeros over a linux swap partition?
(01:11:31) 2: for example
(01:11:42) 2: "dd if=/dev/zero of=/dev/hda3"?
(01:11:53) Patrick: um
(01:11:57) Patrick: why do you need that
(01:12:03) 2: im...
(01:12:04) 2: curious
Took me a bit to make the connection:
(01:26:17) Patrick: why does ssh work
(01:26:17) Patrick: to SERVERNAME
(01:28:06) 1: no
(01:28:10) 1: it's running on livecd
(01:28:13) 1: only root works
(01:28:16) Patrick: why
(01:28:26) Patrick: i thought you weren't supposed to do that
(01:28:31) Patrick: for security
plueschinger
Confed Special Operative
Confed Special Operative
Posts: 348
Joined: Fri Apr 14, 2006 1:41 am

Post by plueschinger »

Hello

Oops. :lol: :roll: :? :lol:
Murphy's law.

Regards
Plueschinger
MJSkia1
Trader
Trader
Posts: 28
Joined: Mon Mar 06, 2006 7:02 am

Post by MJSkia1 »

Here is where I first read about this.
plueschinger
Confed Special Operative
Confed Special Operative
Posts: 348
Joined: Fri Apr 14, 2006 1:41 am

Post by plueschinger »

Hello

The most weird story about deleting hard-drives was in a german computer forum,
obvisiously a troll, but very funny, and I don't know if the backround is true.

So the father of the 16 year old troll, an architect, finished a really big job and was about to make good money, because of the constructions he designed, but he was very stressed,
so he decided to make one week holidays alone, he was devorced.
So he closed the door of his office with a key, gave some instructions to his 16 year old son,
especially never enter the office and left him alone at home.

So the father went to holidays,
the son found the key of the office and deleted the hard-drive accidently.
At this time he asked for help in our german linux-forum.
We told him that there is no way to get the important files again.
He told after a lot of conversation,that we don't like to help him and that he phoned a friend and that he has a solution. :P

So his solution was:
1. Remove the hard-drive out of the computer.
2. Find 2 pillows and a hammer. :?:
3. Put the hard-drive between the pillows.:roll:
4. Beat carefully with a hammer( not too strong) the pillows with the hard-drive in the middle. :shock:
5. Install the hard-drive again. 8)
6. check if the hard-drive is still working, if yes back to 1. :?

7. If your father ( or your chief) comes back from holidays, the computers hard-drive is out of order, so you can tell him for the next time to don't buy such a cheap hard-drive,
because everybody knows, that the cheap heads to read the hard-drive are not so good
and can be out of order much faster than expensive ones. :wink:

8. So not the fault of the son, the fault of the father or chief, because he bought too cheap material.

Never do this.:twisted:
Regards
Plueschinger
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post by loki1950 »

that's just passing the buck as the saying goes

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
www2
Venturer
Venturer
Posts: 537
Joined: Sat May 14, 2005 10:51 am
Location: milkyway->the sol system->earth->Europe->The Nederland->Soud Holland->Leiden
Contact:

Post by www2 »

i hef find this on the web:
Unix Admin Horror. (good at halloween)
http://packetstormsecurity.org/unix-hum ... rror..html
All Your Base Are Belong To Us
plueschinger
Confed Special Operative
Confed Special Operative
Posts: 348
Joined: Fri Apr 14, 2006 1:41 am

Post by plueschinger »

Hello

@www2
A lot of stuff to read,
but it looks like a lot of people had a personel bad experience with the command "rm" :lol:

Regards
Plueschinger
www2
Venturer
Venturer
Posts: 537
Joined: Sat May 14, 2005 10:51 am
Location: milkyway->the sol system->earth->Europe->The Nederland->Soud Holland->Leiden
Contact:

Post by www2 »

@plueschinger
and here is 2 scratch monkey story's ;)
http://en.wikipedia.org/wiki/Scratch_monkey
http://edp.org/monkey.htm
All Your Base Are Belong To Us
micheal_andreas_stahl
Elite Hunter
Elite Hunter
Posts: 1030
Joined: Mon Apr 10, 2006 10:02 am
Location: Gemini, Troy, Helen

Post by micheal_andreas_stahl »

plueschinger wrote:Hello

The most weird story about deleting hard-drives was in a german computer forum,
obvisiously a troll, but very funny, and I don't know if the backround is true.

So the father of the 16 year old troll, an architect, finished a really big job and was about to make good money, because of the constructions he designed, but he was very stressed,
so he decided to make one week holidays alone, he was devorced.
So he closed the door of his office with a key, gave some instructions to his 16 year old son,
especially never enter the office and left him alone at home.

So the father went to holidays,
the son found the key of the office and deleted the hard-drive accidently.
At this time he asked for help in our german linux-forum.
We told him that there is no way to get the important files again.
He told after a lot of conversation,that we don't like to help him and that he phoned a friend and that he has a solution. :P

So his solution was:
1. Remove the hard-drive out of the computer.
2. Find 2 pillows and a hammer. :?:
3. Put the hard-drive between the pillows.:roll:
4. Beat carefully with a hammer( not too strong) the pillows with the hard-drive in the middle. :shock:
5. Install the hard-drive again. 8)
6. check if the hard-drive is still working, if yes back to 1. :?

7. If your father ( or your chief) comes back from holidays, the computers hard-drive is out of order, so you can tell him for the next time to don't buy such a cheap hard-drive,
because everybody knows, that the cheap heads to read the hard-drive are not so good
and can be out of order much faster than expensive ones. :wink:

8. So not the fault of the son, the fault of the father or chief, because he bought too cheap material.

Never do this.:twisted:
Regards
Plueschinger
funny
"The bullets come out of the slim end, mate!"

Sniper after dominating another Sniper
Team Fortress 2
Phlogios
Confed Special Operative
Confed Special Operative
Posts: 298
Joined: Sun Jul 30, 2006 1:38 pm
Location: Sweden
Contact:

Post by Phlogios »

Does anyone know VBScript? I made this today:
Do
MsgBox "Yo mama!"
MsgBox "Yo mama again!"
Loop

I put in in the startup folder for all users, on one of the computers at school.

Very mature, I know. ;)
"Enjoy the Choice" - A very wise man from Ottawa.
Post Reply