Skip to content

pdf2john: Treat PDF Permissions value as a signed 32-bit integer#5993

Open
iCMDdev wants to merge 2 commits into
openwall:bleeding-jumbofrom
iCMDdev:bleeding-jumbo
Open

pdf2john: Treat PDF Permissions value as a signed 32-bit integer#5993
iCMDdev wants to merge 2 commits into
openwall:bleeding-jumbofrom
iCMDdev:bleeding-jumbo

Conversation

@iCMDdev
Copy link
Copy Markdown

@iCMDdev iCMDdev commented May 31, 2026

Fixes #5992.

The problem is that pdf2john.pl and pdf2john.py tools print the PDF /P value as-is, without converting it to a signed integer. These proposed fixes print the permissions value as a signed integer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PDF Permissions value is treated as an unsigned integer in PDF2John

1 participant