mufeedvh / pdfrip

A multi-threaded PDF password cracking utility equipped with commonly encountered password format builders and dictionary attacks.
MIT License
682 stars 77 forks source link

Crash on Windows thread '<unnamed>' panicked #45

Open pavelber opened 1 month ago

pavelber commented 1 month ago

Installed on Windows, just on start I get: 2024-10-23T09:20:28.099Z INFO engine > Starting password cracking job... thread '' panicked at C:\Users\javaa.cargo\registry\src\index.crates.io-6f17d22bba15001f\pdf-0.8.1\src\crypt.rs:290:41: range end index 128 out of range for slice of length 16 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

LennartCode commented 3 weeks ago

+1 can replicate.

Running pdfrip -n 6 -f "file.pdf" default-query --max-length 9 --min-length 6

Returns the somewhat curious message:

           .___ _____       .__
______   __| _// ____\______|__|_____
\____ \ / __ |\   __\\_  __ \  \____ \
|  |_> > /_/ | |  |   |  | \/  |  |_> >
|   __/\____ | |__|   |__|  |__|   __/
|__|        \/                 |__|    2.0.1

 2024-11-07T14:31:30.517Z INFO  engine > Starting password cracking job...
thread 'thread '<unnamed>thread 'thread '<unnamed>thread '' panicked at thread '<unnamed><unnamed><unnamed>C:\Users\USERNAME\.cargo\registry\src\index.crates.io-6f17d22bba15001f\pdf-0.8.1\src\crypt.rs<unnamed>' panicked at ' panicked at ' panicked at ' panicked at ' panicked at :C:\Users\USERNAME\.cargo\registry\src\index.crates.io-6f17d22bba15001f\pdf-0.8.1\src\crypt.rsC:\Users\USERNAME\.cargo\registry\src\index.crates.io-6f17d22bba15001f\pdf-0.8.1\src\crypt.rs290C:\Users\USERNAME\.cargo\registry\src\index.crates.io-6f17d22bba15001f\pdf-0.8.1\src\crypt.rsC:\Users\USERNAME\.cargo\registry\src\index.crates.io-6f17d22bba15001f\pdf-0.8.1\src\crypt.rs::41C:\Users\USERNAME\.cargo\registry\src\index.crates.io-6f17d22bba15001f\pdf-0.8.1\src\crypt.rs::290290::290290::41:
::29041:
range end index 128 out of range for slice of length 16range end index 128 out of range for slice of length 1641::
41

:
41range end index 128 out of range for slice of length 16:
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace