Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to destroy your system with one line!
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4, 5, 6, 7, 8  Next  
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
highwind
n00b
n00b


Joined: 11 Mar 2003
Posts: 63
Location: Midgar

PostPosted: Fri Oct 08, 2004 7:27 pm    Post subject: How to destroy your system with one line! Reply with quote

I guess easiest one would be...

Code:
#rm -rf /


and this might work as well

from the root directory
Code:
#mv * *


any other suggestions?? ^_^
Back to top
View user's profile Send private message
Stormy Eyes
Veteran
Veteran


Joined: 09 Apr 2003
Posts: 1064
Location: Watching God spit-shine my boots.

PostPosted: Fri Oct 08, 2004 7:29 pm    Post subject: Reply with quote

Code:
chown -R nobody:nobody /*
Back to top
View user's profile Send private message
Verted
Guru
Guru


Joined: 09 Apr 2004
Posts: 474
Location: London, England

PostPosted: Fri Oct 08, 2004 7:30 pm    Post subject: Reply with quote

Hmm. What exactly do those examples do?
_________________
Thanks,
-Verted

http://verted.net
Back to top
View user's profile Send private message
den_RDC
Apprentice
Apprentice


Joined: 25 Aug 2002
Posts: 164
Location: beercountry, Belgium;)

PostPosted: Fri Oct 08, 2004 7:33 pm    Post subject: Reply with quote

Verted wrote:
Hmm. What exactly do those examples do?

Only one way to know for sure, test it :twisted:
_________________
Fan of the "Survivor Warriors of the Evil Empire of Bloody Destruction and Bloody Darkness"
Back to top
View user's profile Send private message
d0nju4n
Apprentice
Apprentice


Joined: 19 Apr 2004
Posts: 283
Location: Rochester, MN

PostPosted: Fri Oct 08, 2004 7:34 pm    Post subject: Reply with quote

I've never heard of this, but would
Code:

mv -f  * /dev/null

work as well?
_________________
Linux User 355087
Back to top
View user's profile Send private message
skunkworx
Guru
Guru


Joined: 02 Feb 2003
Posts: 420
Location: Planet Houston

PostPosted: Fri Oct 08, 2004 7:34 pm    Post subject: Reply with quote

Stormy Eyes wrote:
Code:
chown -R nobody:nobody /*


That one would be at least somewhat recoverable, wouldn't it? Not that I'm about to try it...

I nominate:

Code:
mke2fs <boot partition>

_________________
Proud to be a... eh, forget it.

"Everyday is just one day." -- not the Traveling Wilburys
Back to top
View user's profile Send private message
tln
Veteran
Veteran


Joined: 24 Sep 2003
Posts: 1502

PostPosted: Fri Oct 08, 2004 7:41 pm    Post subject: Reply with quote

skunkworx wrote:
Stormy Eyes wrote:
Code:
chown -R nobody:nobody /*


That one would be at least somewhat recoverable, wouldn't it? Not that I'm about to try it...

I nominate:

Code:
mke2fs <boot partition>


Easy to recover from if you have the livecd...

And I thought some shells prevent you from executing rm -rf /*?
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Fri Oct 08, 2004 7:41 pm    Post subject: Reply with quote

Code:
# for i in `seq 1 50`; do dd if=/dev/urandom of=/dev/<root partition>; done
:twisted:
_________________
~~ Peter: Brony, GNU/Linux geek, caffeine addict, and Free Software advocate.
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32328
Location: 56N 3W

PostPosted: Fri Oct 08, 2004 7:47 pm    Post subject: Reply with quote

highwind,

Code:
dd if=/dev/zero of=/dev/hda count=1 bs=512

or whatever your boot drive is.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
highwind
n00b
n00b


Joined: 11 Mar 2003
Posts: 63
Location: Midgar

PostPosted: Fri Oct 08, 2004 7:48 pm    Post subject: Reply with quote

hahahaha
i love these~
keep em coming~

btw
i think
Code:
#rm -rf /

will take too long...
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Fri Oct 08, 2004 7:48 pm    Post subject: Reply with quote

Code:
# cat /dev/zero > /dev/hda
:)
_________________
~~ Peter: Brony, GNU/Linux geek, caffeine addict, and Free Software advocate.
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
highwind
n00b
n00b


Joined: 11 Mar 2003
Posts: 63
Location: Midgar

PostPosted: Fri Oct 08, 2004 7:50 pm    Post subject: Reply with quote

oh and.. i've never tested these... (although it is very tempting)
so i can't verify any of these codes ^^

use them with caution~ ^^
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Fri Oct 08, 2004 7:51 pm    Post subject: Reply with quote

highwind wrote:
oh and.. i've never tested these... (although it is very tempting)
so i can't verify any of these codes ^^

use them with caution~ ^^
Perhaps you can test them from within a chroot-ed jail? *shrug*
_________________
~~ Peter: Brony, GNU/Linux geek, caffeine addict, and Free Software advocate.
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
skunkworx
Guru
Guru


Joined: 02 Feb 2003
Posts: 420
Location: Planet Houston

PostPosted: Fri Oct 08, 2004 7:57 pm    Post subject: Reply with quote

Code:
emerge -U world


I'm so shameless. :)

Oh, and let's not forget

Code:
emerge -C python

_________________
Proud to be a... eh, forget it.

"Everyday is just one day." -- not the Traveling Wilburys
Back to top
View user's profile Send private message
ed0n
l33t
l33t


Joined: 23 Apr 2003
Posts: 638
Location: Prishtine/Kosove

PostPosted: Fri Oct 08, 2004 8:01 pm    Post subject: Reply with quote

Code:
# mv /* /dev/null

Code:
# mkreiser4 /dev/hdaX
Back to top
View user's profile Send private message
durian
Guru
Guru


Joined: 16 Jul 2003
Posts: 312
Location: Margretetorp

PostPosted: Fri Oct 08, 2004 8:09 pm    Post subject: Reply with quote

Code:
chmod -x /bin


(as root). I have not done this myself, but my brother in law has. Needed bootfloppies to recover.

-peter
Back to top
View user's profile Send private message
Jake
Veteran
Veteran


Joined: 31 Jul 2003
Posts: 1129

PostPosted: Fri Oct 08, 2004 8:46 pm    Post subject: Reply with quote

Now I'm starting to wonder what the fastest way to render a system unbootable would be, NeddySeagoon's dd, durian's chmod, or possibly something else.
Back to top
View user's profile Send private message
Zaphod42
n00b
n00b


Joined: 10 Sep 2004
Posts: 10
Location: Kanadia

PostPosted: Fri Oct 08, 2004 9:19 pm    Post subject: Reply with quote

Jake wrote:
Now I'm starting to wonder what the fastest way to render a system unbootable would be, NeddySeagoon's dd, durian's chmod, or possibly something else.


Sledgehammer or Shotgun?

Seems a lot faster than typing some cryptic commands to me.

:lol:

-KL
Back to top
View user's profile Send private message
lisa
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 273
Location: York, UK again! Horray!

PostPosted: Fri Oct 08, 2004 9:22 pm    Post subject: Reply with quote

Code:

nohup chmod -R 0 /* &>/dev/null &;clear;exit

_________________
Distcc guide
Visit my website
I maintain Distcc, Ccache, Memcached, and some others (i think)
Back to top
View user's profile Send private message
skunkworx
Guru
Guru


Joined: 02 Feb 2003
Posts: 420
Location: Planet Houston

PostPosted: Fri Oct 08, 2004 9:25 pm    Post subject: Reply with quote

Jake wrote:
Now I'm starting to wonder what the fastest way to render a system unbootable would be, NeddySeagoon's dd, durian's chmod, or possibly something else.


Code:
rm -f /boot/grub/grub.conf

_________________
Proud to be a... eh, forget it.

"Everyday is just one day." -- not the Traveling Wilburys
Back to top
View user's profile Send private message
Plastic
l33t
l33t


Joined: 24 Mar 2004
Posts: 649

PostPosted: Fri Oct 08, 2004 9:37 pm    Post subject: Reply with quote

As per gentoo defaults you would have to
Code:
mount /boot
first.
Back to top
View user's profile Send private message
eeknay
Guru
Guru


Joined: 07 Jul 2003
Posts: 402
Location: EndOfTheRainbow

PostPosted: Fri Oct 08, 2004 9:39 pm    Post subject: Reply with quote

codergeek42 wrote:
Code:
# cat /dev/zero > /dev/hda
:)


:lol: thats good
_________________
Linda: "The holiday season is time of celebration for most but it is also the time to remember the tragic suffering of the less fortunate."
Morbo: "Earthlings do not yet know the meaning of suffering."
Back to top
View user's profile Send private message
Plastic
l33t
l33t


Joined: 24 Mar 2004
Posts: 649

PostPosted: Fri Oct 08, 2004 9:45 pm    Post subject: Reply with quote

rm -rf made my system unrecoverable withing a second (past experiece).
Back to top
View user's profile Send private message
Vanquirius
Retired Dev
Retired Dev


Joined: 14 Jun 2002
Posts: 1297
Location: Ethereal plains

PostPosted: Fri Oct 08, 2004 9:50 pm    Post subject: Reply with quote

To keep it simple:

Code:
echo 0 > /usr/bin/*

_________________
Hello.
Back to top
View user's profile Send private message
NiklasH
Apprentice
Apprentice


Joined: 30 Aug 2002
Posts: 211
Location: On top of something

PostPosted: Fri Oct 08, 2004 10:21 pm    Post subject: Reply with quote

Code:
find / -exec echo "" > {} \;

_________________
Banana Republic
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall All times are GMT
Goto page 1, 2, 3, 4, 5, 6, 7, 8  Next
Page 1 of 8

 
Jump to:  
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