pwncollege
DojosLeaderboardCommunity
Back to intro-re-pwn~5933fc84

Shellcode

intro-re-pwn~5933fc84
0/2 challenges completed

Learn what shellcode is, test small machine-code programs, and redirect a vulnerable program to shellcode you provide.

Start with the "Start here" resource below. It explains system calls, walks through a tiny hand-written program byte by byte, and covers bad bytes, executable memory, setuid programs, and how a leaked address lets you jump to your own code. Suggested order: shellcode-tester, then ret2shellcode-64.

Start here: what this module is about
System calls, registers, and machine code
Worked example: a 42-byte program that prints a message
Bad bytes: newline and NUL
Executable memory and NX
Setuid programs: why the shell drops root, and the fix
Using a leaked address to jump to your code
How to read the tool output
Glossary, common mistakes, where next
Pwntools Shellcraft

Challenges

1
Test Shellcode
2
Return to Shellcode