Reconnaissance and exfiltration
Half-open scan
Probing a TCP port with a SYN and hanging up after the reply, so no connection is ever made.
A scanner sends a SYN; an open port answers SYN/ACK, a closed one a reset. Instead of the ACK that would finish the
handshake, the scanner sends a reset, so the service behind the port never gets a connection and never logs one
(nmap -sS, which needs root to send its own packets). A connect scan (nmap -sT) makes the full connection
through the system, as any program does, and shows up in the service's log. Half-open is quieter, not invisible: the
packets still cross the wire.
Read next
- Port scanning Probing an address's ports to learn which services it exposes, and whether a firewall sits in the way.
- Three-way handshake SYN, SYN-ACK, ACK: how TCP opens a connection, each side agreeing on starting sequence numbers.
- TCP reset A TCP packet that aborts a connection; the answer to a SYN for a port with no listener.
- Packet crafting Building one packet by hand — choosing every flag and field — to probe a target a single reply at a time.