From 47db2fa431dde746d914dcb816b17e5bab44d547 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Tue, 12 Jan 2021 18:03:09 +0100 Subject: [PATCH] Make cupsfilter more general --- _gtfobins/cupsfilter.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/_gtfobins/cupsfilter.md b/_gtfobins/cupsfilter.md index 78f8c93..b087e7a 100644 --- a/_gtfobins/cupsfilter.md +++ b/_gtfobins/cupsfilter.md @@ -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 ---