Last active
February 8, 2020 17:55
-
-
Save Mah1ndra/3566d8719f8325ede541743674fc3bfe to your computer and use it in GitHub Desktop.
This file contains 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 | |
ip=$1; | |
echo "scaning: $ip"; | |
ports=$(nmap -T4 --min-rate=1000 -p- $ip| grep ^[0-9]|cut -d '/' -f 1| tr '\n' ',' | sed s/,$//); | |
echo "open ports: $ports" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment