Solves PerimeterX challenge and grabs cookies
Project description
PerimeterX Solver
This Python module allows you to generate and solve PerimeterX challenges. It utilizes tls_client to spoof JA3 fingerprint and reversed fingerprinting techniques to obtain a HQ cookie from the PerimeterX collector.
Installation
You can install the module from PyPI using pip:
pip install perimeterx
Quick Start
A quick example of how to use the PX class to solve a PerimeterX challenge:
from perimeterx import PX
if __name__ == "__main__":
token = PX(
app_id="PX943r4Fb8",
ft=330,
collector_uri="https://collector-px943r4fb8.px-cloud.net/api/v2/collector",
host="https://arcteryx.com/",
sid="0396fb2e-5f0f-11ef-ae7c-f857124857d2󠄱󠄷󠄲󠄴󠄱󠄷󠄰󠄳󠄷󠄹󠄹󠄵󠄶",
vid="0bc41189-5ec3-11ef-ba8c-eaab7bc900b7",
cts="0c3f5439-5ec3-11ef-83dc-88da46c325fa",
proxy="http://user:pass@ip:port"
).solve()
print(f"Solved PX: {token}")
Parameters
app_id(str): The website's PerimeterX application ID.ft(int): The website's PerimeterX application ft.collector_uri(str): The URL of the PerimeterX collector.host(str): The host URL for the target website.sid(str): PerimeterX Session ID.vid(str): PerimeterX Visitor ID.cts(str): PerimeterX client token string.pxhd(str, optional): Optional header for stricter sites.proxy(str, optional): Proxy settings in the formathttp://user:pass@ip:port.
Dependencies
tls_client: For handling HTTP sessions with JA3 spoofing.fingerprint: For generating fingerprints.mods: For payload encryption and PC generation.hashlib: For hashing operations.wgl: For generating real WebGL fingerprints.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgments
This module is built on the foundation of the PerimeterX service and its associated technologies. Thank you to the developers and maintainers of the libraries used in this project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file perimeterx-1.1.2.tar.gz.
File metadata
- Download URL: perimeterx-1.1.2.tar.gz
- Upload date:
- Size: 23.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b6e655e8c0421752ae19fd7097f09916fa32e521f4553b45ae42ea0273c40c0
|
|
| MD5 |
298099a1c9755f7b34b3f3d613e61e8a
|
|
| BLAKE2b-256 |
03a3d12cbeb6b67610749b1bf9067a4adfb8f9cd8a55e7628d399f4bca55513d
|
File details
Details for the file perimeterx-1.1.2-py3-none-any.whl.
File metadata
- Download URL: perimeterx-1.1.2-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
822f97b695b06cf65a43efcbac823552468584f6ab7c5c92436fe231baee6a0b
|
|
| MD5 |
4884e6851fc87350f9f5b3420664bdb8
|
|
| BLAKE2b-256 |
15e6b3df3d344927bcd2e080ae6ab59566373394bd08ba1382c272d878424aae
|