Skip to content

Instantly share code, notes, and snippets.

@Trailingslashes
Created September 23, 2018 06:45
Show Gist options
  • Save Trailingslashes/c507d9897b8de95f094cb4cf4b42bb14 to your computer and use it in GitHub Desktop.
Save Trailingslashes/c507d9897b8de95f094cb4cf4b42bb14 to your computer and use it in GitHub Desktop.
Port knocking bash script
#!/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