1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526
|
var ProName = ProcessName(); function ProcessName() { var openPtr = Module.getExportByName('libc.so', 'open'); var open = new NativeFunction(openPtr, 'int', ['pointer', 'int']); var readPtr = Module.getExportByName('libc.so', 'read'); var read = new NativeFunction(readPtr, 'int', ['int', 'pointer', 'int']); var closePtr = Module.getExportByName('libc.so', 'close'); var close = new NativeFunction(closePtr, 'int', ['int']); var path = Memory.allocUtf8String('/proc/self/cmdline'); var fd = open(path, 0); if (fd != -1) { var buffer = Memory.alloc(0x1000); var result = read(fd, buffer, 0x1000); close(fd); result = ptr(buffer).readCString(); return result; } return -1; } var ourlib = "libxyz.so"; var p_pthread_create = Module.findExportByName("libc.so", "pthread_create"); var pthread_create = new NativeFunction(p_pthread_create, "int", ["pointer", "pointer", "pointer", "pointer"]); Interceptor.replace(p_pthread_create, new NativeCallback(function(ptr0, ptr1, ptr2, ptr3) { var ret = ptr(0); if (gmn(ptr0) == ourlib) { console.log("Thread Created ptr0 : ", gmn(ptr0), Mod, ptr0.sub(Mod)); } if (gmn(ptr1) == ourlib) { var Mod = Module.findBaseAddress(ourlib) console.log("Thread Created ptr1 : ", gmn(ptr1), Mod, ptr1.sub(Mod)); Interceptor.attach(Mod.add(ptr1.sub(Mod)), { onEnter: function(args) { console.log("New Thread Func", ptr1.sub(Mod), "arg : ", args[0], args[1]); }, onLeave: function(retval) { console.log("New Thread Func Return : ", retval); } }); } if (gmn(ptr2) == ourlib) { var Mod = Module.findBaseAddress(ourlib) console.log("Thread Created ptr2 : ", gmn(ptr2), Mod, ptr2.sub(Mod)); Interceptor.attach(Mod.add(ptr2.sub(Mod)), { onEnter: function(args) { console.log("New Thread Func", ptr2.sub(Mod), "arg : ", args[0], args[1]); }, onLeave: function(retval) { console.log("New Thread Func Return : ", retval); } }); } if (gmn(ptr3) == ourlib) { var Mod = Module.findBaseAddress(ourlib) console.log("Thread Created ptr3 : ", gmn(ptr3), Mod, ptr3.sub(Mod)); Interceptor.attach(Mod.add(ptr3.sub(Mod)), { onEnter: function(args) { console.log("New Thread Func", ptr3.sub(Mod), "arg : ", args[0], args[1]); }, onLeave: function(retval) { console.log("New Thread Func Return : ", retval); } }); } if (ptr1.isNull() && ptr3.isNull()) { console.warn("loading fake pthread_create"); return pthread_create(ptr0, ptr1, ptr2, ptr3); } else { return pthread_create(ptr0, ptr1, ptr2, ptr3);; } }, "int", ["pointer", "pointer", "pointer", "pointer"]));
function gmn(fnPtr) { if (fnPtr != null) { try { return Process.getModuleByAddress(fnPtr).name; } catch (e) {console.error(e);} } }
var inet_atonPtr = Module.findExportByName("libc.so", "inet_aton"); var inet_aton = new NativeFunction(inet_atonPtr, 'int', ['pointer', 'pointer']); Interceptor.replace(inet_atonPtr, new NativeCallback(function(addrs, structure) { var retval = inet_aton(addrs, structure); console.log("inet_aton : ", addrs.readCString()) return retval; }, 'int', ['pointer', 'pointer'])) var popenPtr = Module.findExportByName("libc.so", "popen"); var popen = new NativeFunction(popenPtr, 'pointer', ['pointer', 'pointer']); Interceptor.replace(popenPtr, new NativeCallback(function(path, type) { var retval = popen(path, type); console.log("popen : ", path.readCString()); return retval; }, 'pointer', ['pointer', 'pointer'])) var symlinkPtr = Module.findExportByName("libc.so", "symlink"); var symlink = new NativeFunction(symlinkPtr, 'int', ['pointer', 'pointer']); Interceptor.replace(symlinkPtr, new NativeCallback(function(target, path) { var retval = symlink(target, path); console.log("symlink: ", target.readCString(), path.readCString()); return retval; }, 'int', ['pointer', 'pointer'])) var symlinkatPtr = Module.findExportByName("libc.so", "symlinkat"); var symlinkat = new NativeFunction(symlinkatPtr, 'int', ['pointer', 'int', 'pointer']); Interceptor.replace(symlinkatPtr, new NativeCallback(function(target, fd, path) { var retval = symlinkat(target, fd, path); console.log("symlinkat : ", target.readCString(), path.readCString()); return retval; }, 'int', ['pointer', 'int', 'pointer'])) var inet_addrPtr = Module.findExportByName("libc.so", "inet_addr"); var inet_addr = new NativeFunction(inet_addrPtr, 'int', ['int']); Interceptor.replace(inet_addrPtr, new NativeCallback(function(path) { var retval = inet_addr(path); console.log("inet_addr : ", path.readCString()) return retval; }, 'int', ['int'])) var socketPtr = Module.findExportByName("libc.so", "socket"); var socket = new NativeFunction(socketPtr, 'int', ['int', 'int', 'int']); Interceptor.replace(socketPtr, new NativeCallback(function(domain, type, proto) { var retval = socket(domain, type, proto); console.warn("socket : ", domain, type, proto, "Return : ", retval) return retval; }, 'int', ['int', 'int', 'int'])) var connectPtr = Module.findExportByName("libc.so", "connect"); var connect = new NativeFunction(connectPtr, 'int', ['int', 'pointer', 'int']); Interceptor.replace(connectPtr, new NativeCallback(function(fd, addr, len) { var retval = connect(fd, addr, len); var family = addr.readU16(); var port = addr.add(2).readU16(); console.warn("Connect : ", family, "Port : ", port, "Return : ", retval); return retval; }, 'int', ['int', 'pointer', 'int'])) var sendPtr = Module.findExportByName("libc.so", "send"); var send2 = new NativeFunction(sendPtr, 'int', ['int', 'pointer', 'int', 'int']); Interceptor.replace(sendPtr, new NativeCallback(function(socksfd, msg, slen, flag, daddr, dlen) { var retval = send2(socksfd, msg, slen, flag); console.log("send : ", socksfd, msg.readCString(), slen, flag); return retval; }, 'int', ['int', 'pointer', 'int', 'int'])) var sendtoPtr = Module.findExportByName("libc.so", "sendto"); var sendto = new NativeFunction(sendtoPtr, 'int', ['int', 'pointer', 'int', 'int', 'pointer', 'int']); Interceptor.replace(sendtoPtr, new NativeCallback(function(socksfd, msg, slen, flag, daddr, dlen) { var retval = sendto(socksfd, msg, slen, flag, daddr, dlen); return retval; }, 'int', ['int', 'pointer', 'int', 'int', 'pointer', 'int']))
const openPtr = Module.getExportByName('libc.so', 'open'); const open = new NativeFunction(openPtr, 'int', ['pointer', 'int']); var readPtr = Module.findExportByName("libc.so", "read"); var read = new NativeFunction(readPtr, 'int', ['int', 'pointer', "int"]);
var FakeMaps = "/data/data/" + ProName + "/maps"; var FOpenMaps = "/data/data/" + ProName + "/fmaps"; var FakeTask = "/data/data/" + ProName + "/task"; var FakeExE = "/data/data/" + ProName + "/exe"; var FakeMounts = "/data/data/" + ProName + "/mounts"; var FakeStatus = "/data/data/" + ProName + "/status"; var MapsFile = new File(FakeMaps, "w"); var TaskFile = new File(FakeTask, "w"); var ExEFile = new File(FakeExE, "w"); var FMapsFile = new File(FOpenMaps, "w"); var FMountFile = new File(FakeMounts, "w"); var StatusFile = new File(FakeStatus, "w"); var MapsBuffer = Memory.alloc(512); var TaskBuffer = Memory.alloc(512); var ExEBuffer = Memory.alloc(512); var FopenBuffer = Memory.alloc(512); var MountBuffer = Memory.alloc(512); var StatusBuffer = Memory.alloc(512); var Open64MapsBuffer = Memory.alloc(512); Interceptor.replace(openPtr, new NativeCallback(function(pathname, flag) { var FD = open(pathname, flag); var ch = pathname.readCString(); if (ch.indexOf("/proc/") >= 0 && ch.indexOf("maps") >= 0) { console.log("open : ", pathname.readCString()) while (parseInt(read(FD, MapsBuffer, 512)) !== 0) { var MBuffer = MapsBuffer.readCString(); MBuffer = MBuffer.replaceAll("/data/local/tmp/re.frida.server/frida-agent-64.so", "FakingMaps"); MBuffer = MBuffer.replaceAll("re.frida.server", "FakingMaps"); MBuffer = MBuffer.replaceAll("re.frida", "FakingMaps"); MBuffer = MBuffer.replaceAll("re.", "FakingMaps"); MBuffer = MBuffer.replaceAll("frida.", "FakingMaps"); MBuffer = MBuffer.replaceAll("frida-agent-64.so", "FakingMaps"); MBuffer = MBuffer.replaceAll("rida-agent-64.so", "FakingMaps"); MBuffer = MBuffer.replaceAll("agent-64.so", "FakingMaps"); MBuffer = MBuffer.replaceAll("frida-agent-32.so", "FakingMaps"); MBuffer = MBuffer.replaceAll("frida-helper-32", "FakingMaps"); MBuffer = MBuffer.replaceAll("frida-helper", "FakingMaps"); MBuffer = MBuffer.replaceAll("frida-agent", "FakingMaps"); MBuffer = MBuffer.replaceAll("pool-frida", "FakingMaps"); MBuffer = MBuffer.replaceAll("frida", "FakingMaps"); MBuffer = MBuffer.replaceAll("frida-", "FakingMaps"); MBuffer = MBuffer.replaceAll("/data/local/tmp", "/data"); MBuffer = MBuffer.replaceAll("server", "FakingMaps"); MBuffer = MBuffer.replaceAll("frida-server", "FakingMaps"); MBuffer = MBuffer.replaceAll("linjector", "FakingMaps"); MBuffer = MBuffer.replaceAll("gum-js-loop", "FakingMaps"); MBuffer = MBuffer.replaceAll("frida_agent_main", "FakingMaps"); MBuffer = MBuffer.replaceAll("gmain", "FakingMaps"); MBuffer = MBuffer.replaceAll("frida", "FakingMaps"); MBuffer = MBuffer.replaceAll("magisk", "FakingMaps"); MBuffer = MBuffer.replaceAll(".magisk", "FakingMaps"); MBuffer = MBuffer.replaceAll("/sbin/.magisk", "FakingMaps"); MBuffer = MBuffer.replaceAll("libriru", "FakingMaps"); MBuffer = MBuffer.replaceAll("xposed", "FakingMaps"); MapsFile.write(MBuffer); } var filename = Memory.allocUtf8String(FakeMaps); return open(filename, flag); } if (ch.indexOf("/proc") >= 0 && ch.indexOf("task") >= 0) { while (parseInt(read(FD, TaskBuffer, 512)) !== 0) { var buffer = TaskBuffer.readCString(); buffer = buffer.replaceAll("re.frida.server", "FakingTask"); buffer = buffer.replaceAll("frida-agent-64.so", "FakingTask"); buffer = buffer.replaceAll("rida-agent-64.so", "FakingTask"); buffer = buffer.replaceAll("agent-64.so", "FakingTask"); buffer = buffer.replaceAll("frida-agent-32.so", "FakingTask"); buffer = buffer.replaceAll("frida-helper-32", "FakingTask"); buffer = buffer.replaceAll("frida-helper", "FakingTask"); buffer = buffer.replaceAll("frida-agent", "FakingTask"); buffer = buffer.replaceAll("pool-frida", "FakingTask"); buffer = buffer.replaceAll("frida", "FakingTask"); buffer = buffer.replaceAll("/data/local/tmp", "/data"); buffer = buffer.replaceAll("server", "FakingTask"); buffer = buffer.replaceAll("frida-server", "FakingTask"); buffer = buffer.replaceAll("linjector", "FakingTask"); buffer = buffer.replaceAll("gum-js-loop", "FakingTask"); buffer = buffer.replaceAll("frida_agent_main", "FakingTask"); buffer = buffer.replaceAll("gmain", "FakingTask"); buffer = buffer.replaceAll("magisk", "FakingTask"); buffer = buffer.replaceAll(".magisk", "FakingTask"); buffer = buffer.replaceAll("/sbin/.magisk", "FakingTask"); buffer = buffer.replaceAll("libriru", "FakingTask"); buffer = buffer.replaceAll("xposed", "FakingTask"); buffer = buffer.replaceAll("pool-spawner", "FakingTask"); buffer = buffer.replaceAll("gdbus", "FakingTask"); TaskFile.write(buffer); } var filename2 = Memory.allocUtf8String(FakeTask); return open(filename2, flag); } if (ch.indexOf("/proc/") >= 0 && ch.indexOf("mounts") >= 0) { console.log("open : ", pathname.readCString()) while (parseInt(read(FD, MountBuffer, 512)) !== 0) { var MNTBuffer = MountBuffer.readCString(); MNTBuffer = MNTBuffer.replaceAll("magisk", "StaySafeStayHappy"); MNTBuffer = MNTBuffer.replaceAll("/sbin/.magisk", "StaySafeStayHappy"); MNTBuffer = MNTBuffer.replaceAll("libriru", "StaySafeStayHappy"); MNTBuffer = MNTBuffer.replaceAll("xposed", "StaySafeStayHappy"); MNTBuffer = MNTBuffer.replaceAll("mirror", "StaySafeStayHappy"); MNTBuffer = MNTBuffer.replaceAll("system_root", "StaySafeStayHappy"); MNTBuffer = MNTBuffer.replaceAll("xposed", "StaySafeStayHappy") FMountFile.write(MNTBuffer); } var mountname = Memory.allocUtf8String(FakeMounts); return open(mountname, flag); }
if (ch.indexOf("/proc") >= 0 && ch.indexOf("exe") >= 0) { console.log("open : ", pathname.readCString()) while (parseInt(read(FD, ExEBuffer, 512)) !== 0) { var buffer = ExEBuffer.readCString(); buffer = buffer.replaceAll("frida-agent-64.so", "StaySafeStayHappy"); buffer = buffer.replaceAll("frida-agent-32.so", "StaySafeStayHappy"); buffer = buffer.replaceAll("re.frida.server", "StaySafeStayHappy"); buffer = buffer.replaceAll("frida-helper-32", "StaySafeStayHappy"); buffer = buffer.replaceAll("frida-helper", "StaySafeStayHappy"); buffer = buffer.replaceAll("pool-frida", "StaySafeStayHappy"); buffer = buffer.replaceAll("frida", "StaySafeStayHappy"); buffer = buffer.replaceAll("/data/local/tmp", "/data"); buffer = buffer.replaceAll("frida-server", "StaySafeStayHappy"); buffer = buffer.replaceAll("linjector", "StaySafeStayHappy"); buffer = buffer.replaceAll("gum-js-loop", "StaySafeStayHappy"); buffer = buffer.replaceAll("frida_agent_main", "StaySafeStayHappy"); buffer = buffer.replaceAll("gmain", "StaySafeStayHappy"); buffer = buffer.replaceAll("frida-agent", "StaySafeStayHappy"); ExEFile.write(buffer); } var filename3 = Memory.allocUtf8String(FakeExE); return open(filename3, flag); } return FD; }, 'int', ['pointer', 'int'])) var fgetsPtr = Module.findExportByName("libc.so", "fgets"); var fgets = new NativeFunction(fgetsPtr, 'pointer', ['pointer', 'int', 'pointer']); Interceptor.replace(fgetsPtr, new NativeCallback(function(buf, size, fp) { var buffer = buf.readCString(); buffer = buffer.replaceAll("re.frida.server", "FakingGets"); buffer = buffer.replaceAll("frida-agent-64.so", "FakingGets"); buffer = buffer.replaceAll("rida-agent-64.so", "FakingGets"); buffer = buffer.replaceAll("agent-64.so", "FakingGets"); buffer = buffer.replaceAll("frida-agent-32.so", "FakingGets"); buffer = buffer.replaceAll("frida-helper-32", "FakingGets"); buffer = buffer.replaceAll("frida-helper", "FakingGets"); buffer = buffer.replaceAll("frida-agent", "FakingGets"); buffer = buffer.replaceAll("pool-frida", "FakingGets"); buffer = buffer.replaceAll("frida", "FakingGets"); buffer = buffer.replaceAll("/data/local/tmp", "/data"); buffer = buffer.replaceAll("server", "FakingGets"); buffer = buffer.replaceAll("frida-server", "FakingGets"); buffer = buffer.replaceAll("linjector", "FakingGets"); buffer = buffer.replaceAll("gum-js-loop", "FakingGets"); buffer = buffer.replaceAll("frida_agent_main", "FakingGets"); buffer = buffer.replaceAll("gmain", "FakingGets"); buffer = buffer.replaceAll("magisk", "FakingGets"); buffer = buffer.replaceAll(".magisk", "FakingGets"); buffer = buffer.replaceAll("/sbin/.magisk", "FakingGets"); buffer = buffer.replaceAll("libriru", "FakingGets"); buffer = buffer.replaceAll("xposed", "FakingGets"); buf.writeUtf8String(buffer); return fgets(buf, size, fp); }, 'pointer', ['pointer', 'int', 'pointer']))
var readlinkPtr = Module.findExportByName("libc.so", "readlink"); var readlink = new NativeFunction(readlinkPtr, 'int', ['pointer', 'pointer', 'int']); Interceptor.replace(readlinkPtr, new NativeCallback(function(pathname, buffer, bufsize) { var retval = readlink(pathname, buffer, bufsize); if(buffer.readCString().indexOf("frida")!==-1 || buffer.readCString().indexOf("gum-js-loop")!==-1|| buffer.readCString().indexOf("gmain")!==-1 || buffer.readCString().indexOf("linjector")!==-1 || buffer.readCString().indexOf("/data/local/tmp")!==-1 || buffer.readCString().indexOf("pool-frida")!==-1 || buffer.readCString().indexOf("frida_agent_main")!==-1 || buffer.readCString().indexOf("re.frida.server")!==-1 || buffer.readCString().indexOf("frida-agent")!==-1 || buffer.readCString().indexOf("frida-agent-64.so")!==-1 || buffer.readCString().indexOf("frida-agent-32.so")!==-1 || buffer.readCString().indexOf("frida-helper-32.so")!==-1 || buffer.readCString().indexOf("frida-helper-64.so")!==-1 ){ console.log(buffer.readCString(), "Check in readlink"); buffer.writeUtf8String("/system/framework/services.jar"); return readlink(pathname, buffer, bufsize); }
return retval; }, 'int', ['pointer', 'pointer', 'int']))
var readlinkatPtr = Module.findExportByName("libc.so", "readlinkat"); var readlinkat = new NativeFunction(readlinkatPtr, 'int', ['int', 'pointer', 'pointer', 'int']); Interceptor.replace(readlinkatPtr, new NativeCallback(function(dirfd, pathname, buffer, bufsize) { var retval = readlinkat(dirfd, pathname, buffer, bufsize); if(buffer.readCString().indexOf("frida")!==-1 || buffer.readCString().indexOf("gum-js-loop")!==-1|| buffer.readCString().indexOf("gmain")!==-1 || buffer.readCString().indexOf("linjector")!==-1 || buffer.readCString().indexOf("/data/local/tmp")!==-1 || buffer.readCString().indexOf("pool-frida")!==-1 || buffer.readCString().indexOf("frida_agent_main")!==-1 || buffer.readCString().indexOf("re.frida.server")!==-1 || buffer.readCString().indexOf("frida-agent")!==-1 || buffer.readCString().indexOf("frida-agent-64.so")!==-1 || buffer.readCString().indexOf("frida-agent-32.so")!==-1 || buffer.readCString().indexOf("frida-helper-32.so")!==-1 || buffer.readCString().indexOf("frida-helper-64.so")!==-1 ){ console.log(buffer.readCString(), "Check in readlinkat"); buffer.writeUtf8String("/system/framework/services.jar"); return readlinkat(dirfd, pathname, buffer, bufsize); } return retval; }, 'int', ['int', 'pointer', 'pointer', 'int']))
Interceptor.attach(Module.findExportByName(null, "strstr"),{ onEnter: function(args){ this.frida = false; var str1 = args[0].readCString(); var str2 = args[1].readCString(); if(str1.indexOf("frida")!==-1 || str2.indexOf("frida")!==-1 || str1.indexOf("gum-js-loop")!==-1 || str2.indexOf("gum-js-loop")!==-1 || str1.indexOf("gmain")!==-1 || str2.indexOf("gmain")!==-1 || str1.indexOf("linjector")!==-1 || str2.indexOf("linjector")!==-1 || str1.indexOf("/data/local/tmp")!==-1 || str2.indexOf("/data/local/tmp")!==-1 || str1.indexOf("pool-frida")!==-1 || str2.indexOf("pool-frida")!==-1 || str1.indexOf("frida_agent_main")!==-1 || str2.indexOf("frida_agent_main")!==-1 || str1.indexOf("re.frida.server")!==-1 || str2.indexOf("re.frida.server")!==-1 || str1.indexOf("frida-agent")!==-1 || str2.indexOf("frida-agent")!==-1 || str1.indexOf("pool-spawner")!==-1 || str2.indexOf("pool-spawner")!==-1 || str1.indexOf("frida-agent-64.so")!==-1 || str2.indexOf("frida-agent-64.so")!==-1 || str1.indexOf("frida-agent-32.so")!==-1 || str2.indexOf("frida-agent-32.so")!==-1 || str1.indexOf("frida-helper-32.so")!==-1 || str2.indexOf("frida-helper-32.so")!==-1 || str1.indexOf("frida-helper-64.so")!==-1 || str2.indexOf("frida-helper-64.so")!==-1 || str1.indexOf("/sbin/.magisk")!==-1 || str2.indexOf("/sbin/.magisk")!==-1 || str1.indexOf("libriru")!==-1 || str2.indexOf("libriru")!==-1 || str1.indexOf("magisk")!==-1 || str2.indexOf("magisk")!==-1 ){ this.frida = true; console.log("strstr : ",str1,str2); } }, onLeave: function(retval){ if (this.frida) { retval.replace(ptr("0x0")); } } });
|