Skip to content

Commit

Permalink
Fix for FGDS.sh
Browse files Browse the repository at this point in the history
When using the script locally it would not find any result, after doing some tests it was due to it missing the CONSENT cookie.

Not sure if this is a permanent fix or the date of the cookie will need to be updated every day.
  • Loading branch information
Arnauec committed Nov 5, 2021
1 parent 114d7f4 commit 4e002b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FGDS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function Query {
result="";
for start in `seq 0 10 40`; ##### Last number - quantity of possible answers
do
query=$(echo; curl -sS -A $browser "https://www.google.com/search?q=$gsite%20$1&start=$start&client=firefox-b-e")
query=$(echo; curl -sS -b "CONSENT=YES+srp.gws-20211028-0-RC2.es+FX+330" -A $browser "https://www.google.com/search?q=$gsite%20$1&start=$start&client=firefox-b-e")

checkban=$(echo $query | grep -io "https://www.google.com/sorry/index")
if [ "$checkban" == "https://www.google.com/sorry/index" ]
Expand Down

0 comments on commit 4e002b9

Please sign in to comment.