Advertisement
R0lf_R1s1k0

Portknocker

Nov 11th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. #!/bin/bash
  2. ENM=$(which nmap)
  3. if [ -z $ENM ];then
  4.         printf "Requires nmap to be installed, aborting..\n"
  5. fi
  6. if [ ! $1 ];then
  7.     printf "No arguments given\n"
  8. else
  9.     IP=$1
  10.     shift
  11.     for PORT in "$@"
  12.     do 
  13.         nmap -Pn -p -n --max-retries 0 $PORT $HOST
  14.     done
  15. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement