GitBook: No commit message

This commit is contained in:
CPol 2021-10-10 15:13:08 +00:00 committed by gitbook-bot
parent e3aca7c1fe
commit 112f1c1ab2
No known key found for this signature in database
GPG key ID: 07D2180C7B12D0FF

View file

@ -12,7 +12,9 @@ Each service is defined by the **objects **and **interfaces** that it exposes. W
I used two tools to communicate with the D-Bus interface: CLI tool named **gdbus**, which allows to easily call D-Bus exposed methods in scripts, and [**D-Feet**](https://wiki.gnome.org/Apps/DFeet), a Python based GUI tool that helps to enumerate the available services on each bus and to see which objects each service contains.
```bash
sudo apt-get install d-feet
```
![](https://unit42.paloaltonetworks.com/wp-content/uploads/2019/07/word-image-21.png)
@ -296,7 +298,12 @@ _Note that in `htb.oouch.Block.Block`, the first part (`htb.oouch.Block`) refere
### C code
{% code title="d-bus_server.c" %}
```c
//gcc d-bus_server.c -o dbus_server pkg-config --cflags --libs libsystemd
//sudo apt install pkgconf
//sudo apt install build-essential
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -432,3 +439,4 @@ finish:
return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
}
```
{% endcode %}