How To Install pdfcrack on Ubuntu 18.04
Introduction
In this tutorial we learn how to install pdfcrack
on Ubuntu 18.04.
What is pdfcrack
pdfcrack is:
PDFCrack is a simple tool for recovering passwords from pdf-documents.
It should be able to handle all pdfs that uses the standard security handler but the pdf-parsing routines are a bit of a quick hack so you might stumble across some pdfs where the parser needs to be fixed to handle.
The main PDFCrack features are:
- Supports the standard security handler (revision 2, 3 and 4) on all known PDF-versions.
- Supports cracking both owner and userpasswords.
- Both wordlists and bruteforcing the password are supported.
- Simple permutations (currently only trying first character as Upper Case).
- Save and load a running job.
- Simple benchmarking.
- Optimised search for owner-password when user-password is known.
This program can be used in forensics investigations or similar activities, to legal password crack.
There are three methods to install pdfcrack
on Ubuntu 18.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install pdfcrack Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install pdfcrack
using apt-get
by running the following command:
sudo apt-get -y install pdfcrack
Install pdfcrack Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install pdfcrack
using apt
by running the following command:
sudo apt -y install pdfcrack
Install pdfcrack Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install pdfcrack
using aptitude
by running the following command:
sudo aptitude -y install pdfcrack
How To Uninstall pdfcrack on Ubuntu 18.04
To uninstall only the pdfcrack
package we can use the following command:
sudo apt-get remove pdfcrack
Uninstall pdfcrack And Its Dependencies
To uninstall pdfcrack
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove pdfcrack
Remove pdfcrack Configurations and Data
To remove pdfcrack
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge pdfcrack
Remove pdfcrack configuration, data, and all of its dependencies
We can use the following command to remove pdfcrack
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge pdfcrack
References
Summary
In this tutorial we learn how to install pdfcrack
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.