[原创]【kctf-ag真人国际厅网站

4000b0 mov     eax, 1

4000b5 mov     rdi, rax                        ; fd

4000b8 mov     rsi, offset hello               ; buf

4000c2 mov     edx, 0dh                        ; count

4000c7 syscall                                 ; linux - sys_write

4000c9 call    tnt66666

4000c9

4000ce mov     eax, 1

4000d3 mov     rdi, rax                        ; error_code

4000d6 mov     rsi, offset byebye              ; "tnt tnt!\n"

4000e0 mov     edx, 9                          ; count

4000e5 syscall                                 ; linux - sys_write

4000e7 mov     eax, 3ch ; '<'

4000ec syscall                                 ; linux - sys_exit

4000ec

4000ec _start endp

4000ec

4000ee

4000ee ; =============== s u b r o u t i n e =======================================

4000ee

4000ee

4000ee tnt66666 proc near                      ; code xref: _start 19↑p

4000ee sub     rsp, 10h

4000f2 xor     rax, rax

4000f5 mov     edx, 400h                       ; count

4000fa mov     rsi, rsp                        ; buf

4000fd mov     rdi, rax                        ; fd

400100 syscall                                 ; linux - sys_read

400102 add     rsp, 10h

400106 retn

400106

400106 tnt66666 endp

原文链接:https://bbs.kanxue.com/thread-277521.htm

网络摘文,本文作者:15h,如若转载,请注明出处:https://www.15cov.cn/2023/08/27/原创【kctf-pwn】2022-春第六题-brop/

发表评论

邮箱地址不会被公开。 必填项已用*标注

网站地图