Skip to content

Instantly share code, notes, and snippets.

@cmbaughman
Created October 17, 2014 17:58
Show Gist options
  • Save cmbaughman/1a05e317e0b9ed860265 to your computer and use it in GitHub Desktop.
Save cmbaughman/1a05e317e0b9ed860265 to your computer and use it in GitHub Desktop.
The poorman's port scanner!
#!/bin/bash
for port in {1..65536}; do
nc -zv 127.0.0.1 $port 2>&1
done | grep open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment