반응형
답
- 기본 지식
- or: dst와 src의 비트가 하나라도 1이면 1, 아니면 0
- 사용법: and dst, src
- 코드 해설
- 'and rax, rcx' : 0x1234567800000000
- 'and rbx, rcx' : 0x000000009ABCDEF0
- 'or rax, rbx' : 0x123456789ABCDEF0
참고
- or할떄
- 0x123 -> 000100100011
0xfff -> 111111111111 - 11111111111 -> 0xfff
- 이렇게 이진수로 바꿔서 1과 0을 비교한다.
(f는 1111이다.)
- 0x123 -> 000100100011
끝
반응형
'hacking > pwnable' 카테고리의 다른 글
[Dream hack] Quiz: x86 Assembly 1-10 (0) | 2024.05.18 |
---|---|
[Dream hack] Quiz: x86 Assembly 1-9 (0) | 2024.05.18 |
[Dream hack] Quiz: x86 Assembly 1-7 (0) | 2024.05.18 |
[Dream hack] Quiz: x86 Assembly 1-6 (0) | 2024.05.17 |
[Dream hack] Quiz: x86 Assembly 1-5 (0) | 2024.05.17 |