Skip to content

Instantly share code, notes, and snippets.

@s0meguy1
Last active August 14, 2020 17:44
Show Gist options
  • Save s0meguy1/78abafb25f3b696fa1904f82509e1d0f to your computer and use it in GitHub Desktop.
Save s0meguy1/78abafb25f3b696fa1904f82509e1d0f to your computer and use it in GitHub Desktop.
Cron script for ffuf
#!/bin/bash
echo "starting..."
if [[ -f "/root/Workers/Dirs/stop.txt" ]]; then
# echo "STOP FOUND"
exit
fi
FILE="/root/Workers/Dirs/file.txt"
ROOT="/root/Workers/Dirs"
if [ -f "$FILE" ]; then
now=`date +"%Y-%m-%d.%H:%M:%S"`
echo "$now" > $ROOT/stop.txt
mkdir $ROOT/Output/$now
a=1 ; while read -r url ; do a=$((a+1)) ;/usr/bin/ffuf -u $url/FUZZ -w $ROOT/wordlist.txt -ac -mc all -t 50 -of html -o $ROOT/Output/$now/$a.txt ; done < $FILE
rm $FILE
rm /root/Workers/Dirs/stop.txt
else
exit
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment