CTF

Cyclic Pattern Generator & Offset Finder

Generate the same de Bruijn pattern as pwntools cyclic(), then paste the crashing EIP/RIP to get your buffer overflow offset.

Runs locallyYour input never leaves this device
WORKBENCH

2 MB input limit · no history kept

Matches pwntools cyclic() and cyclic_find(). Feed the pattern to the program until it crashes, then paste the EIP/RIP value from gdb (or the value RSP points to) on the right to get the padding length that reaches the return address.

HOW TO USE

How to use the Cyclic Pattern Generator & Offset Finder

The first step in most pwn challenges is finding how many bytes it takes to overwrite the return address. This tool generates exactly the same de Bruijn sequence as pwntools cyclic(); paste the EIP/RIP value after the crash and you get the offset immediately, with nothing to install.

  1. Choose 32- or 64-bit, set a length and generate the pattern, then feed it to the program to crash it.
  2. In gdb, read EIP/RIP or the 8 bytes RSP points to and copy the value.
  3. Paste it on the right and click Find offset to get the padding length for your exploit.
USE CASES

Cyclic Pattern Generator & Offset Finder use cases

  • Find the offset that overwrites the saved return address in a stack overflow.
  • Replace pattern_create/pattern_offset where pwntools or Metasploit isn't installed.
  • Locate which part of your input ended up on RSP in a 64-bit binary.

Related topics: cyclic, pattern create, pattern offset, de bruijn, buffer overflow, pwn, pwntools, ctf

FAQ

Cyclic Pattern Generator & Offset Finder FAQ

Does the Cyclic Pattern Generator & Offset Finder upload my data?

No. Tool input and results stay in the current tab. Navigation may load static site assets, but does not upload the data you enter.

Is the Cyclic Pattern Generator & Offset Finder free? Do I need an account?

It's free with no account and no usage limits, like every other tool on SecTools.

Can I use the Cyclic Pattern Generator & Offset Finder on mobile or offline?

Yes. It works in mobile and desktop browsers and keeps working offline once the page has loaded. You can also self-host the open-source code on an internal network.

Can I treat the Cyclic Pattern Generator & Offset Finder's results as a final verdict?

Use them for triage and cross-checking. For important incidents, keep the original evidence and confirm with your formal verification or forensic process.

SECURITY NOTE

Use it safely

This tool supports analysis and interpretation; it doesn't replace a formal security review. Avoid pasting live credentials, private keys or production passwords on a shared computer. Close the tab when you're done and your input is gone.