Commands - Chapter 3, Reconnaissance and Intelligence Flashcards
Mapping, Enumeration and Passive Footprinting commands
Which nmap commands grabs banners? What can you identify from this?
nmap -sV
services and their versions
What hping parameter is used to set the port to which t send the ping? Set it to port 54
hping -p 54 x.x.x.x
describe what the following hping command will do
hping -p 80 -S 192.168.1.100
this will send TCP Syn packets to port 80 on the destination IP
what command could help you to find out the OS of IP 192.168.1.1?
nmap -O 192.168.1.1
Scan 192.168.1.1 for non-TCP service
nmap -sU 192.168.1.1 (U for UDP)
carry out a Connect scan on 192.168.1.1
nmap -sT 192.168.1.1
you want a quick and unobtrusive method to scan IP 192.168.1.1, which command do you use?
nmap - sS 192.168.1.1
what will the “-o” netstat command switch get you?
process ID’s for each connection.
you want to get the ethernet statistics on how many bytes and packets have been sent and received, which netstat switch will give you this?
netstat -e
get routing table information from the netstat command
netstat -nr
get routing table information from the netstat command
netstat -nr
type out the linux command that will get you the DHCP log
journalctl
journalctl gives you what?
the linux dhcp logs
most configuration files are stored in which directory in linux?
/etc
most log files are stored in which directory?
/var/log