#1 - Security/Android
-
Android Frida Script by ChatGPT#1 - Security/Android 2022. 12. 16. 11:19
ChatGPT 이용하여 libc.so 의 open함수 Frida Hooking code 요청을 해봤다. 전체 소스코드는 이렇다 // First, import the Frida API and the `Process` module var frida = require('frida'); var Process = frida.Process; // Next, find the PID of the process you want to attach to // In this example, we'll attach to the process with PID 1234 var pid = 1234; // Attach to the process Process.attach(pid).then(function (process) { // E..
-
Shared Object(.so) 로드 순서#1 - Security/Android 2020. 8. 10. 16:55
1. System.loadlibrary('abc.so') --> Runtime.Load()-->Runtime.nativeLoad()-->Dalvik_java_lang_Runtime_nativeLoad() --> dvmLoadNativeCode() 2. dlopen > call_function > preinit_array->.init -> .init_array section 3. dlsym > jni_onload (매핑되어있다면 생략가능)
-
system 디렉터리 remount 안될 때#1 - Security/Android 2020. 1. 10. 16:27
mount -o rw,remount /system 명령어가 안될 때 해결방안 #cat /proc/mounts returns ( only the system line here ) /dev/stl12 /system rfs ro,relatime,vfat,log_off,check=no,gid/uid/rwx,iocharset=utf8 0 0 파일시스템 확인 - /dev/stl12 /system mount -o rw,remount -t rfs /dev/stl12 /system