Created
October 17, 2014 17:58
-
-
Save cmbaughman/1a05e317e0b9ed860265 to your computer and use it in GitHub Desktop.
The poorman's port scanner!
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
#!/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