Update web client example to the current HostSession API

This commit is contained in:
Ole André Vadla Ravnås committed 2021-07-06 21:10:37 +02:00
1 parent d4a40b3d74
commit 33ab29cedf
2 files changed
+17199 -1608

No files matched your search

+17198 -1607
View File
File diff suppressed because it is too large. Load diff
@@ -20,7 +20,7 @@ async function start() {
const hostSessionObj = await bus.getProxyObject('re.frida.HostSession15', '/re/frida/HostSession');
const hostSession = hostSessionObj.getInterface('re.frida.HostSession15');
const processes: HostProcessInfo[] = await hostSession.EnumerateProcesses();
const processes: HostProcessInfo[] = await hostSession.EnumerateProcesses({});
console.log('Got processes:', processes);
const gadget = processes.find(([, name]) => name === 'Gadget');