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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hex_data": "<hex_data>"
},
"name": "xor_brute_force"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex_data | Yes | ||
| min_printable_ratio | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |