Skip to the content.

SYN scanning

The default scry binary uses TCP connect scans — zero privileges, no CGO, no libpcap. SYN scanning is opt-in behind the rawsock build tag.

Why it’s gated

Build

sudo apt install libpcap-dev            # Debian/Ubuntu
sudo dnf install libpcap-devel          # Fedora/RHEL

go build -tags rawsock -o bin/scry ./cmd/scry
sudo setcap cap_net_raw,cap_net_admin=eip bin/scry

Use

./bin/scry 10.0.0.0/24 -p top100 --syn
./bin/scry 10.0.0.1 -p- --syn --rate 20000

Flags

Flag Purpose
--syn Use raw SYN scanner (requires rawsock + CAP_NET_RAW).
--rate N Max SYN packets/sec; 0 = unlimited. Default 10000.
--adaptive Start at --rate/4 and scale up/down based on probe error rate.

Known limitations