Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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