Skip to content

whaleyxbt/patchright-enhanced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

patchright-enhanced

stealth browser automation framework for penetration testing, scraping, and WAF bypass. Built on Patchright.

clean chrome sessions that pass Cloudflare, Kasada, DataDome, and other WAFs out of the box.

Setup for Linux

# Install dependencies
npm install

# Install Chrome for Patchright
npx patchright install chrome

# Copy env template and configure
cp .env.example .env

# Add your proxies
# Format: host:port:username:password (one per line)
nano proxies.txt

Configuration

All settings are in .env:

Variable Default Description
BROWSER_EXECUTABLE_PATH /usr/bin/google-chrome-stable Path to Chrome binary
BROWSER_TIMEZONE Europe/Berlin Browser timezone
MAX_PARALLEL 1 Number of parallel sessions
START_PAGE_URL https://google.com/ Initial page to open

Usage

npm run build
npm start

it opens a chrome session with the configured proxy and navigates to START_PAGE_URL. the session stays open until you close the browser window manually.

Anti-Detection

my small framework relies entirely on patchright's built-in stealth patches:

  • Runtime.enable leak patched (JS execution in isolated contexts)
  • --disable-blink-features=AutomationControlled flag added
  • --enable-automation flag removed
  • navigator.webdriver returns false natively
  • No fingerprint injection, no addInitScript, no Object.defineProperty overrides

About

Browser automation toolkit for QA, monitoring and internal workflows

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors