A TCP Full-Open Scan Takes the Connection One Step Further
A TCP full-open scan tries to establish a normal connection to selected network ports, then closes it. It is also called a TCP connect scan. Its defining step is completing the opening exchange, rather than stopping after the first reply.
TCP, or Transmission Control Protocol, provides rules for communication between programs. A port is a numbered destination where a program can receive network traffic. A program listening on a port is prepared to receive connection attempts there.
A scanner tests those ports to discover where a service appears reachable. A completed connection shows that the opening exchange succeeded. The application's later work remains untested.
- Learn Nmap from the person who wrote it.
- Find out what is really running on your network.
- Go from basic scans to advanced techniques with one reference.
From request to completed connection
Nmap, a network-scanning tool, performs a connect scan by asking the computer's operating system to connect. The operating system handles the ordinary exchange, known as the three-way handshake.
SYN is short for synchronize, and ACK means acknowledgment. A successful attempt proceeds through three messages:
- SYN: The scanning computer asks to begin a connection and supplies starting information.
- SYN-ACK: The target acknowledges the request and supplies its own starting information.
- ACK: The scanning computer acknowledges the reply, completing the connection.
That last message is what makes the scan full-open. In a half-open, or SYN, scan, the scanning side can instead reset the attempt after receiving SYN-ACK, without sending the final acknowledgment that completes the handshake.
The Nmap connect-scan description follows the complete exchange. The scanner then terminates the connection. The exact closing messages can vary with the operating system and service, but the opening handshake has been completed.
Learn Nmap in Seven Minutes
A service may record that completed connection even if the scanner doesn't go on to request a web page or exchange other application data. Full-open doesn't mean the scanner has signed into an account or used the service's features.
The result describes what this test could reach
Nmap's port-state definitions distinguish several outcomes:
| Result | Meaning for the scan |
|---|---|
| Open | An application is accepting communication on the port. |
| Closed | No application is listening there. |
| Filtered | The probes cannot establish whether the port is open. |
Silence is therefore not automatically a closed result. A rule on the network path may prevent the scanner from learning what is behind it.
The scanning position matters as well. A service may be reachable from one network and blocked from another. A port scan reports observations along the tested path and at the tested time.
An open result can be entirely expected: a service needs to accept some communication to be useful. The result doesn't establish a software flaw. Likewise, a completed TCP connection doesn't prove that the application can process a valid request or that its permission rules are correct.
An administrator checking a new service can compare the reachable ports with those intended to be exposed. An unexpected open port calls for finding out which application is accepting the connection.
TCP's Three-Way Handshake: What Those Messages Do

TCP Half-Open Scans Learn From an Unfinished Handshake

Port Scan: Reading Open, Closed and Filtered

QUOTE:
"Amateurs hack systems, professionals hack people."
