Skip to content

OSCP · Module 10

Adapting Public Exploits

Adapt public exploits for your target. Modify hardcoded values, cross-compile binaries, troubleshoot failures, and deliver reliable payloads with stable shell handling.

~1 h 2 resources Last updated September 27, 2026

Public exploits rarely work out of the box. Hardcoded IPs, wrong offsets, missing dependencies, and incompatible target versions all require modifications. PEN-200 teaches you to read exploit code, identify what needs changing, cross-compile for the target architecture, and troubleshoot when execution fails. This module bridges the gap between finding an exploit and getting a working shell.

Payload Delivery and Shell Handling

After adapting an exploit, you need a reliable payload and a stable shell. Reverse shell one-liners cover most situations, but choosing the right payload depends on what interpreters are available on the target. Upgrading from a raw shell to a fully interactive TTY is essential for running tools like sudo and su.

Read

The core material for this module. Where a guide goes deeper than needed, the relevant sections are highlighted.

Practice

Apply the module hands-on.

All OSCP practice machines