Shellcode Basics

Use when you need to write or use position-independent machine code payloads on an authorized target, such as a CTF pwn challenge where NX is disabled, a buffer you can execute, or a ROP chain that made memory writable and executable. Covers shellcode anatomy, writing execve /bin/sh shellcode in assembly, assembling with NASM 2.16.x, generating with pwntools 4.13 shellcraft, keeping shellcode null-free and position independent, testing in a local harness, and common encoders for filtered input. Use when you control the instruction pointer and can redirect it to attacker-controlled executable bytes.

mizazhaider-ceh Updated
AgentArsenal

File contents

mizazhaider-ceh/AgentArsenal commit 597bbe45b6

Frequently asked questions

npx get-skill add mizazhaider-ceh/shellcode-basics