CH 02
CH 02
Scanning
fping
fping is a fast PING scanner, because it doesn't wait for a response from one system before moving on to the next one
Available for Linux and Windows
Link Ch 2b for Windows version (seems slower)
SuperScan
Does PING scanning, using several types of ICMP packets Also does port scanning, banner grabbing, whois, and enumeration
Superscan Enumeration
To run SuperScan, you need Win 2000 or Win XP before SP 2 Great tool
Link Ch 2c
icmpenum
Unix utility that sends the traditional ICMP ECHO packets as well as
ICMP TIME STAMP REQUEST and ICMP INFO requests
Similar to SuperScan
ICMP Blocking
ICMP is often blocked these days
Blocked by default in Win XP SP2, Win 2003 SP 1, and Vista
Nmap
TCP Ping Scan uses TCP ACK packets instead of ICMP Zenmap GUI runs on Vista (as Administrator) very pretty Use PT 80 to get through many firewalls
Link Ch 2i
AUTH (113)
IDENT service determines remote user of a network connection (link Ch 2g)
For Windows
Snort could be used (link Ch 2z9)
Blocking ICMP
Routers may require some ICMP packets, but not all types Safest procedure would be to allow ICMP only from your ISP, and only to public servers on your DMZ
ICMP Queries
icmpquery uses ICMP type 13 (TIMESTAMP) to find the system time, which shows its timezone ICMP type 17 (ADDRESS MASK REQUEST) shows the subnet mask
Link Ch 2n
TCP Header
WINDOW indicates the amount of data that may be sent before an acknowledgement is required
RPC Scan
SunRPC (Sun Remote Procedure Call) is a common UNIX protocol used to implement many services including NFS (Network File System) The RPC scan works on Unix systems, including Solaris Enumerates RPC services, which are rich in exploitable security holes
See link Ch 2y
Nmap
Interesting options
-f -D -I
-b
fragments packets Launches decoy scans for concealment IDENT Scan finds owners of processes (on Unix systems) FTP Bounce (see next slide)
FTP Bounce
Attacker
1. Transfer attack code to FTP server 2. Request file transfer to target
Target
FTP Server
FTP Bounce
Old FTP servers allowed a request for a file transfer to a third IP address This could be used to send email or other data to the third computer from the FTP server
siphon was the first tool to do this, it's out of date p0f is a newer one (link Ch 2z6)
p0f on Vista
Run p0f in a Command Prompt Window Open a Web page It fingerprints any OS it can see on the LAN