mirror of
				https://github.com/GTFOBins/GTFOBins.github.io
				synced 2025-11-04 02:38:43 +01:00 
			
		
		
		
	Make cupsfilter more general
This commit is contained in:
		@@ -1,21 +1,15 @@
 | 
			
		||||
---
 | 
			
		||||
description: |
 | 
			
		||||
    cupsfilter - convert a file to another format using cups filters (deprecated).
 | 
			
		||||
    By default, it converts the file into a PDF ( default output mime: application/pdf ).
 | 
			
		||||
    Available options:
 | 
			
		||||
        -i "mime/type"  # input mime/type
 | 
			
		||||
        -m "mime/type"  # output mime/type
 | 
			
		||||
functions:
 | 
			
		||||
  file-read:
 | 
			
		||||
    - code: |
 | 
			
		||||
        LFILE=file_to_read
 | 
			
		||||
        cupsfilter $LFILE
 | 
			
		||||
        cupsfilter -i application/octet-stream -m application/octet-stream $LFILE
 | 
			
		||||
  sudo:
 | 
			
		||||
    - code: |
 | 
			
		||||
        LFILE=file_to_read
 | 
			
		||||
        sudo cupsfilter $LFILE
 | 
			
		||||
        sudo cupsfilter -i application/octet-stream -m application/octet-stream $LFILE
 | 
			
		||||
  suid:
 | 
			
		||||
    - code: |
 | 
			
		||||
        LFILE=file_to_read
 | 
			
		||||
        ./cupsfilter $LFILE
 | 
			
		||||
        ./cupsfilter -i application/octet-stream -m application/octet-stream $LFILE
 | 
			
		||||
---
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user