mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-11-04 10:48:50 +01:00 
			
		
		
		
	Fix nano execution functions as they require a file to work on
This commit is contained in:
		@@ -7,7 +7,7 @@ functions:
 | 
			
		||||
        TF=$(mktemp)
 | 
			
		||||
        echo "$COMMAND" > $TF
 | 
			
		||||
        chmod +x $TF
 | 
			
		||||
        nano -s $TF
 | 
			
		||||
        nano -s $TF /etc/hosts
 | 
			
		||||
        ^T
 | 
			
		||||
  sudo-enabled:
 | 
			
		||||
    - description: After running this exit the editor to see the command output.
 | 
			
		||||
@@ -16,7 +16,7 @@ functions:
 | 
			
		||||
        TF=$(mktemp)
 | 
			
		||||
        echo "$COMMAND" > $TF
 | 
			
		||||
        chmod +x $TF
 | 
			
		||||
        sudo nano -s $TF
 | 
			
		||||
        sudo nano -s $TF /etc/hosts
 | 
			
		||||
        ^T
 | 
			
		||||
  suid-enabled:
 | 
			
		||||
    - description: After running this exit the editor to see the command output.
 | 
			
		||||
@@ -25,7 +25,7 @@ functions:
 | 
			
		||||
        TF=$(mktemp)
 | 
			
		||||
        echo $'#!/bin/sh -p\n'"$COMMAND" > $TF
 | 
			
		||||
        chmod +x $TF
 | 
			
		||||
        ./nano -s $TF
 | 
			
		||||
        ./nano -s $TF /etc/hosts
 | 
			
		||||
        ^T
 | 
			
		||||
  file-read:
 | 
			
		||||
    - code: |
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user