Category Archives: linux

Hacking Linux Expose

Website

GET

Hacking Linux exposed: Linux security secrets & solutions

cover

Author(s): Brian Hatch

Series: Hacking Exposed

Publisher: Osborne/McGraw-Hill, Year: 2001

ISBN: 0-07-212773-2

Search in WorldCat | Search in Goodreads | Search in AbeBooks | Search in Amazon.com

Description:
If you have a vulnerable computer attached to the BIG BAD INTERNET, sooner or later your box will be compromised. Notice I prefer the term compromised to hacked. Hacking is a benign activity. You hack out of curiosity and [hopefully] with prior permission. Can this be done? Can I get into this box? How is he trying to keep me out? What stone has he left unturned? Woops: He has a bulletproof firewall but he left this one vulnerable cgi script in his httpd directory: HA! I'M IN! At that point the correct thing to do is to stop and notify the hackee. But once a hacker gets in, (especially if he is there without permission) the temptation to quietly mess around and cover his guilty tracks is usually overwhelming. Then it has gone from hacking to compromising someone else's box.

Ubuntu quick notes

From: Computer Beginner's Guides
Terminal: CTRL+ALT+T keys simultaneously

Once the Termina launches, type this command and then hit the ENTER key:

ifconfig

The ifconfig command will generate an output with a great deal of information.

Fortunately, most of it is useful. The “eth0″ refers to the first Ethernet connection on your system. The “indet addr” displays your system’s IP address, while “Mask” shows the subnet mask. “HWaddr” shows your Ethernet adapter’s MAC (Media Access Control) address, which is (theoretically) unique to each adapter. (Some wireless networks require you to supply your MAC address before allowing your system to connect.)
 

To find the MAC address:

ifconfig | grep HWaddr