mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-15 01:17:36 +00:00
GitBook: No commit message
This commit is contained in:
parent
e3aca7c1fe
commit
112f1c1ab2
1 changed files with 9 additions and 1 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue