Last active
August 14, 2020 17:44
-
-
Save s0meguy1/78abafb25f3b696fa1904f82509e1d0f to your computer and use it in GitHub Desktop.
Cron script for ffuf
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 | |
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