base on A multi-threaded PDF password cracking utility equipped with commonly encountered password format builders and dictionary attacks. <div align="center"> <h1><code>PDFRip</code></h1> <p><strong>A multi-threaded PDF password cracking utility equipped with commonly encountered password format builders and dictionary attacks.</strong></p> </div> ## 📖 Table of Contents - [Introduction](#%E2%84%B9%EF%B8%8F-introduction) - [Features](#features) - [Installation](#installation) - [Usage](#usage) - [Contribution](#contribution) - [License](#license) ## â„šī¸ Introduction **pdfrip** is a fast multithreaded PDF password cracking utility written in Rust with support for wordlist-based dictionary attacks, date, number range, and alphanumeric brute-forcing, and a custom query builder for password formats. <div align="center"> <table> <tr> <td><img height="300" width="400" src="screenshots/pdfrip-usage.gif"></td> </tr> </table> </div> ## Features - **Fast:** Performs about 50k-100k+ passwords per second utilizing full CPU cores. - **Custom Query Builder:** You can write your own queries like `STRING{69-420}` which would generate and use a wordlist with the full number range. - **Date Bruteforce:** You can pass in a year which would bruteforce all 365 days of the year in `DDMMYYYY` format which is a pretty commonly used password format for PDFs. - **Number Bruteforce:** Just give a number range like `5000-100000` and it would bruteforce with the whole range. - **Default Bruteforce:** Specify a maximum and optionally a minimum length for the password search and all passwords of length 4 up to the specified maximum consisting of letters and numbers (`a-zA-Z0-9`) will be tried ## Installation ### Download If you don't have cargo or rust installed, you can download a binary from the [release section](https://github.com/mufeedvh/pdfrip/releases/) and execute it. ### Install with `cargo`: $ cargo install --git https://github.com/mufeedvh/pdfrip.git [Install Rust/Cargo](https://rust-lang.org/tools/install) ## Build From Source **Prerequisites:** * [Git](https://git-scm.org/downloads) * [Rust](https://rust-lang.org/tools/install) * Cargo (Automatically installed when installing Rust) * A C linker (Only for Linux, generally comes pre-installed) ``` $ git clone https://github.com/mufeedvh/pdfrip.git $ cd pdfrip/ $ cargo build --release ``` The first command clones this repository into your local machine and the last two commands enters the directory and builds the source in release mode. ## Usage Get a list of all the arguments: $ pdfrip --help Start a dictionary attack with a wordlist: $ pdfrip -f encrypted.pdf wordlist rockyou.txt Bruteforce number ranges for the password: $ pdfrip -f encrypted.pdf range 1000 9999 Bruteforce all dates in a span (inclusive in both ends) of years for the password in `DDMMYYYY` format: $ pdfrip -f encrypted.pdf date 1900 2000 Bruteforce arbitrary strings of length 4-8: $ pdfrip -f encrypted.pdf default-query --max-length 8 Bruteforce arbitrary strings of length 3: $ pdfrip -f encrypted.pdf default-query --max-length 3 --min-length 3 Build a custom query to generate a wordlist: (useful when you know the password format) $ pdfrip -f encrypted.pdf custom-query ALICE{1000-9999} $ pdfrip -f encrypted.pdf custom-query DOC-ID{0-99}-FILE Enable preceding zeros for custom queries: (which would make `{10-5000}` to `{0010-5000}` matching the end range's digits) $ pdfrip -f encrypted.pdf custom-query ALICE{10-9999} --add-preceding-zeros ## Contribution Ways to contribute: - Suggest a feature - Report a bug - Fix something and open a pull request - Help me document the code - Spread the word ## License Licensed under the MIT License, see <a href="https://github.com/mufeedvh/pdfrip/blob/master/LICENSE">LICENSE</a> for more information. ", Assign "at most 3 tags" to the expected json: {"id":"13501","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"