Lab 5: Remote Multi-Stage Exploitation
- Target: a remote service on the isolated Badger CTF platform, running a vulnerable binary with NX and ASLR enabled.
- You are given the binary and the target's libc. Goal: retrieve
flag.txtfrom the server. - Required workflow:
- Find the bug and build a leak (Stage 1): call
puts(GOT[...])and read the address. - Recompute
libc_basefrom the leak using the provided libc. - Return to a vulnerable point and send Stage 2:
system("/bin/sh")or a GOT overwrite. cat flag.txt, submit the flag.- Use
pwninitto match the libc locally, then flip your script toremote().
Key Takeaway
Lab 5 is the full pipeline end to end: leak, recompute, hijack, shell — against a live remote target, in an authorized lab only.