Metadata-Version: 2.1
Name: rust_reverse
Version: 0.1.0
Summary: Universal Pure-Rust JSVMP Bytecode Deobfuscator, Symbolic VM Solver & Dynamic Browser Fingerprint Template Pool
Author: zt1901
License: MIT
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.14
Classifier: Operating System :: Microsoft :: Windows :: Windows 10
Classifier: Operating System :: Microsoft :: Windows :: Windows 11
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# rust_reverse

**Universal Pure-Rust JSVMP Bytecode Deobfuscator, Symbolic VM Solver & Dynamic Browser Fingerprint Template Pool**

`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.

## Key Features

- **100% Pure Rust Native Extension (GIL Released)**: Zero Node.js, zero V8, zero browser processes (~2.5ms - 5.0ms per challenge).
- **Dynamic JSON Fingerprint Template Pool (`profiles/*.json`)**:
  - 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;
  - Dynamically load or hot-register lightweight (`~1 KB`) `.json` fingerprint templates (`list_profiles`, `load_profile`, `register_profile`) or rotate randomly (`"random"`).
- **Multi-Target Bytecode VM Solvers & Decompilers**:
  - `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;
  - `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;
  - `deobfuscate` / `simplify_mba` / `clean_js` / `deobfuscate_cf_jsd`: Algebraic MBA expression simplifier, ToInt32 bitwise float truncator, and rotating-XOR string decryptor.

## Quick Start

```python
import rust_reverse

# List all available fingerprint templates (built-in + ./profiles/*.json)
for p in rust_reverse.list_profiles("./profiles"):
    print(p["profile_name"], p["screen_resolution"], p["webgl_renderer"])

# Load a specific template or "random"
prof = rust_reverse.load_profile("random")

# Simplify Mixed Boolean-Arithmetic (MBA) expressions
print(rust_reverse.simplify_mba("-~(W&4)-~(W|4)+2*(~W&4)+2*(W|-5)", "W"))  # -> "W + 4"
```

