Skip to content

Conversation

@oleavr
Copy link
Contributor

@oleavr oleavr commented Apr 21, 2021

Thanks for this awesome library! ❤️

With these small changes, plus the tiny tweak in #71, I was able to communicate with a Frida server from a web browser:

import dbus from 'dbus-next';
import websocket from 'websocket-stream';

async function start() {
  const ws = websocket(`ws://${location.host}/ws`);
  const bus = dbus.peerBus(ws, {
    authMethods: ['ANONYMOUS'],
  });

  const hostSessionObj = await bus.getProxyObject('re.frida.HostSession14', '/re/frida/HostSession');
  const hostSession = hostSessionObj.getInterface('re.frida.HostSession14');

  const processes = await hostSession.EnumerateProcesses();
  console.log('Got processes:', processes);
}

start().catch(e => {
  console.error(e);
});

(I'm basically using a dead simple gateway that proxies the WebSocket to a running frida-server.)

Screenshot

@acrisci
Copy link
Member

acrisci commented May 20, 2021

Is it possible to add tests for this?

@oleavr
Copy link
Contributor Author

oleavr commented Jul 9, 2021

@acrisci Will do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants