Last active
January 12, 2019 12:26
-
-
Save dapperfu/fff411f0a0d54d3dec4b4a649b07a452 to your computer and use it in GitHub Desktop.
What has a server on my network.
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
#!/usr/bin/env bash | |
for PORT in 80 8000 8888 | |
do | |
nmap -p ${PORT} -oG - 10.0.0.0/22 | grep open | cut -f2 -d" " | xargs -n1 -I{} firefox http://{}:${PORT}+ | |
done | |
nmap -oG - 10.0.0.0/22 -p 554 | grep open | |
nmap -oG - 10.0.0.0/22 -p 22,23 | grep open |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment