pwngdb> disass main
Dump of assembler code for function main:
0x00005555555546e6 <+0>: push rbp ; ํ๋กค๋ก๊ทธ - ํจ์์ ์์์ ํญ์ ์์น. ...[1]
0x00005555555546e7 <+1>: mov rbp,rsp ; ํ๋กค๋ก๊ทธ.
0x00005555555546ea <+4>: sub rsp,0x90 ; 0x90๋งํผ์ ๊ณต๊ฐ(144๋งํผ) ์์ฑ. ...[2]
//…
0x0000555555554734 <+78>: mov rsi,rdx
0x0000555555554737 <+81>: mov rdi,rax
0x000055555555473a <+84>: call 0x55555555468a <vuln> ; vuln์ด๋ผ๋ ํจ์ ํธ์ถ...[3] - [6]
0x000055555555473f <+89>: lea rdi,[rip+0x9e] # 0x5555555547e4 ;
0x0000555555554746 <+96>: call 0x555555554550 <puts@plt>
0x000055555555474b <+101>: mov eax,0x0
0x0000555555554750 <+106>: leave
=> 0x0000555555554751 <+107>: ret
End of assembler dump.
Dump of assembler code for function vuln: ; vulnํจ์! ...[4]
//…
0x00005555555546df <+85>: add rsp,0x28
0x00005555555546e3 <+89>: pop rbx
0x00005555555546e4 <+90>: pop rbp
0x00005555555546e5 <+91>: ret ; ret == JMP RSP ๋ฆฌํด ์ฃผ์!...[5]
./vuln `perl -e 'print "X"x144'` # == ./vuln `perl -e 'print"XXXXXXXXXXX ~144๊ฐ~ XXXXXXXXXXXX"'`
728x90
':: BoB 11๊ธฐ ๐ฉ > Topics' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[ vuln ] - [ Integer overflow ] (0) | 2022.07.15 |
---|---|
[ vuln ] - [ BoF - Stack Canary, Heap based ] (0) | 2022.07.15 |
[ vuln ] - [ Time of Check to Time of Use(toctou), Race condition ] (0) | 2022.07.15 |
[ Cryto ] - AES ์ํธ (0) | 2022.07.13 |
[๋ณด์์ ํ๊ฐ๋ฐ] - [git upload] (0) | 2022.07.03 |
๋๊ธ