mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2026-03-07 06:31:33 +01:00
20 lines
560 B
Plaintext
20 lines
560 B
Plaintext
---
|
|
functions:
|
|
inherit:
|
|
- code: |-
|
|
dstat --xxx
|
|
comment: |-
|
|
`dstat` allows you to run arbitrary Python scripts loaded as "external plugins" if they are located in one of the directories, stated in the `dstat` man page under "FILES":
|
|
|
|
- `~/.dstat/`
|
|
- `(path of binary)/plugins/`
|
|
- `/usr/share/dstat/`
|
|
- `/usr/local/share/dstat/`
|
|
|
|
Pick the one that you can write into. The plugin named `xxx` file name must be defined in the `dstat_xxx.py` file.
|
|
contexts:
|
|
sudo:
|
|
unprivileged:
|
|
from: python
|
|
...
|