-
Notifications
You must be signed in to change notification settings - Fork 4
/
loli
96 lines (94 loc) · 3.09 KB
/
loli
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#!/bin/bash
#gua ganteng njink
token(){
GetToken=$(curl -s --compressed "https://cse.google.com/cse.js?cx=partner-pub-2698861478625135:3033704849" -L -D -)
token=$(echo $GetToken | grep -Po "(?<=\"cse_token\": \")[^\"]*")
}
luruh(){
token
key="partner-pub-2698861478625135:3033704849"
luruh=$(curl -s --compressed 'https://cse.google.com/cse/element/v1?num=10&hl=en&cx='''"${key}"'''&safe=off&cse_tok='''"${token}"'''&start='''"${2}"'''&q='''"${1}"'''&callback=x' -L -D - | grep -Po '(?<="unescapedUrl": ")[^"]*')
}
mluruh(){
token
key="partner-pub-2698861478625135:3033704849"
luruh=$(curl -s --compressed 'https://cse.google.com/cse/element/v1?num=10&hl=en&cx='''"${key}"'''&safe=off&cse_tok='''"${token}"'''&start='''"${2}"'''&q='''"${1}"'''&callback=x' -L -D - | grep -Po '(?<="unescapedUrl": ")[^"]*')
}
cat << "EOF"
==========================================================
=======================LoliDOcker==========================
=Author : LoliC0d3 Telegram : t.me/LoliC0d3 =
=Team : PhobiaXploit Facebook : Facebook.com/LoliC0d3 =
==========================================================
EOF
echo ""
echo "Choise Your Number: "
echo "1. Single Dorking"
echo "2. Multi Dorking"
read -p "[+]Root@LoliDocker:~# " choise;
if [[ -z $choise ]]; then
printf "\nNo Input. Exit now\n"
exit 1
fi
if [[ $choise -eq 1 ]]; then
read -p "URL Only: (y/n)? " filter;
read -p "Dork: " dork;
dorke=''"$dork"''
eDork=$(echo $dork | sed -f urlencode)
num=1;
for pages in {0..1000..10}; do
printf "\n====== Grabbing from Page $num ======\n"
luruh $eDork $pages
if [[ $luruh == '' ]]; then
printf "Not Links Found\n"
break;
else
if [[ $filter == 'y' || $filter == 'Y' ]]; then
Url=$(echo $luruh | grep -Po 'http.?://([[:alnum:]_.-]+?\.){1,5}[[:alpha:].]{2,10}/')
echo ''"$Url"''
echo "$Url" >> result.tmp
else
echo ''"$luruh"''
echo "$luruh" >> result.tmp
fi
fi
((num++))
done
elif [[ $choise -eq 2 ]]; then
read -p "URL Only: (y/n)? " filter;
read -p "Dork Files: " dork_file;
if [[ ! -f $dork_file ]]; then
echo "[404] File $dork_fileor not found. Please check your dork file name."
exit 1;
fi
IFS=$'\r\n' GLOBIGNORE='*' command eval 'dorke=($(cat $dork_file))'
for (( i = 0; i <"${#dorke[@]}"; i++ )); do
baka=$(echo ${dorke[$i]} | sed -f urlencode)
printf "\n[=] Searching Dork: ${dorke[$i]}\n"
num=1;
for pages in {0..1000..10}; do
printf "\n====== Grabbing from Page $num ======\n"
mluruh $baka $pages
if [[ $luruh == '' ]]; then
printf "Not Links Found\n"
break;
else
if [[ $filter == 'y' || $filter == 'Y' ]]; then
Url=$(echo $luruh | grep -Po 'http.?://([[:alnum:]_.-]+?\.){1,5}[[:alpha:].]{2,10}/')
echo ''"$Url"''
echo "$Url" >> result.tmp
else
echo ''"$luruh"''
echo "$luruh" >> result.tmp
fi
fi
((num++))
done
done
else
printf "\nBad Input. Exit now\n"
fi
printf "\n\n[!] Filtering Result... \n"
time=$(date | sed 's/ /-/g')
cat result.tmp | sort -u | uniq >> Result-${time}.txt
printf "[+] All : $(cat Result-${time}.txt | wc -l) Sites\n"