Qual é a diferença entre -sS e -sT no nmap?

1

Qual é a diferença entre -sS e -sT no nmap? Ambos os comandos fornecem a mesma saída (além de portas filtradas / portas fechadas).

    
por Xiobiq 27.12.2014 / 18:41

2 respostas

4

Qual é a diferença entre -sS e -sT no nmap?

SCAN TYPES

-sS TCP SYN scan:

This technique is often referred to as "half-open" scanning, because you don’t open a full TCP connection. You send a SYN packet, as if you are going to open a real connection and you wait for a response. A SYN|ACK indicates the port is listen- ing. A RST is indicative of a non-listener. If a SYN|ACK is received, a RST is immediately sent to tear down the connection (actually our OS kernel does this for us). The primary advantage to this scanning technique is that fewer sites will log it. Unfortunately you need root privileges to build these custom SYN packets. This is the default scan type for privileged users.

-sT TCP connect() scan:

This is the most basic form of TCP scanning. The connect() system call provided by your operating system is used to open a connection to every interesting port on the machine. If the port is listening, connect() will succeed, oth erwise the port isn’t reachable. One strong advantage to this technique is that you don’t need any special privileges. Any user on most UNIX boxes is free to use this call.

This sort of scan is easily detectable as target host logs will show a bunch of connection and error messages for the services which accept() the connection just to have it immediately shut- down. This is the default scan type for unprivileged users.

Fonte nmap

    
por 27.12.2014 / 18:58
0

Com -sS o TCP, o fluxo de pacotes é SYN - SYN / ACK - RST. O serviço que está escutando na porta não notará, já que o handshake nunca é concluído. Por outro lado, -sT executa um handshake apropriado (SYN-SYN / ACK-ACK) que estabelece uma conexão, de modo que o serviço perceba.

Assim, -sS é mais furtivo que -sT.

    
por 21.01.2015 / 23:40