mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-10-31 08:48:54 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			295 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			295 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| functions:
 | |
|   sudo:
 | |
|     - description: The command execution is blind (displayed on the virtual console), but it is possible to save the output on a temporary file.
 | |
|       code: |
 | |
|         COMMAND=id
 | |
|         TF=$(mktemp -u)
 | |
|         sudo openvt -- sh -c "$COMMAND >$TF 2>&1"
 | |
|         cat $TF
 | |
| ---
 |