Skip to content

A special build of curl for Windows that can impersonate Chrome and Safari

Notifications You must be signed in to change notification settings

ism/curl-impersonate-win

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

curl-impersonate-win

A special build of curl for Windows that can impersonate Chrome and Safari.

Original idea and patches from https://github.com/lwthiker/curl-impersonate

Version

Current version based on:

Environment

MSYS2 is needed to build binaries. Steps:

  1. Download and install MSYS2 (https://www.msys2.org/) into folder c:\msys64\
  2. Run MSYS2 from start menu and update packages with command: pacman -Suy
  3. Install additional packages: pacman -S patch mingw-w64-x86_64-make mingw-w64-x86_64-cmake mingw-w64-x86_64-nasm mingw-w64-x86_64-gcc mingw-w64-x86_64-go

Build

  1. Download and unpack curl and boringssl source code into according folders (see versions)
  2. Run scripts patch_curl.bat and patch_boringssl.bat to patch source code
  3. Run script build.bat to build binaries. Ready to use binaries are located within curl\bin folder.

In case if everything goes fine you should see this:

image

Run

Executables and scripts are located inside release archive. Scripts can impersonate different browser, for example:

curl_chrome104 --url https://www.google.com/search?q=cat --output google.html

curl_safari15_5 --url https://www.apple.com --output apple.html

About

A special build of curl for Windows that can impersonate Chrome and Safari

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Batchfile 100.0%