3
A N A LY Z I N G A N D M A N A G I N G
N E T W O R K S
Understanding networking is crucial for
any aspiring hacker.
In many situations,
you’ll be hacking something over a network,
and a good hacker needs to know how to con-
nect to and interact with that network. For example,
you may need to connect
to a computer with your
Internet Protocol (IP) address hidden from view, or you may need to redi-
rect a target’s Domain Name System (DNS) queries to your system; these
kinds of tasks are relatively simple but require
a little Linux network know-
how. This chapter shows you some essential Linux tools for analyzing and
managing networks during your network-hacking adventures.
Analyzing Networks with ifconfig
The
ifconfig
command is one of the most basic tools for examining and
interacting with active network interfaces. You can use it to query your
active network connections
by simply entering
ifconfig
in the terminal.
Try it yourself, and you should see output similar to Listing 3-1.