rust_reverse 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ [package]
2
+ name = "rust_reverse"
3
+ version = "0.1.0"
4
+ edition = "2024"
5
+ description = "Universal Pure-Rust JSVMP Bytecode Deobfuscator, Symbolic VM Solver & Dynamic Browser Fingerprint Template Pool"
6
+ license = "MIT"
7
+
8
+ [lib]
9
+ name = "rust_reverse"
10
+ crate-type = ["cdylib", "rlib"]
11
+
12
+ [[bin]]
13
+ name = "rust_reverse_cli"
14
+ path = "src/main.rs"
15
+
16
+ [dependencies]
17
+ base64 = "0.22.1"
18
+ rustc-hash = "2.1.1"
19
+ serde = { version = "1.0.228", features = ["derive"] }
20
+ serde_json = "1.0.145"
@@ -0,0 +1,47 @@
1
+ Metadata-Version: 2.1
2
+ Name: rust_reverse
3
+ Version: 0.1.0
4
+ Summary: Universal Pure-Rust JSVMP Bytecode Deobfuscator, Symbolic VM Solver & Dynamic Browser Fingerprint Template Pool
5
+ Author: zt1901
6
+ License: MIT
7
+ Classifier: Programming Language :: Rust
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.14
10
+ Classifier: Operating System :: Microsoft :: Windows :: Windows 10
11
+ Classifier: Operating System :: Microsoft :: Windows :: Windows 11
12
+ Requires-Python: >=3.10
13
+ Description-Content-Type: text/markdown
14
+
15
+ # rust_reverse
16
+
17
+ **Universal Pure-Rust JSVMP Bytecode Deobfuscator, Symbolic VM Solver & Dynamic Browser Fingerprint Template Pool**
18
+
19
+ `rust_reverse` is a zero-browser, zero-Node.js native Rust CPython extension (`.pyd` / `.so`) for deobfuscating JavaScript Virtual Machine Protection (JSVMP), solving multi-stage self-modifying bytecode challenges, and managing a dynamic pool of JSON browser fingerprint templates.
20
+
21
+ ## Key Features
22
+
23
+ - **100% Pure Rust Native Extension (GIL Released)**: Zero Node.js, zero V8, zero browser processes (~2.5ms - 5.0ms per challenge).
24
+ - **Dynamic JSON Fingerprint Template Pool (`profiles/*.json`)**:
25
+ - Built-in 465KB Chrome 157 (`SecureContext`) WebIDL / DOM / CSSOM truth table (`1,233` `window` globals, `965` WebIDL interface prototype property arrays, `759` CSSOM properties) + `7` built-in multi-hardware presets;
26
+ - Dynamically load or hot-register lightweight (`~1 KB`) `.json` fingerprint templates (`list_profiles`, `load_profile`, `register_profile`) or rotate randomly (`"random"`).
27
+ - **Multi-Target Bytecode VM Solvers & Decompilers**:
28
+ - `solve` / `solve_sg_ss` / `disasm` / `decrypt_sg_ss`: 5-phase static & concolic solver for Speck-64/128 CFB + Bob Jenkins 96-bit `lookup2` bytecode VMs;
29
+ - `decompile_sentinel_dx` / `generate_sentinel_p` / `solve_sentinel_pow` / `decode_sentinel_token`: Multi-stage self-modifying register-map bytecode decompiler, emulator & FNV-1a/MurmurHash3 PoW solver;
30
+ - `deobfuscate` / `simplify_mba` / `clean_js` / `deobfuscate_cf_jsd`: Algebraic MBA expression simplifier, ToInt32 bitwise float truncator, and rotating-XOR string decryptor.
31
+
32
+ ## Quick Start
33
+
34
+ ```python
35
+ import rust_reverse
36
+
37
+ # List all available fingerprint templates (built-in + ./profiles/*.json)
38
+ for p in rust_reverse.list_profiles("./profiles"):
39
+ print(p["profile_name"], p["screen_resolution"], p["webgl_renderer"])
40
+
41
+ # Load a specific template or "random"
42
+ prof = rust_reverse.load_profile("random")
43
+
44
+ # Simplify Mixed Boolean-Arithmetic (MBA) expressions
45
+ print(rust_reverse.simplify_mba("-~(W&4)-~(W|4)+2*(~W&4)+2*(W|-5)", "W")) # -> "W + 4"
46
+ ```
47
+
@@ -0,0 +1,32 @@
1
+ # rust_reverse
2
+
3
+ **Universal Pure-Rust JSVMP Bytecode Deobfuscator, Symbolic VM Solver & Dynamic Browser Fingerprint Template Pool**
4
+
5
+ `rust_reverse` is a zero-browser, zero-Node.js native Rust CPython extension (`.pyd` / `.so`) for deobfuscating JavaScript Virtual Machine Protection (JSVMP), solving multi-stage self-modifying bytecode challenges, and managing a dynamic pool of JSON browser fingerprint templates.
6
+
7
+ ## Key Features
8
+
9
+ - **100% Pure Rust Native Extension (GIL Released)**: Zero Node.js, zero V8, zero browser processes (~2.5ms - 5.0ms per challenge).
10
+ - **Dynamic JSON Fingerprint Template Pool (`profiles/*.json`)**:
11
+ - Built-in 465KB Chrome 157 (`SecureContext`) WebIDL / DOM / CSSOM truth table (`1,233` `window` globals, `965` WebIDL interface prototype property arrays, `759` CSSOM properties) + `7` built-in multi-hardware presets;
12
+ - Dynamically load or hot-register lightweight (`~1 KB`) `.json` fingerprint templates (`list_profiles`, `load_profile`, `register_profile`) or rotate randomly (`"random"`).
13
+ - **Multi-Target Bytecode VM Solvers & Decompilers**:
14
+ - `solve` / `solve_sg_ss` / `disasm` / `decrypt_sg_ss`: 5-phase static & concolic solver for Speck-64/128 CFB + Bob Jenkins 96-bit `lookup2` bytecode VMs;
15
+ - `decompile_sentinel_dx` / `generate_sentinel_p` / `solve_sentinel_pow` / `decode_sentinel_token`: Multi-stage self-modifying register-map bytecode decompiler, emulator & FNV-1a/MurmurHash3 PoW solver;
16
+ - `deobfuscate` / `simplify_mba` / `clean_js` / `deobfuscate_cf_jsd`: Algebraic MBA expression simplifier, ToInt32 bitwise float truncator, and rotating-XOR string decryptor.
17
+
18
+ ## Quick Start
19
+
20
+ ```python
21
+ import rust_reverse
22
+
23
+ # List all available fingerprint templates (built-in + ./profiles/*.json)
24
+ for p in rust_reverse.list_profiles("./profiles"):
25
+ print(p["profile_name"], p["screen_resolution"], p["webgl_renderer"])
26
+
27
+ # Load a specific template or "random"
28
+ prof = rust_reverse.load_profile("random")
29
+
30
+ # Simplify Mixed Boolean-Arithmetic (MBA) expressions
31
+ print(rust_reverse.simplify_mba("-~(W&4)-~(W|4)+2*(~W&4)+2*(W|-5)", "W")) # -> "W + 4"
32
+ ```
@@ -0,0 +1,19 @@
1
+ use std::path::PathBuf;
2
+ use std::process::Command;
3
+
4
+ fn main() {
5
+ let mut lib_dir = PathBuf::from(r"C:\Program Files\Python314\libs");
6
+ if !lib_dir.is_dir() {
7
+ if let Ok(out) = Command::new("python")
8
+ .args(["-c", "import sys, os; print(os.path.join(sys.base_prefix, 'libs'))"])
9
+ .output()
10
+ {
11
+ let s = String::from_utf8_lossy(&out.stdout).trim().to_string();
12
+ if !s.is_empty() {
13
+ lib_dir = PathBuf::from(s);
14
+ }
15
+ }
16
+ }
17
+ println!("cargo:rustc-link-search=native={}", lib_dir.display());
18
+ println!("cargo:rustc-link-lib=dylib=python314");
19
+ }