Skip to main content

No project description provided

Project description

FlareBypasser

FlareBypasser is a service to bypass Cloudflare and DDoS-GUARD protection, work to solve the challenge after October 20, 2024.

How it works

FlareBypasser starts a server, and it waits for user requests. When some request arrives, it uses zendriver to create a web browser (Chrome). It opens the URL with user parameters and waits until the Cloudflare challenge is solved (or timeout). The cookies are sent back to the user, and those cookies can be used to bypass Cloudflare using other HTTP clients. FlareBypasser don't use intrusive methods (DOM change, including shadow-root mode change) and don't use driver specific abilities (shadow-root navigation), it search challenge position by image processing.

Installation

Docker

It is recommended to install using a Docker container because the project depends on an external browser that is already included within the image.

We provide a docker-compose.yml configuration file. Clone this repository and execute docker compose up -d to start the container.

From github as pip package

Warning Installing as package only works for x64 architecture. For other architectures see Docker images.

  • Install Python >=3.9.
  • Install Chrome (all OS) or Chromium (just Linux, it doesn't work in Windows) web browser.
  • (Only in Unix) Install Xvfb package:
    sudo apt-get install xvfb on Debian based Unix.
    sudo yum install xorg-x11-server-Xvfb on Linux based Unix.
  • (Only in macOS) Install XQuartz package.
  • If you plan to use proxy with authorization : install gost.
  • Run pip install git+https://github.com/yoori/flare-bypasser.git.
  • Run flare_bypass_server command to start FlareBypasser.

From source code

Warning Installing from source code only works for x64 architecture. For other architectures see Docker images.

  • Install Python >=3.9.
  • Install Chrome (all OS) or Chromium (just Linux, it doesn't work in Windows) web browser.
  • (Only in Unix) Install Xvfb package:
    sudo apt-get install xvfb on Debian based Unix.
    sudo yum install xorg-x11-server-Xvfb on Linux based Unix.
  • (Only in macOS) Install XQuartz package.
  • If you plan to use proxy with authorization : install gost.
  • Clone this repository.
  • Run pip install . (from project root).
  • Run flare_bypass_server command to start FlareBypasser.

Usage

Example Bash request:

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

Example Python request:

import requests

url = "http://localhost:8080/v1"
headers = {"Content-Type": "application/json"}
data = {
    "cmd": "request.get",
    "url": "http://www.google.com/",
    "maxTimeout": 60000
}
response = requests.post(url, headers = headers, json = data)
print(response.text)

Commands

I recommend to use normalized rest API (path per command) - it more strict ... See /docs page after server start.

POST /v1 : cmd = request.get_cookies (FlareSolverr compatible API)

POST /get_cookies (see /docs)

Return cookies after challenge solve.

Example response:

{
  "status": "ok",
  "message": "Challenge solved!",
  "startTimestamp": 1729525047.104645,
  "endTimestamp": 1729525057.075713,
  "solution": {
    "status": "ok",
    "url": "https://torrentleech.pl/login.php?returnto=%2F",
    "cookies": [
      {"name":"cf_clearance","value":"OvR1ItQg.BERjqCP3x.jLvl0dwt3ryTkYB9ycvoYwPw-1729525048-1.2.1.1-XwfWOOILDSrghfgKcmTWMyaOzg0MX5uhIyRDb9j_E6fgSUCYWWgfgULsMV9OcAtJ74asicOvUgZdgD56k1ryPFh_nWxFdmc547LGkcokXUvtj5DxlIo5mqK1Wk7TgEOvj_Sz44_1Jzj41Qsfw57WIfu9wpDm6aTe0lMZ.8TP5maHGja5bgxtqRRW4gaNCQJpZiLmauclhZnIubERNGziatv_euMp_xXRZUjpOygGOzDyL7w3PeN0P2HTZTl8IIcGSOktE3ryRyyysWcoIlnLiBTcoGrjOM3Av6TrvYlDkqhrZwmsbKNrRpfjfaUDClz.w1_SbS0rMLLJ7isxqUdT92RhdWcPD6aANKOpoqdAu7povEGC8pghVMgo7vLu4CBm3nHlmgMSDQgOB6L2XiHMBuPJdMAq_wkfqcqITl1qfo8","port":null,"domain":".torrentleech.pl","path":"/","secure":true},
      {"name":"PHPSESSID","value":"uk4uefb5p8njsjcbpea1plpl45","port":null,"domain":"torrentleech.pl","path":"/","secure":false}
    ],
    "userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36",
    "response": null
  }
}

POST /v1 : cmd = request.get (FlareSolverr compatible API)

POST /get_page (see /docs)

Returns cookies and page content (in response field) after challenge solve.

POST /v1 : cmd = request.post (FlareSolverr compatible API)

POST /make_post (see /docs)

Send POST request (with using form). Need to pass postData parameter value.

Advanced Usage

In some cases you need to make some specific actions on page after challenge solving (click, fill form, ...). For this case you can implement own command over extension - see examples/custom_user_commands

Thanks

If you would like to thank me, put a link to the sites of my partners: https://a.okaif.io (18+)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flare_bypasser-0.1.48.tar.gz (41.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flare_bypasser-0.1.48-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file flare_bypasser-0.1.48.tar.gz.

File metadata

  • Download URL: flare_bypasser-0.1.48.tar.gz
  • Upload date:
  • Size: 41.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for flare_bypasser-0.1.48.tar.gz
Algorithm Hash digest
SHA256 5b4236f3417f4c8946d9aed3c53c12c0402de70a39b8831d71bd35c71d6ed8a9
MD5 4163102827b219857ef2c3fc7c012ac6
BLAKE2b-256 2bf0c064fc9262406298a9c94594f1b3733e5ba7eb15199397015978b7efd155

See more details on using hashes here.

File details

Details for the file flare_bypasser-0.1.48-py3-none-any.whl.

File metadata

File hashes

Hashes for flare_bypasser-0.1.48-py3-none-any.whl
Algorithm Hash digest
SHA256 946e37b2201ef0fa0f66de07e1d77f95b7193383b5d6a4494f4a95cdd5ae1bd0
MD5 837815c25b835c3ba8ae3c1aeae7f79d
BLAKE2b-256 ecff504262f078731ef4716790b41bb48c6519cb083777acde30b7fc25e4a161

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page