[iOS] frida string 확인

Captainjack·2023년 2월 17일
0

Mobile hacking

목록 보기
11/15

Interceptor.attach(ObjC.classes.NSString['+ stringWithUTF8String:'].implementation, {
    onEnter: function (args) {
      console.log('[+] Hooked +[NSString stringWithUTF8String:] ');
    },
    onLeave: function (retval) {
      var str = new ObjC.Object(ptr(retval)).toString()
      
      console.log("\nBacktrace:\n" + Thread.backtrace(this.context, Backtracer.ACCURATE).map(DebugSymbol.fromAddress).join("\n"));
      console.log('[+] Returning [NSString stringWithUTF8String:] -> ', str);
      return retval;
    }
});

https://github.com/frida/frida/issues/607

profile
til' CTF WIN

0개의 댓글