项目作者: KevCui

项目描述 :
:cookie: Fetch cookie generated by Cloudflare
高级语言: JavaScript
项目地址: git://github.com/KevCui/cf-cookie.git
创建时间: 2020-04-01T08:47:28Z
项目社区:https://github.com/KevCui/cf-cookie

开源协议:Do What The F*ck You Want To Public License

下载


cf-cookie

getCFcookie.js is a script to fetch cookie generated by Cloudflare. Once you got all cookies, you could simply filter the necessary value in cookie, for example cf_clearance, to bypass cf check.

Dependency

Installation

  1. npm i puppeteer-core puppeteer-extra puppeteer-extra-plugin-stealth commander

How to use

  1. Usage: ./getCFcookie.js -u <url> -a <user_agent> [-p <path>] [-s]
  2. Options:
  3. -u, --url <site_url> url to visit
  4. -a, --agent <user_agent> browser user agent
  5. -p, --path <binary_path> optional, path to chrome/chromium binary
  6. default "/usr/bin/chromium"
  7. -s, --show optional, show browser
  8. default not show
  9. -h, --help display help for command

Limitation

  • For normal Cloudflare DDoS prevention mechanism, it needs to wait for 5 seconds to get cookie.

  • If reCAPTCHA challenge is implemented on top, please use -s option to prompt browser and resolve reCAPTCHA challenge manually.


Buy Me A Coffee