Skip to content

Commit f6fa9e5

Browse files
authored
Add files via upload
Fix Google Search redirection issue
1 parent 6ba4cc5 commit f6fa9e5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

GooFuzz

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
url="https://www.google.com/search?q="
66
filter="&filter=0"
77
start="&start="
8-
userAgent="User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0"
9-
version="1.2.5"
8+
userAgent="Mozilla/5.0 (PLAYSTATION 3; 1.00)"
9+
version="1.2.6"
1010

1111
## Effects
1212
cBold="\e[1m"
@@ -109,7 +109,7 @@ function ctrl_c(){
109109

110110
## Google ban check
111111
function checkBan(){
112-
checkBanStatus=$(curl -s -H "$userAgent" "${url}site:${target}${filter}${start}${pageNum}")
112+
checkBanStatus=$(curl -s -A "$userAgent" "${url}site:${target}${filter}${start}${pageNum}")
113113

114114
if [[ ${checkBanStatus} =~ "The document has moved" ]]; then
115115
echo -e "\n${cBold}[!]${cNormal} Oops... Looks like Google has temporarily blocked your IP address."
@@ -234,16 +234,16 @@ function requestRun(){
234234
let pageNum=$page*10
235235

236236
if [ -n "$extension" ]; then
237-
request=$(curl -s -k -x "$proxy" -H "$userAgent" "${url}site:${target}+filetype:${extension}+${inFile}+${excludeTargets}${filter}${start}${pageNum}" | grep -Eo '(http|https)://[a-zA-Z0-9./?=_%:-]*' | grep -i "${target}" | grep -viE "google" | grep -i "${extension}" | urlDecode | sort -u)
237+
request=$(curl -s -k -x "$proxy" -A "$userAgent" "${url}site:${target}+filetype:${extension}+${inFile}+${excludeTargets}${filter}${start}${pageNum}" | grep -Eo '(http|https)://[a-zA-Z0-9./?=_%:-]*' | grep -i "${target}" | grep -viE "google" | grep -i "${extension}" | urlDecode | sort -u)
238238

239239
elif [ -n "$dictionary" ]; then
240-
request=$(curl -s -k -x "$proxy" -H "$userAgent" "${url}site:${target}+${excludeTargets}+inurl:\"${inUrl}\"${filter}${start}${pageNum}" | grep -Eo '(http|https)://[a-zA-Z0-9./?=_%:-]*' | grep -i "${target}/" | grep -viE "google" | urlDecode | sort -u)
240+
request=$(curl -s -k -x "$proxy" -A "$userAgent" "${url}site:${target}+${excludeTargets}+inurl:\"${inUrl}\"${filter}${start}${pageNum}" | grep -Eo '(http|https)://[a-zA-Z0-9./?=_%:-]*' | grep -i "${target}/" | grep -viE "google" | urlDecode | sort -u)
241241

242242
elif [ -n "$subdomain" ]; then
243-
request=$(curl -s -k -x "$proxy" -H "$userAgent" "${url}site:*.${target}+-site:www.${target}${filter}${start}${pageNum}" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*${target}" | grep -viE "google" | sort -u)
243+
request=$(curl -s -k -x "$proxy" -A "$userAgent" "${url}site:*.${target}+-site:www.${target}${filter}${start}${pageNum}" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*${target}" | grep -viE "google" | sort -u)
244244

245245
elif [ -n "$contents" ]; then
246-
request=$(curl -s -k -x "$proxy" -H "$userAgent" "${url}site:${target}+${inFile}+${excludeTargets}${filter}${start}${pageNum}" | grep -Eo '(http|https)://[a-zA-Z0-9./?=_%:-]*' | grep -i "${target}/" | grep -viE "google" | urlDecode | sort -u)
246+
request=$(curl -s -k -x "$proxy" -A "$userAgent" "${url}site:${target}+${inFile}+${excludeTargets}${filter}${start}${pageNum}" | grep -Eo '(http|https)://[a-zA-Z0-9./?=_%:-]*' | grep -i "${target}/" | grep -viE "google" | urlDecode | sort -u)
247247
fi
248248

249249
if [ -z "$request" ]; then

0 commit comments

Comments
 (0)