Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blockkwork/ja3-spoof
http client for zig that spoofs tls/ssl ja3
https://github.com/blockkwork/ja3-spoof
curl ja3 spoof ssl tls zig zig-package
Last synced: 3 days ago
JSON representation
http client for zig that spoofs tls/ssl ja3
- Host: GitHub
- URL: https://github.com/blockkwork/ja3-spoof
- Owner: blockkwork
- Created: 2024-03-28T15:09:29.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-03-29T08:32:18.000Z (7 months ago)
- Last Synced: 2024-10-11T03:40:19.591Z (26 days ago)
- Topics: curl, ja3, spoof, ssl, tls, zig, zig-package
- Language: Zig
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## TTL/SSL JA3 Spoof
**A curl-based zig http client that can spoof [tls/ssl ja3](https://github.com/salesforce/ja3)**
### 📦 Installing
#### 1. Install ja3_spoof
```
zig fetch --save https://github.com/blockkwork/ja3-spoof/archive/refs/tags/[LATEST TAG].tar.gz
```
Example
```
zig fetch --save https://github.com/blockkwork/ja3-spoof/archive/refs/tags/0.0.1.tar.gz
```#### 2. Add ja3_spoof to build.zig
Add to build.zig
```zig
const ja3_spoof = b.dependency("ja3_spoof", .{}).module("ja3_spoof");
exe.root_module.addImport("ja3_spoof", ja3_spoof);
```### 🚀 Examples
Example in ./examples folderRun with command:
```
make EXAMPLE
``````zig
const client = ja3_spoof.init(.{
.allocator = allocator,
.custom_cookies = "Cookie",
.custom_user_agent = "ja3 spoof",
.custom_ciphers = "AES256-SHA",
}) catch |err| {
std.debug.print("error: {}\n", .{err});
return;
};const response = client.send("https://tools.scrapfly.io/api/tls") catch |err| {
std.debug.print("error: {}\n", .{err});
return;
};std.debug.print("status_code: {}\nresponse: {s}\n", .{ response.status_code, response.response });
```### 🛡️ Spoofing
To spoof ja3 you need to change .custom_ciphers to any other in Client Options