Skip to content

Add support for peer-to-peer DBus#72

Open
oleavr wants to merge 1 commit into
dbusjs:masterfrom
frida:feature/p2p
Open

Add support for peer-to-peer DBus#72
oleavr wants to merge 1 commit into
dbusjs:masterfrom
frida:feature/p2p

Conversation

@oleavr

@oleavr oleavr commented Apr 21, 2021

Copy link
Copy Markdown
Contributor

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

acrisci commented May 20, 2021

Copy link
Copy Markdown
Member

Is it possible to add tests for this?

@oleavr

oleavr commented Jul 9, 2021

Copy link
Copy Markdown
Contributor Author

@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