Created
February 20, 2019 11:35
-
-
Save enonethreezed/d4f24b63bac77aeff2de93ad3082ce56 to your computer and use it in GitHub Desktop.
Bash TCP port Fuzzer
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 | |
# SIMPLE FUZZER made for a bash only CTF | |
# To fuzz UDP port change /dev/tcp for /dev/udp | |
if [ $# -lt 3 ] | |
then | |
echo "Usage: bash fuzzer.bash IP PORT SIZE" | |
exit | |
fi | |
string=$(printf "%$3s") | |
buffer=$(echo ${string// /A}) | |
exec 3<>/dev/tcp/$1/$2 | |
echo $buffer 1>&3 | |
data="$(cat <&3)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment