Skip to content

Instantly share code, notes, and snippets.

@Mah1ndra
Last active February 8, 2020 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mah1ndra/3566d8719f8325ede541743674fc3bfe to your computer and use it in GitHub Desktop.
Save Mah1ndra/3566d8719f8325ede541743674fc3bfe to your computer and use it in GitHub Desktop.
#!/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