1.3.2 • Published 8 years ago
frida-get-ifaddrs v1.3.2
frida-get-ifaddrs
Get the interface addresses of a connected phone through frida.
Currently shells out to adb
for android until a native solution exists.
Example
var frida = require('frida');
var getifaddrs = require('frida-get-ifaddrs');
frida.getUsbDevice()
.then(function(device){
return getifaddrs(device);
})
.then(console.log)
.catch(function(err){
console.error(err.stack);
});
With a phone connected:
$ node example.js
[ { name: 'en0',
address: 'fe80:0000:0000:0000:1049:509f:bf46:f47c' },
{ name: 'en0', address: '192.168.1.18' },
{ name: 'awdl0',
address: 'fe80:0000:0000:0000:b474:84ff:fe03:c521' } ]
CLI
$ npm install -g frida-get-ifaddrs
$ frida-ifaddrs
en0 fe80:0000:0000:0000:0809:2cd8:eaf0:affd
en0 192.168.1.18
awdl0 fe80:0000:0000:0000:1023:3aff:fe56:7b48
$ frida-ifaddrs wifi
192.168.1.18
API
getifaddrs(device, opts)
Options:
wifi
: If true, return only wifi addresses (most likely only one)
Kudos
Initial implementation by @oleavr.
License
MIT