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
List the 5 types of Windows event logs
Application logs security logs system logs setup logs forward events logs
which windows event logs will capture resource and rights usage and files being opened, created or deleted?
security logs
which windows event log captures login events?
security logs
which windows event logs captures events collected from remote computers?
forwarded event logs
Why are windows event logs not routinely obtained during reconnaissance?
because they’re stored in a secure location requiring admin system access to get at
what activity can obtain the SOA record, the wait time between name changes, minimum TTL for the domain and primary name servers?
DNS zone transfers
What linux command can get the email servers of a host as well as its IPv4 and 6 information?
host
Which command displays list of active connections and the associated executables? What doesn’t it show?
netstat
doesn’t show UDP connections as they are ‘connectionless’