xor_brute_force
Brute-force decryption of single-byte XOR cipher using printable character ratio ranking. For CTF challenges to decrypt XOR-encrypted flags.
Instructions
Brute-force single-byte XOR decryption, ranked by printable character ratio.
Commonly used in CTF to decrypt simple XOR-encrypted flags or strings.
Args: hex_data: Hex-encoded ciphertext data. min_printable_ratio: Minimum printable character ratio threshold. Default: 0.75.
Returns: Candidate decryption results sorted by printable ratio.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex_data | Yes | ||
| min_printable_ratio | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |