Premium Only Content
![Leaking Secret Data with a Heap Overflow - "Leek" Pwn Challenge [Angstrom CTF 2023]](https://1a-1791.com/video/s8/1/T/3/u/s/T3usj.qR4e-small-Leaking-Secret-Data-with-a-.jpg)
Leaking Secret Data with a Heap Overflow - "Leek" Pwn Challenge [Angstrom CTF 2023]
Video walkthrough for the binary exploitation (pwn) challenge, "Leek" from the Angstrom capture the flag (CTF) competition 2023. The challenge involves performing a heap overflow to overwrite all null bytes between our user input chunk and secret data chunk so that when puts() is called, it prints both chunks (there's no null terminator separating them). After this, we need to repair the header of the chunk we modified so that the program can continue execution. We repeat this process of leaking and submitting the random (secret) bytes 100 times, at which point we receive the flag! Write-ups/tutorials aimed at beginners - Hope you enjoy 🙂 #Angstrom #AngstromCTF #CTF #Pentesting #OffSec #Pwn #BinaryExploitation #Reversing #ReverseEngineering
↢Social Media↣
Twitter: https://twitter.com/_CryptoCat
GitHub: https://github.com/Crypto-Cat/CTF
HackTheBox: https://app.hackthebox.eu/profile/11897
LinkedIn: https://www.linkedin.com/in/cryptocat
Reddit: https://www.reddit.com/user/_CryptoCat23
YouTube: https://www.youtube.com/CryptoCat23
Twitch: https://www.twitch.tv/cryptocat23
↢AngstromCTF↣
https://ctftime.org/event/1859
https://2023.angstromctf.com/challenges
https://discord.gg/Dduuscw
https://twitter.com/angstromctf
↢Resources↣
Ghidra: https://ghidra-sre.org/CheatSheet.html
Volatility: https://github.com/volatilityfoundation/volatility/wiki/Linux
PwnTools: https://github.com/Gallopsled/pwntools-tutorial
CyberChef: https://gchq.github.io/CyberChef
DCode: https://www.dcode.fr/en
HackTricks: https://book.hacktricks.xyz/pentesting-methodology
CTF Tools: https://github.com/apsdehal/awesome-ctf
Forensics: https://cugu.github.io/awesome-forensics
Decompile Code: https://www.decompiler.com
Run Code: https://tio.run
↢Chapters↣
Start: 0:00
Patch lib-c (pwninit): 0:20
Test the program functionality: 1:05
Check the binary protections (checksec): 1:37
Analyse decompiled code (ghidra): 3:53
Recap of analysis: 6:51
PwnTools script: 8:40
Setup breakpoints: 14:38
Debug with GDB (pwndbg): 15:33
Heap recap (chunk structure): 16:20
Reviewing vulnerability / exploit: 18:01
Finish PwnTools script: 20:40
Test against remote server: 24:13
Final recap: 25:07
End: 25:56
-
LIVE
OhHiMark1776
1 hour ago🟢 09-28-25 ||||| Act 3 Continue ||||| Baldur's Gate 3 (2023)
60 watching -
LIVE
DooM49
1 hour ago12 Days until Battlefield 6
74 watching -
17:23
Russell Brand
2 days agoThey couldn't handle this...
121K309 -
18:18
DeVory Darkins
21 hours ago $35.76 earnedPortland gets NIGHTMARE NEWS as Trump orders Troops to crush violent rioters
56.9K324 -
1:32:21
JTtheSG
2 hours agoLIVE Replay - Ready To Play VOID BREAKER
1.29K -
LIVE
DoldrumDan
4 hours agoNEW STREAM SCHEDULE 3PM EST TO 7PM EST EVERY DAY
171 watching -
Sgt Wilky Plays
3 hours agoSunday Finals | Regiment Donor Drive
9.17K1 -
LIVE
Ouhel
5 hours agoSUNDAY | Active Matter | Exploring the postapocalyptic | O'HELL LIVE
62 watching -
LIVE
Astral Doge Plays!
6 hours agoFinal Fantasy IX ~LIVE!~ Iifa Tree Visitation Hours
26 watching -
LIVE
J0hnThunder
5 hours ago $1.09 earned[Classic] Pac-Man World Re-Pac 1 and 2 👻 🟡 🟡 🟡 Relaxing on Sunday
71 watching