From useful scripts.
To dependable tools.
Advanced Bash. Build a TCP port scanner, make execution predictable, and bring security, systems and network skills together in a tested fleet assessment.
Recommended after Bash for Cyber Security, Sysadmins and Network Admins, or equivalent experience with functions, structured data, files and portable assertions. Every lesson remains open.
Build a TCP port scanner
Start with a reviewed endpoint plan, preserve distinct connection outcomes, and compare observations with expected services.
- Numeric IPv4 targets and an explicit allowlist
- Recorded open, refused, timed-out and error observations
- Injected probes and tests that catch faulty behavior
The download runs on Bash 3.2 or later. It previews by default; add --execute for real TCP connections within your authorised scope. Bash reports unsuccessful connections as connect_failed, without claiming every failure is a refused port.
Keep the evidence honest
Bound work, preserve unavailable systems and preview changes before applying them.
- Command arrays, bounded job batches and cleanup traps
- Retry budgets and plan-bound checkpoints
- OS/hardware observations and process identity
- Command options, redacted logs and useful reports
A little further, every lesson.
4 modules · 16 lessons · 1 capstoneBuild a TCP port scanner
Plan an explicit scope, replace a probe adapter and interpret observed exposure.
Make execution dependable
Preserve argument boundaries, collect jobs, bound retries and own cleanup.
Model systems and changes
Assess simulated fleet facts, process identities and remote job results.
Package tested tools
Build preview-first commands, redact logs, test adapters and validate checkpoints.
Assess fleet exposure
Your capstone project · about 65 minutes