Comments (3)
Yup, this is a problem with newer PDF formats which is quite annoying. I hoped this would have been updated by now but it hasn't.
from pdfrip.
This has been implemented in v2.0.0. Thanks for opening this issue! 🙌
from pdfrip.
I did a bit of reading to confirm this.
Reading crypt.rs from "pdf" crate gives me the following snippets of code:
pub enum CryptMethod {
None,
V2,
AESV2,
AESV3,
}
which appears to be used internally to that crate to represent how the PDF file has been encrypted.
Looking at it's usage we see:
match () { // snipped
CryptMethod::AESV3 => {
if data.len() < 16 {
return Err(PdfError::DecryptionFailure);
}
let (iv, ciphertext) = data.split_at_mut(16);
let cipher =
t!(Aes256CbcDec::new_from_slices(self.key(), iv).map_err(|_| PdfError::DecryptionFailure));
Ok(t!(cipher
.decrypt_padded_mut::<Pkcs7>(ciphertext)
.map_err(|_| PdfError::DecryptionFailure)))
}
}
where the keyword is Aes256CbcDec
. Reading this bit of code I make the assumption this issue is properly resolved. Then again, I'm too lazy to verify this by testing
from pdfrip.
Related Issues (20)
- Feature request: resumable jobs HOT 3
- Implement a PDFRip GUI App HOT 6
- Password of '123B' was not cracked by default query. HOT 1
- Crash resulting from malloc error HOT 5
- Password of '1234' and 'q123' and was not found by default query HOT 2
- Feature request: brute-force range options
- Split PDFRip into multiple crates
- Rewrite PDFRip to take an Async approach HOT 1
- Cannot run custom-query without any integer ranges.
- Simple password not discovered using default-query (similar issue already reported by someone else) HOT 1
- Digital password didn't find by range but by default-query HOT 2
- wordlist crack dosent work HOT 8
- Says success but not showing password
- wanted new feature
- Allow dd.mm.yyyy date format and others
- Add Regex expressions to Custom Queries
- Feature request, password contains word HOT 1
- custom-query help
- 100%, ETA 0s, but it continues going higher HOT 1
- Infinite tries with default-query --max-length command
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdfrip.