Advertisement
Mr_hEx

disable to load SO file to bypass frida detection

Mar 26th, 2024 (edited)
533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // HackTheBox challenge mobile => Waiting
  2. // Telegram : @HTB0X
  3.  
  4. Java.perform(function () {
  5.     var System = Java.use('java.lang.System');
  6.     System.loadLibrary.overload('java.lang.String').implementation = function (library) {
  7.         console.log('[*] LoadLibrary call: ' + library);
  8.         if (library === 'native-lib') {
  9.             console.log('[+] bypass loading of '+ library);
  10.         } else {
  11.             this.loadLibrary(library);
  12.         }
  13.     };
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement