NMap in 10 minutes.

Translation of the original in Spanish. Read it in: CatalàCastellano

Here we have a mini howto on how to run nmap.

#=====================================
-s --> Specify the type of scan

-sF : FIN scan (windows does not answer because of a bad implementation of the tcp protocol)
-sS : SYN scan

These two do not log in the SYSLOG because you do not send an ACK and the daemon does not activate.

-sT : ACK scan

-sU : Scans UDP ports, this one is very slow.
-O --> Host identification by fingerprint. To find out the OS of the Host.
-P0 --> So that it does not check with a ping if the machine is online. That is, it does not send a ping to check that the machine is online.
-v --> verbose
-d--> debug
-F --> Only scans "standard services" instead of scanning all the 65523 ports.
-f --> Sends the scan in fragmented packets, which makes it harder to detect it. Careful, windows machines can get stuck.
-Dhost1,host2,host3,... --> DECOYS. We use ips of other servers to hide ourselves. What we are doing is modifying the SOURCE ADRESS of the TCP header of the packets.

Example:
nmap -sS -O -P0 -v -d -F ip_host_a_scan

3 comments

Comments from the old blog, as they were written. Comments are closed.

  1. Oriol Rius

    En la següent URL s'explica els mètodes d'escaneig q implementa el
    NMAP:



    http://linuxfocus.org/Castellano/July2001/article170.shtml

  2. Oriol Rius

    Una forma q no he sabut veure d'scanejar hosts són els "idle hosts scan"
    q el nmap no he vist enlloc q els comenti. Amb la utlititat "www.hping.org">hping es pode fer aquest tipus d'scanejos q sota el meu
    punt d vista són els més segurs pq no et trobin però tb
    són els q tenen uns resultats més dubtosos, una descripció
    de en q consisteixen aquests atacs esta a:

    http://www.sans.org/infosecFAQ/audit/hping2.htm

  3. —