Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cracking works with custom-query {0-98} --add-preceding-zeros but not with {0-99} --add-preceding-zeros #56

Open
nzec opened this issue Jan 31, 2025 · 1 comment · May be fixed by #57

Comments

@nzec
Copy link

nzec commented Jan 31, 2025

The following is the encrypted file: enc.pdf with the password 07.

Using the command pdfrip -f enc.pdf custom-query {0-98} --add-preceding-zeros manages to find the password just fine.
But fails when I give the command pdfrip -f enc.pdf custom-query {0-99} --add-preceding-zeros

@nzec
Copy link
Author

nzec commented Feb 1, 2025

I don't know if this is maintained but the issue is that, min_digits is set to the length of size when instead it should be based on the last number in the given range. Since, there can be many ranges separated by commas, min_digits will need to vary for every range.

https://github.com/mufeedvh/pdfrip/blob/main/crates/producer/src/custom_query.rs#L30

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 a pull request may close this issue.

1 participant