-
Notifications
You must be signed in to change notification settings - Fork 0
/
ffufez.sh
64 lines (55 loc) · 1.44 KB
/
ffufez.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
#ffufez - A simple script to automate ffuf
printf "~~ffufez~~\n"
printf "Input URL (URL/FUZZ): "
read url
clear
#variables
all_ext=".php,.html,.bak,.old,.txt,.zip,.aspx,.doc"
wordlist_1="/usr/share/seclists/Discovery/Web-Content/raft-small-directories.txt"
wordlist_2="usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt"
recursive_yes="-recursion -recursion-depth 2"
userpwd=$(pwd) > /dev/null
echo $url | cut -d'/' -f3 > filename.txt
filename=$(cat filename.txt)
printf "~~Wordlists~~\n"
printf "Select Worldlist 1-2: "
printf "\n1. raft-small-directories"
printf "\n2. directory-list-2.3-medium"
printf "\nCustom - Please type full file path\n"
printf ": "
read wordlist
if [ "$wordlist" == 1 ]; then
wordlistf="$wordlist_1"
elif [ "$wordlist" == 2 ]; then
wordlistf="$wordlist_2"
else
wordlistf="$wordlist"
fi
clear
printf "~~Extensions~~\n"
printf """Input manually in this format .txt,.html etc
Automatic -all to use common extensions\n"""
printf ": "
read extension
if [ "$extension" == "-all" ]; then
extensionf="$all_ext"
else
extensionf="$extension"
fi
clear
printf "~~Recursive~~\n"
printf "Yes/No"
printf ": "
read recursive
if [ "$recursive" == "yes" ] || [ "$recursive" == "Yes" ]; then
recursivef="$recursive_yes"
else
recursivef=""
fi
clear
printf " Scan will be saved here "$userpwd
sleep 2
##ffuf scan
ffuf -u $url -w $wordlistf $recursivef -t 50 -c -o "$userpwd"/$filename -of html -e $extensionf
rm filename.txt