mufeedvh / pdfrip

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

Fix termination issue with `wordlist` argument. #6

Closed zasekle closed 1 year ago

zasekle commented 1 year ago

The application did not terminate upon consuming the entire wordlist due to the behavior of read_line() at EOF (it returns 0). This was resolved by enhancing the match statement in the next() method of the LineProducer. As a consequence, the return type of the next() function in the Producer trait was adjusted.

mufeedvh commented 1 year ago

Thank you! Merging this right away. :raised_hands: