Repository navigation
Feat/exposure explain - #17
Merged
Merged
Conversation
Any target containing "-" was sent to the IP range parser, so ordinary host names such as my-server.example.com or tcpcat-dedicated failed with "invalid range format" instead of being resolved. Only targets made of digits, dots and a dash (10.0.0.1-20, 10.0.0.1-10.0.0.20) are now treated as ranges; isHostname uses the same test so TLS SNI keeps the name.
`tcpcat inventory` (Linux, run on the host) lists every listening TCP socket from /proc with its owner: process, systemd unit, Docker container (docker-proxy attributed to the container publishing the port), Kubernetes pod, plus NodePort/LoadBalancer Services. Secret-looking arguments are redacted; nothing is sent on the network. `tcpcat explain <inventory.json> <scan.json>` joins it with a scan taken from outside and classifies each port: - EXPOSED: reachable and owned by a local listener, with the owner and a concrete fix (Redis, PostgreSQL, MySQL/MariaDB, MongoDB, SSH, Docker, Node/Python/Java apps, ...) - FORWARDED: reachable with no local listener for that address (DNAT, Docker/Kubernetes mapping, cloud load balancer); a matching Kubernetes Service takes precedence over a local listener on the same port, since external traffic is redirected before local delivery - SHIELDED: listens on every interface but only the firewall blocks it - LOCAL / UNTESTED --expect declares intentionally public ports; exit 1 when anything else is reachable, so it can gate CI. --target handles hosts behind 1:1 NAT.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Related issue
Checklist
gofmt -l .produces no outputgo vet ./...passesgo test -race ./...passesREADME.md/docs/for user-facing changesTest plan