ifconfig

Usage

ifconfig [-v] [-a] [-s] [interface]
ifconfig [-v] interface [aftype] options | address ...

Examples

ifconfig
ifconfig -a
ifconfig eth0 up
ifconfig eth0 down
ifconfig eth0 10.10.XXX.XXX netmask 255.255.255.0 up
Displays the status of the currently active interfaces
Displays the status of all interfaces
Causes the interface to be activated
Causes the interface to be deactivated
Change the computer's IP address to 10.10.XXX.XXX






Options

-a
interface
up
down
netmask addr
Display all interfaces which are currently available, even if down
The name of the interface. This is usually eth0 for the ethernet connection, or wlan0 for a wireless interface.
This flag causes the interface to be activated.
This flag causes the driver for this interface to be shut down.
Set the IP network mask for this interface.






traceroute

Usage

traceroute host

Examples

traceroute 131.122.90.9
traceroute www.tomshardware.com



Options

-I
-T
-i interface
Use ICMP ECHO for probes
Use TCP SYN for probes
Specifies the interface through which traceroute should send packets




nmap

Usage

nmap [options] address

Examples

nmap -sn 3.3.3.1/24
nmap -A 3.3.3.1-3
nmap -O www.red.net
nmap -p1-65535 -iL targets.txt





Options

-p
-O
-A
-sn
-sV
-iL FILE
Only scan specified ports. Ex: -p22; -p1-65535; -p U:53,111,137,T:21-25,80,139,8080,S:9
Enable Operating System (OS) detection
Enable OS detection, version detection, script scanning and traceroute
Ping Scan - disable port scan
Probe open ports to determine service/version info
Scan the hosts listed in FILE. Ex: -iL targets.txt











nslookup

Usage

nslookup [-option] [name | -] [server]

Examples

nslookup www.google.com
nslookup www
nslookup www.usna.edu 131.122.22.143




Options

port=value
retry=number
timeout=number
Change the default TCP/UDP name server port to value. (Default = 53)
Set the number of retries to number.
Change the initial timeout interval for waiting for a reply to number seconds.