yyy

CTFつよくなりたい

2019-05-01から1ヶ月間の記事一覧

Beginners CTF 2019 Writeup

Seccompare Leakage Linear_Operation shellcoder OneLine Dump Ramen Seccompare コマンドライン引数で文字列を渡して,それが正解かどうかstrcmpで比較してる.よって,ltraceを使えば比較対象であるフラグが求まる. $ ltrace ./seccompare hoge strcmp("…

Harekaze CTF 2019 Baby ROP, Baby ROP 2, scramble

Baby ROP バッファオーバーフローがあり,バイナリ内にsystemも用意されていたのでROPでsystemに飛ばすだけ. /bin/sh もバイナリ内にあったのでそれを使った. gist.github.com $ python exploit.py [+] Opening connection to problem.harekaze.com on por…

DEF CON CTF Qualifier 2019 speedrun-001~003

speedrun-001 $ ./speedrun-001 Hello brave new challenger Any last words? hoge This will be the last thing that you say: hoge Alas, you had no luck today. バッファオーバーフローがあるので,ROPで execve("/bin/sh", NULL, NULL) を呼ぶようにし…