Created
September 23, 2018 06:45
-
-
Save Trailingslashes/c507d9897b8de95f094cb4cf4b42bb14 to your computer and use it in GitHub Desktop.
Port knocking bash script
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 | |
HOST=$1 | |
shift | |
for ARG in "$@" | |
do | |
nmap -Pn --host-timeout 100 --max-retries 0 -p $ARG $HOST | |
done | |
# ./knock.sh 10.10.10.10 4444 5555 6666 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment