pwndbg_cyclic
Generate De Bruijn cyclic patterns to calculate offsets for exploit development. Look up values in the pattern or auto-detect crash offsets from registers.
Instructions
Generate or look up a cyclic (De Bruijn) pattern for offset calculation.
pwndbg command: cyclic Source: pwndbg/commands/cyclic.py Category: Misc
Generates patterns where every N-byte subsequence is unique, making it easy to determine crash offsets. Can also look up a value in the pattern to find the offset.
Args: session_id: The UUID of the session. length: Length of pattern to generate (mutually exclusive with lookup). lookup: Value to look up in the pattern (finds offset). detect: If True, auto-detect the crash offset from registers. count: Pattern element count (default: 100).
See: https://pwndbg.re/2025.05.30/reference/pwndbg/commands/cyclic/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| length | No | ||
| lookup | No | ||
| detect | No | ||
| count | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |