diff --git a/_gtfobins/openvt.md b/_gtfobins/openvt.md new file mode 100644 index 0000000..2d63a81 --- /dev/null +++ b/_gtfobins/openvt.md @@ -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 +---