frida / frida-website

Frida's website
MIT License
83 stars 194 forks source link

Frida server client communication protocol documentation #188

Closed ajk0x00 closed 4 years ago

ajk0x00 commented 4 years ago

Is there any documentation for understanding frida server client communication protocol? It will be helpful if i can create a script which can communicate directly to frida server.

Thank you

oleavr commented 4 years ago

It's peer-to-peer DBus. All of the heavy lifting is done by the Vala compiler and GLib's GDBus implementation – the Vala compiler generates proxy glue for both client usage and to implement the server side. We only have to annotate the interfaces to be used, such as this one. Cheers!

oleavr commented 4 years ago

See also: https://wiki.gnome.org/Projects/Vala/DBusClientSamples https://wiki.gnome.org/Projects/Vala/DBusServerSample

(Which don't illustrate peer-to-peer DBus, but everything else is the same.)