cyberchef_cyclic_pattern
Generate De Bruijn cyclic patterns to identify buffer overflows, or find offset of a recovered register fragment within one. Supports pwntools-compatible generate/find modes with text or hex input.
Instructions
Generate a De Bruijn (cyclic) pattern, or find the offset of a fragment within one. Compatible with pwntools' cyclic/cyclic_find, so patterns and offsets are interchangeable with it. Use mode=find with the bytes recovered from a crashed register to get the overflow offset; hex input is interpreted as both big- and little-endian, because a register dump is usually reversed relative to memory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Generate a pattern, or find an offset in one. | |
| length | No | generate: how many bytes to produce. find: how long the pattern was. | |
| alphabet | No | Symbols to build from. The default matches pwntools. | abcdefghijklmnopqrstuvwxyz |
| fragment | No | find: the bytes recovered, as text or hex (e.g. "aabc" or 0x63626161). | |
| fragment_format | No | find: how to read `fragment`. Auto tries hex first, then text. | Auto |
| subsequence_length | No | Bytes of uniqueness: 4 for 32-bit, 8 for 64-bit. Must match the pattern. |