Server Administration

  Home arrow Server Administration arrow Page 2 - Third Party IP Network Scanning Method...
SERVER ADMINISTRATION

Third Party 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-05

    Table of Contents:
  • Third Party IP Network Scanning Methods
  • IP ID header scanning
  • UDP Port Scanning
  • IDS Evasion and Filter Circumvention

  •  
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    advertisement

    Third Party IP Network Scanning Methods - IP ID header scanning


    (Page 2 of 4 )

    IP ID header scanning (also known as idle or dumb scanning) is an obscure scanning technique that involves abusing implementation peculiarities within the TCP/IP stack of most operating systems. Three hosts are involved:

    1. The host from which the scan is launched
    2. The target host that will be scanned
    3. A zombie or idle host, which is an Internet-based server that is queried with spoofed port scanning against the target host to identify open ports from the perspective of the zombie host

    IP ID header scanning is extraordinarily stealthy due to its blind nature. Determined attackers will often use this type of scan to map out IP-based trust relationships between machines, such as firewalls and VPN gateways.

    The listing returned by the scan shows open ports from the perspective of the zombie host, so you can try scanning a target using various zombies you think might be trusted (such as hosts at remote offices or DMZ machines). Figure 4-10 depicts the process undertaken during an IP ID header scan.


    Figure 4-10.  IPID header scanning and the parties involved

    Hping2 was originally used in a manual fashion to perform such low-level TCP scanning, which was time-consuming and tricky to undertake against an entire network of hosts. A white paper that fully discusses using the tool to perform IP ID header scanning by hand is available from http://www.kyuzz.org/antirez/papers/dumbscan.html.

    Nmap supports such IP ID header scanning with the option:

      -sI <zombie host[:probe port]>

    By default, Nmap uses port 80 to perform this scanning through the zombie host. Example 4-6 shows how Nmap is used to scan192.168.0.50through192.168.0.155.

    Example 4-6. Using Nmap to perform IP ID header scanning

    $ nmap -P0 -sI 192.168.0.155 192.168.0.50

    Starting Nmap 4.10 ( http://www.insecure.org/nmap/ ) at 2007-04-01 23:24 UTC
    Idlescan using zombie 192.168.0.155; Class: Incremental
    Interesting ports on (192.168.0.50):
    (The 1582 ports scanned but not shown below are in state: closed)
    Port       State       Service
    25/tcp     open        smtp
    53/tcp     open        domain
    80/tcp     open        http
    88/tcp     open        kerberos-sec
    135/tcp    open        loc-srv
    139/tcp    open        netbios-ssn
    389/tcp    open        ldap
    443/tcp    open        https
    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
    1033/tcp   open        netinfo
    3268/tcp   open        globalcatLDAP 3269/tcp   open        globalcatLDAPssl 3372/tcp   open        msdtc
    3389/tcp   open        ms-term-serv

    If Nmap is run without the-P0flag when performing third-party scanning, the source IP address of the attacker’s host performs ICMP and TCP pinging of the target hosts before starting to scan; this can appear in firewall and IDS audit logs of security-conscious organizations.

    Vscan is another Windows tool you can use to perform IP ID header scanning. As discussed earlier, the utility doesn’t require installation of WinPcap network drivers; instead it uses raw sockets within Winsock 2 (present in Windows itself). Vscan is available from http://examples.oreilly.com/networksa/tools/vscan.zip.

    Figure 4-11 shows Vscan in use, along with its options and functionality.

    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 8 - Follow our Sitemap