Skip to content

Instantly share code, notes, and snippets.

@ajxchapman
Last active June 4, 2019 19:13
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 ajxchapman/e88adeed1b1bb1582ac46ed2ed0b1b97 to your computer and use it in GitHub Desktop.
Save ajxchapman/e88adeed1b1bb1582ac46ed2ed0b1b97 to your computer and use it in GitHub Desktop.
Wfuzz a host that keeps timing out
#!/bin/bash
WORDLIST="wordlist.txt"
OUTPUT="output.txt"
TARGET="https://example.com/FUZZ"
if [ ! -f _wordlist.txt ] || [ `wc -l _wordlist.txt | cut -f 1 -d " "` -eq 0 ]
then
sort -u $WORDLIST > _wordlist.txt
if [ -f $OUTPUT ]
then
echo "Output already exists on an initial run"
exit 1
fi
fi
./wfuzz -z file,_wordlist.txt -v -f _output.txt -u "$TARGET" -t4
cat _output.txt >> $OUTPUT
LINE=`grep "Processed Requests" _output.txt | grep -Eo "[0-9]+"`
tail +$LINE _wordlist.txt > __wordlist.txt
mv __wordlist.txt _wordlist.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment