mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-11-04 02:38:43 +01:00 
			
		
		
		
	Add file
This commit is contained in:
		
							
								
								
									
										21
									
								
								_gtfobins/file.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								_gtfobins/file.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
---
 | 
			
		||||
description: |
 | 
			
		||||
  Each line is corrupted by a prefix string and wrapped inside quotes, so this may not be suitable for binary files.
 | 
			
		||||
 | 
			
		||||
  If a line in the target file begins with a `#`, it will not be printed as these lines are parsed as comments.
 | 
			
		||||
 | 
			
		||||
  It can also be provided with a directory and will read each file in the directory.
 | 
			
		||||
functions:
 | 
			
		||||
  file-read:
 | 
			
		||||
    - code: |
 | 
			
		||||
        LFILE=file_to_read
 | 
			
		||||
        file -m $LFILE
 | 
			
		||||
  suid:
 | 
			
		||||
    - code: |
 | 
			
		||||
        LFILE=file_to_read
 | 
			
		||||
        ./file -m $LFILE
 | 
			
		||||
  sudo:
 | 
			
		||||
    - code: |
 | 
			
		||||
        LFILE=file_to_read
 | 
			
		||||
        sudo file -m $LFILE
 | 
			
		||||
---
 | 
			
		||||
		Reference in New Issue
	
	Block a user