Command Line Tools Flashcards
1
Q
ping - Test reachability
A
- ping - Test reachability to a TCP/IP address
- ping -t - Ping until stopped with Ctrl-c
- ping -a - Resolve address to a hostname
- ping -n - Send # of echo requests
- ping -f - Send with Don’t Fragment flag set
2
Q
traceroute
A
- Takes advantage of ICMP Time to Live Exceeded error message
- Not all devices will reply with ICMP Time Exceeded messages
- traceroute
3
Q
nslookup and dig - Lookup information from DNS servers
A
- nslookup
* dig
4
Q
ipconfig and ifconfig - View and manage IP configuration
A
- ipconfig - Windows TCP/IP config
- ipconfig /all - Display all IP configuration details
- ipconfig /release - Release the DHCP lease
- ipconfig /renew - Renew the DHCP lease
- ipconfig /flushdns - Flush the DNS resolver cache
- ifconfig - Linux interface configuration
5
Q
iptables - Packet filtering
A
- Linux iptables - filter packets in the kernel
- Simple data blocks - ignores state
- Usually placed on a device or server
6
Q
netstat - Display network statistics
A
- netstat -a - Show all active connections
- netstat -b - Show binaries
- netstat -n - Do not resolve names
7
Q
tcpdump
A
• Capture packets from the command line
• Available in most Unix/Linux operating systems
• Included with Mac OS X,
available for Windows (WinDump)
- Apply filters, view in real-time
- Written in standard pcap format
8
Q
pathping
A
- Combination of ping and traceroute
* pathping
9
Q
Nmap
A
- Network mapper - find network devices
- Port scan - Find devices and identify open ports
- Operating system scan
- Discover the OS without logging in to a device
• Service scan
• What service is available on a device?
Name, version, details
- Additional scripts
- Nmap Scripting Engine (NSE)
10
Q
route - View the device’s routing table
A
• route print - View the Windows routing table
11
Q
arp - Address resolution protocol information
A
• arp -a - View the local ARP table