🔗 ROP Chain Calculator

Precise x86 instruction size analysis for exploit development
Created by Mohammad Hussam Alzeyyat | The Science of Hacking

🚧 Roadmap & Upcoming Features

🎯 Coming Soon

🎯 What is this?

A web-based calculator that provides exact instruction sizes for x86 assembly instructions, designed specifically for exploit developers working with ROP (Return-Oriented Programming) chains.

🔍 Why Precision Matters

In exploit development, every byte counts:

🚀 Features

📊 Single Gadget Analysis

Calculate individual instruction sizes with real x86 encoding precision:

mov eax, 0 ; 5 bytes (B8 00 00 00 00) xor eax, eax ; 2 bytes (31 C0) - Better! pop eax ; 1 byte (58)

🔗 ROP Chain Analysis

Analyze complete chains with automatic gadget grouping:

pop eax ; ret ; 2 bytes (offset: +0) neg eax ; ret ; 2 bytes (offset: +2) xchg eax, ebp ; ret ; 2 bytes (offset: +4)

🎯 Accurate Encoding Database

🎮 Usage Examples

Basic Instruction Analysis

# Input pop eax ; ret # Output Instructions Analysis: pop eax ; ret (2 bytes) Total Instruction Size: 2 bytes

Complex ROP Chain

# Input pop eax ; ret neg eax ; ret mov eax, [eax] ; ret add eax, ebp ; ret # Output Gadget #1: pop eax ; ret (2 bytes, offset: +0) Gadget #2: neg eax ; ret (2 bytes, offset: +2) Gadget #3: mov eax, [eax] ; ret (3 bytes, offset: +4) Gadget #4: add eax, ebp ; ret (3 bytes, offset: +7) Total Size: 10 bytes

🛠️ Technical Details

Supported Architectures

Instruction Categories

Encoding Accuracy

Based on Intel x86 instruction encoding format:

[Prefixes] [Opcode] [ModR/M] [SIB] [Displacement] [Immediate]

🎓 Educational Use

Perfect for:

🤝 Reporting Issues

Please include: