How to use the frida.getLocalDevice function in frida

To help you get started, we’ve selected a few frida examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nowsecure / r2frida / src / host.js View on Github external
function resolveDevice(device) {
  console.error('[+] Using', device, 'target');
  switch (device) {
    case 'usb':
      return frida.getUsbDevice();
    case 'local':
      return frida.getLocalDevice();
    case 'tcp':
      return frida.getRemoteDevice();
      break;
  }
  return function() {
    this.then = function() {
      throw(new Error('invalid device'));
    }
  }
}

frida

Inject JavaScript to explore native apps on Windows, Mac, Linux, iOS and Android

LGPL-2.0 WITH WxWindows-excep…
Latest version published 6 days ago

Package Health Score

68 / 100
Full package analysis