Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for peer-to-peer DBus #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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