katana.units.pdf.pdfinfo — pdfinfo¶
PDFInfo
This unit checks the PDF information of a given target, using the
pdfinfo command-line tool. You can optionally pass in arguments,
user_password and owner_password to use with the utility.
The syntax is:
pdfinfo <target_path> -upw <user_password> -opw <owner_password>
The unit inherits from katana.unit.FileUnit to ensure the target
is a PDF file.
-
class
katana.units.pdf.pdfinfo.Unit(*args, **kwargs) Bases:
katana.unit.FileUnit-
BLOCKED_GROUPS= ['pdf'] PDFs shouldn’t come out of this. So no reason to look.
-
DEPENDENCIES= ['pdfinfo'] Required depenencies for this unit “pdfinfo”
-
GROUPS= ['pdf'] These are “tags” for a unit. Considering it is a pdf unit, “pdf” is included.
-
PRIORITY= 60 Priority works with 0 being the highest priority, and 100 being the lowest priority. 50 is the default priorty. This unit has a priority of 60.
-
RECURSE_SELF= False Again no PDF from this. So recursion is silly.
-
evaluate(case: Any) → None Evaluate the target. Run
pdfinfoon the target and recurse on any new found information.Parameters: case – A case returned by enumerate. For this unit, theenumeratefunction is not used.Returns: None. This function should not return any data.
-