Skip to content

Conversation

@john-peterson
Copy link

@john-peterson john-peterson commented May 5, 2025

UPDATE build is fixed now was just massive confusion with so many
different libs. and files. please merge this into curl

$P/glibc/opt/curl-impersonate/bin/curl "$@" --cacert $G/etc/ssl/certs/ca-certificates.crt

managed to get cloud flare cookie with this tool but
page still won't load it essentially insanity they HAVE to provide a
text based challenge this is complete utter insanity

https://github.com/LOBYXLYX/Cloudflare-Bypass


today stack exchange effectively started blocking all terminal browsers by
enforcing cf_clearance cookie. the mobile browser has no interactive
verification but termux Firefox force interaction

this has to be fixed it
is impossible to have stack exchange off line inside the terminal it
takes ages to open links outside the terminal. usually the cookie only
last a few minutes and then you need to open Firefox again absolute
insanity. I get sick outside the terminal I can't stand it my life is in
text only

stack exchange has no official text interface and this effectively broke
socli and all other I work on

url=https://stackoverflow.com/questions/57568571/android-studio-javax-net-ssl-sslhandshakeexception-unacceptable-certificate

links -dump $url|vim - -R
Enable JavaScript and cookies to continue

chromium-browser --headless --disable-gpu --dump-dom $url | lynx -stdin -dump|vim - -R
Verifying you are human. This may take a few seconds.
Performance & security by [2]Cloudflare

firefox $url <- important CLOSE Firefox otherwise no cookie
echo "select * from moz_cookies"|sqlite3 ~/.mozilla/firefox/*.default-default/cookies.sqlite |ack cf_clear|  grep -o -P '(?<=cf_clearance\|).*(?=\|.stack)'

even curl impersonate can't get past the new blockade any ideas have you
used any automatic cf_clearance collector

from curl_cffi import requests
url="https://stackoverflow.com/questions/57568571"
r = requests.get(url, impersonate=browser)
print(r.content)

Enable JavaScript and cookies to continue
https://github.com/lwthiker/curl-impersonate/releases/download/v0.6.1/curl-impersonate-v0.6.1.x86_64-linux-gnu.tar.gz
curl_chrome116 $url -s  | lynx -stdin -dump | vim - -R
Enable JavaScript and cookies to continue

while I think about this I tried to build it but it failed. I have to
ask them if there is any solution for stack exchange they have figured
out without leaving the terminal

his build was broken

this did not work in termux

https://github.com/lwthiker/curl-impersonate/releases/download/v0.6.1/curl-impersonate-v0.6.1.arm-linux-gnueabihf.tar.gz
glibc-runner -c curl-impersonate-chrome
ld-linux-armhf.so.3 => not found

Insane script failed

the script can't build brotli.

make chrome-build
file INSTALL cannot find
  "/home/a/.termux-build/curl-impersonate-glibc/src/brotli-1.0.9/out/libbrotlidec.so.1.0.9":

@john-peterson john-peterson force-pushed the imp branch 2 times, most recently from ff0a0ba to de01498 Compare May 6, 2025 06:15
@john-peterson john-peterson changed the title curl impersonate (broken build ) HELP needed stack exchange is broken curl impersonate FIXED trying to restore stack exchange (still broken ) May 6, 2025
UPDATE build is fixed now was just massive confusion with so many
different libs. and files. please merge this into curl

~~~
$P/glibc/opt/curl-impersonate/bin/curl "$@" --cacert $G/etc/ssl/certs/ca-certificates.crt
~~~

managed to get cloud flare cookie with this tool but
page still won't load it essentially insanity they HAVE to provide a
text based challenge this is complete utter insanity

https://github.com/LOBYXLYX/Cloudflare-Bypass

---

today stack exchange effectively started blocking all terminal browsers  by
enforcing cf_clearance cookie. the mobile browser has no interactive
verification but termux Firefox force interaction

 this has to be fixed it
is impossible to have stack exchange off line inside the terminal it
takes ages to open links outside the terminal. usually the cookie only
last a few minutes and then you need to open Firefox again absolute
insanity. I get sick outside the terminal I can't stand it my life is in
text only

stack exchange has no official text interface and this effectively broke
socli and all other I work on

~~~sh
url=https://stackoverflow.com/questions/57568571/android-studio-javax-net-ssl-sslhandshakeexception-unacceptable-certificate

links -dump $url|vim - -R
Enable JavaScript and cookies to continue

chromium-browser --headless --disable-gpu --dump-dom $url | lynx -stdin -dump|vim - -R
Verifying you are human. This may take a few seconds.
Performance & security by [2]Cloudflare

firefox $url <- important CLOSE Firefox otherwise no cookie
echo "select * from moz_cookies"|sqlite3 ~/.mozilla/firefox/*.default-default/cookies.sqlite |ack cf_clear|  grep -o -P '(?<=cf_clearance\|).*(?=\|.stack)'
~~~

even curl impersonate can't get past the new blockade any ideas have you
used any automatic cf_clearance collector

~~~
from curl_cffi import requests
url="https://stackoverflow.com/questions/57568571"
r = requests.get(url, impersonate=browser)
print(r.content)

Enable JavaScript and cookies to continue
~~~

~~~
https://github.com/lwthiker/curl-impersonate/releases/download/v0.6.1/curl-impersonate-v0.6.1.x86_64-linux-gnu.tar.gz
curl_chrome116 $url -s  | lynx -stdin -dump | vim - -R
Enable JavaScript and cookies to continue
~~~

while I think about this I tried to build it but it failed. I have to
ask them if there is any solution for stack exchange they have figured
out without leaving the terminal

 # his build was broken

this did not work in termux

~~~
https://github.com/lwthiker/curl-impersonate/releases/download/v0.6.1/curl-impersonate-v0.6.1.arm-linux-gnueabihf.tar.gz
glibc-runner -c curl-impersonate-chrome
ld-linux-armhf.so.3 => not found
~~~

 # Insane script failed

the script can't build brotli.

~~~
make chrome-build
file INSTALL cannot find
  "/home/a/.termux-build/curl-impersonate-glibc/src/brotli-1.0.9/out/libbrotlidec.so.1.0.9":
~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant