강의

멘토링

커뮤니티

Inflearn Community Q&A

daeinlee4159's profile image
daeinlee4159

asked

Hacking Mobile Games (Unity)

3.2 Memory Hacking with Frida

Memory.protect(hook_target,0x8,"rwx") 질문입니다~

Written on

·

376

0

안녕하세요. 반갑습니다.

Memory.protect(hook_target,0x8,"rwx") 코드 관련 질문인데요.

0x8이 size 같은데, 저 값은 어떻게 알아내는 것일까요?

혹시라도, 안바쁘시면 ㅠㅠ 답변부탁드립니다.

fridaCheat-Engineandroid

Answer 1

1

taesun1114님의 프로필 이미지
taesun1114
Instructor

안녕하세요!

0x8은 말씀해주신대로 size값이고 아래 코드와 함께 보셔야 이해가 가능하실 것 같습니다!

Memory.writeByteArray함수에서 인자로 넘어가는 값(바이트 배열)이 8byte라서 size도 0x8로 설정하였습니다.

감사합니다.

daeinlee4159님의 프로필 이미지
daeinlee4159
Questioner

연습 좀 해봤더니, 알겠더라구요. 감사합니다!

daeinlee4159's profile image
daeinlee4159

asked

Ask a question