mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2025-08-09 13:19:37 +00:00
Update README.md
This commit is contained in:
11
README.md
11
README.md
@@ -16,7 +16,12 @@ The modifications that were needed to make this work:
|
||||
The resulting curl looks, from a network perspective, identical to Firefox (Firefox 95, Windows, non-incognito mode).
|
||||
|
||||
## Installation
|
||||
This repository contains a Dockerfile that will build `curl-nss`. The resulting image contains:
|
||||
This repository contains a Dockerfile that will build curl with all the necessary modifications. Build it like any Docker image:
|
||||
```
|
||||
docker build -t curl-impersonate .
|
||||
```
|
||||
|
||||
The resulting image contains:
|
||||
* `/build/out/curl-nss` - The curl binary that can impersonate Firefox. It is compiled statically against libcurl, nss, and libnghttp2 so that it won't conflict with any existing libraries on your system. You can use it from the container or copy it out. Tested to work on Ubuntu 20.04.
|
||||
* `/build/out/curl_ff95` - A wrapper script that launches `curl-nss` with the needed headers and ciphers to impersonate Firefox 95.
|
||||
|
||||
@@ -25,9 +30,9 @@ Copy them from the docker image using `docker cp` or use them in a multi-stage d
|
||||
In addition install libnss3: `sudo apt install libnss3`. Even though nss is statically compiled into curlnss, it is still necessary to install libnss3 because curl searches for `libnssckbi.so`, a file containing Mozilla's list of trusted root certificates. Alternatively, use `curl -k` to disable certificate verification.
|
||||
|
||||
## Usage
|
||||
It is recommended to use the wrapper script `curl_ff95` that adds all the correct headers and flags:
|
||||
It is recommended to use the wrapper script `curl_ff95` that adds all the correct headers and flags. Any flag that you add will be given to the real curl. For example:
|
||||
```
|
||||
curl_ff95 https://www.google.com
|
||||
curl_ff95 -sL https://www.google.com
|
||||
```
|
||||
|
||||
## Details
|
||||
|
Reference in New Issue
Block a user