Server Administration

  Home arrow Server Administration arrow Page 2 - Advanced IP Network Scanning Methods
SERVER ADMINISTRATION

Advanced IP Network Scanning Methods
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2008-06-19

    Table of Contents:
  • Advanced IP Network Scanning Methods
  • Passively Monitoring ICMP Responses
  • TCP Sequence and IP ID Incrementation
  • Network Scanning Countermeasures

  •  
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    advertisement

    Advanced IP Network Scanning Methods - Passively Monitoring ICMP Responses


    (Page 2 of 4 )

    As port scans and network probes are launched, you can passively monitor all traffic using Ethereal or tcpdump. Often, you will see ICMP responses from border routers and firewalls, including:

    1. ICMP TTL exceeded (type 11 code 0) messages, indicating a routing loop
    2. ICMP administratively prohibited (type 3 code 13) messages, indicating a firewall or router that rejects certain packets in line with an ACL

    These ICMP response messages give insight into the target network’s setup and configuration. It is also possible to determine IP alias relationships in terms of firewalls performing NAT and other functions to forward traffic to other hosts and devices (for example, if you are probing a public Internet address but see responses from a private address in your sniffer logs).

    IP Fingerprinting

    Various operating platforms have their own interpretations of IP-related standards when receiving certain types of packets and responding to them. By carefully analyzing responses from Internet-based hosts, attackers can often guess the operating platform of the target host via IP fingerprinting, usually by assessing and sampling the following IP responses:

    1. TCP FIN probes and bogus flag probes
    2. TCP sequence number sampling
    3. TCP WINDOW sampling
    4. TCP ACK value sampling
    5. ICMP message quoting
    6. ICMP ECHO integrity
    7. Responses to IP fragmentation
    8. IP TOS (type of service) sampling

    Originally, tools such as cheops and queso were developed specifically to guess target system operating platforms; however, the first publicly available tool to perform this was sirc3, which simply detected the difference between BSD-derived, Windows, and Linux TCP stacks.

    Today, Nmap performs a large number of IP fingerprinting tests to guess the remote operating platform. To enable IP fingerprinting when running Nmap, simply use the-Oflag in combination with a scan type flag such as-sS, as shown in Example 4-12.

    Example 4-12. Using Nmap to perform IP fingerprinting

    $ nmap -O -sS 192.168.0.65

    Starting Nmap 4.10 ( http://www.insecure.org/nmap/ ) at 2007-04-01 23:26 UTC
    Interesting ports on 192.168.0.65:
    (The 1585 ports scanned but not shown below are in state: closed)
    Port       State       Service
    22/tcp     open        ssh
    25/tcp     open        smtp
    53/tcp     open        domain
    80/tcp     open        http
    88/tcp     open        kerberos-sec
    110/tcp    open        pop-3
    135/tcp    open        loc-srv
    139/tcp    open        netbios-ssn
    143/tcp    open        imap2
    389/tcp    open        ldap
    445/tcp    open        microsoft-ds
    464/tcp    open        kpasswd5
    593/tcp    open        http-rpc-epmap 636/tcp    open        ldapssl
    1026/tcp   open        LSA-or-nterm
    1029/tcp   open        ms-lsa
    1352/tcp   open        lotusnotes
    3268/tcp   open        globalcatLDAP
    3269/tcp   open        globalcatLDAPssl
    3372/tcp   open        msdtc

    Remote OS guesses: Windows 2000 or WinXP

    More Server Administration Articles
    More By O'Reilly Media

    blog comments powered by Disqus

    SERVER ADMINISTRATION ARTICLES

    - Server Responses to Client Communication
    - Authentication in Client/Server Communication
    - Client/Server Communication
    - Understanding Awk in the UNIX Shell
    - Stream Editor in the UNIX Shell
    - Processes in the UNIX Shell
    - Migrating from Windows to Wine
    - Wine: Not Another Emulator
    - Preventive Measures to Block SSH Attacks
    - Monitoring Temperatures with Cacti
    - Cacti: RRDTool-based Graphing Solution
    - Network Magic 5.0 Review
    - Netfilter and Iptables Overview
    - Installing and Configuring Squid
    - Clickfree PC Backup Systems Compared


    © 2003-2012 by Developer Shed. All rights reserved. DS Cluster 11 - Follow our Sitemap