mirror of
https://github.com/frida/frida-node.git
synced 2026-11-07 09:35:57 -10:00
17 lines
401 B
TypeScript
17 lines
401 B
TypeScript
import frida from "frida";
|
|
import { inspect } from "util";
|
|
|
|
async function main() {
|
|
const device = await frida.getUsbDevice();
|
|
const application = await device.getFrontmostApplication({ scope: frida.Scope.Full });
|
|
console.log("[*] Frontmost application:", inspect(application, {
|
|
depth: 3,
|
|
colors: true
|
|
}));
|
|
}
|
|
|
|
main()
|
|
.catch(e => {
|
|
console.error(e);
|
|
});
|