openbullet / OpenBullet2

OpenBullet reinvented
https://docs.openbullet.dev/
MIT License
1.72k stars 462 forks source link

[REQUEST] Implement FlareSolverr #684

Open JReming85 opened 2 years ago

JReming85 commented 2 years ago

It may make more sense having one of the talented plugin makers add this as a plugin block but wanted to put the idea out there that it is possible to use this to test CF sites without needing puppeteer or selenium.

More than happy to share my endpoint with a dev if it helps

Posting cmd

curl -L -X POST 'http://localhost:8191/v1' \
-H 'Content-Type: application/json' \
--data-raw '{
  "cmd": "request.get",
  "url":"http://www.google.com/",
  "maxTimeout": 60000
}'

Result (example of discourse.openbullet.dev)

{
    "status": "ok",
    "message": "",
    "startTimestamp": 1649039704463,
    "endTimestamp": 1649039711182,
    "version": "v2.2.2",
    "solution": {
        "url": "https://discourse.openbullet.dev/",
        "status": 403,
        "headers": {
            "date": "Mon, 04 Apr 2022 02:44:44 GMT",
            "content-type": "text/html; charset=UTF-8",
            "permissions-policy": "accelerome...",
            "cache-control": "priv...",
            "expires": "Thu, 01 Jan 1970 00:00:01 GMT",
            "x-frame-options": "SAMEORIGIN",
            "expect-ct": "max-ag...",
            "report-to": "{\"endpoi...",
            "nel": "{\"suc...",
            "vary": "Accept-Encoding",
            "server": "cloudflare",
            "cf-ray": "...",
            "content-encoding": "br",
            "alt-svc": "h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400",
            "x-firefox-spdy": "h2"
        },
        "response": "<!DOCTYPE html><html class=\"desk...",
        "cookies": [{
                "name": "cf_clearance",
                "value": "...",
                "domain": ".openbullet.dev",
                "path": "/",
                "expires": 1680579370,
                "size": 72,
                "httpOnly": true,
                "secure": false,
                "session": false
            }
        ],
        "userAgent": "Mozilla/..."
    }
}
DJHooligan commented 2 years ago

https://discourse.openbullet.dev/t/bypass-cloudflare/5879/2?u=djhooligan