[Code]
main:
push rbp
mov rbp, rsp
mov esi, 0xf
mov rdi, 0x400500
call 0x400497 <write_n>
mov eax, 0x0
pop rbp
ret
write_n:
push rbp
mov rbp, rsp
mov QWORD PTR [rbp-0x8],rdi
mov DWORD PTR [rbp-0xc],esi
xor rdx, rdx
mov edx, DWORD PTR [rbp-0xc]
mov rsi,QWORD PTR [rbp-0x8]
mov rdi, 0x1
mov rax, 0x1
syscall
pop rbp
ret
==================================
[Memory]
0x400500 | 0x3037207964343372
0x400508 | 0x003f367562336420
문제. 위의 어셈블리 코드를 실행했을 때, 출력되는 결과로 올바른것은?
답: r34dy 70 d3bu6
728x90
'문제 풀이 > [DreamHack]' 카테고리의 다른 글
[DreamHack] System Hacking Stage3 - Tool: pwntools 설치 (1) | 2022.12.21 |
---|---|
[DreamHack] System Hacking Stage3 - Tool: gdb 설치 (0) | 2022.12.21 |
[DreamHack] System Hacking Stage2 - Quiz: x86 Assembly 1 (0) | 2022.12.20 |
[DreamHack] SystemHacking Stage2 - x86 Assembly: Essential Part 2 (0) | 2022.12.20 |
[DreamHack] SystemHacking Stage2 - x86 Assembly: Essential Part 1 (0) | 2022.12.20 |