forked from bytezcrew/wfdroid-termux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
loginfinder
51 lines (44 loc) · 1.71 KB
/
loginfinder
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
#!/data/data/com.termux/files/usr/bin/bash
clear
echo " ____ _ Web-Login ";
echo "| __ ) _ _ ___| |_ ___ _ __ ";
echo "| _ \| | | / __| __/ _ \ '__|";
echo "| |_) | |_| \__ \ || __/ | ";
echo "|____/ \__,_|___/\__\___|_| ";
echo "------------- wfdroid tools --";
echo -n "Enter URL : "; read url
echo "";
echo "Enter Wordlist File";
echo -n "default [dirlist.txt] : "; read listname
echo $listname total $(wc -l < /data/data/com.termux/files/usr/share/wfdroid/list/$listname) Wordlist
i=0
for item in $(cat /data/data/com.termux/files/usr/share/wfdroid/list/$listname);
do
i=$[i+1]
testurl=$(curl -s -o /dev/null -w '%{http_code}' $url'/'$item)
if [[ $testurl == 200 ]]
then
echo '['$i'] '$url'/'$item' = '$testurl
echo $url'/'$item >> /data/data/com.termux/files/usr/share/wfdroid/done/FOUND_LOGIN.txt
elif [[ $testurl == 301 ]]
then
echo '['$i'] '$url'/'$item' = '$testurl
echo $url'/'$item >> /data/data/com.termux/files/usr/share/wfdroid/done/FOUND_LOGIN.txt
elif [[ $testurl == 302 ]]
then
echo '['$i'] '$url'/'$item' = '$testurl
echo $url'/'$item >> /data/data/com.termux/files/usr/share/wfdroid/done/FOUND_LOGIN.txt
elif [[ $testurl == 401 ]]
then
echo '['$i'] '$url'/'$item' = '$testurl
echo $url'/'$item >> /data/data/com.termux/files/usr/share/wfdroid/done/FOUND_LOGIN.txt
elif [[ $testurl == 403 ]]
then
echo '['$i'] '$url'/'$item' = '$testurl
echo $url'/'$item >> /data/data/com.termux/files/usr/share/wfdroid/done/FOUND_LOGIN.txt
else
echo '['$i'] CHECKING...'
fi
done
echo "If done check in : ";
echo "/data/data/com.termux/files/usr/share/wfdroid/done/FOUND_LOGIN.txt";