Hello Everyone, I’m KDT and today we are gonna be seeing a new and powerful tool in brief. It is none other than Depix! and the main functionality of this tool is to crack the Censored Text or Password.
Depix is a tool for recovering passwords from pixelized screenshots.
This implementation works on pixelized images that were created with a linear box filter. There is also an article that explains in detail this tool and the background processes going on. If you to check it out, Click Here
So instead of just speaking about it, let’s try it.
First, go to the GitHub Repo page by Clicking Here and you will be automatically redirected there. Here’s a screenshot of that page.
Now, just click on the Code button highlighted in green and select either Clone or Download Zip. I’m just gonna download it and save it in my Desktop. Now extract the zip file and you will get a folder named Depix Main.
Also, you need to install the required tools and libraries it needs for it to work.
For that, open CMD or Powershell and navigate into the Depix-main SubFolder present inside the Depix-main folder. Now, to install the required dependencies, run the following code in CMD :
python -m pip install -r requirements.txt
After the installation is finished, the next step is to run Depix and use it with some samples given in the Depix-main folder.
EXECUTING THE PROGRAM
Run the following code into your CMD to run the program :
python depix.py -p /path/to/your/input/image.png -s images/searchimages/debruinseq_notepad_Windows10_closeAndSpaced.png -o /path/to/your/output.png
* It is reccomended that you use a folder in the `images/searchimages/` directory for the `-s` flag in order to achieve best results. * `-p` and `-o` (Input and output, respectively) can be either relative paths (to the repo's folder) or absolute to your drive. (`/` or `C:\`)
Let me explain, it basically says that we should specify the path of the search image, input and output. The search image is the one that it equates with the pixelized image to produce the desired results
Example Usage :
- Depixelize example image created with Notepad and pixelized with Greenshot. Greenshot averages by averaging the gamma-encoded 0-255 values, which is Depix’s default mode.
python3 depix.py -p images/testimages/testimage3_pixels.png -s images/searchimages/debruinseq_notepad_Windows10_closeAndSpaced.png
- Depixelize example image created with Sublime and pixelized with Gimp, where averaging is done in linear sRGB. The backgroundcolor option filters out the background color of the editor.
python3 depix.py -p images/testimages/sublime_screenshot_pixels_gimp.png -s images/searchimages/debruin_sublime_Linux_small.png --backgroundcolor 40,41,35 --averagetype linear
Source : Depix GitHub Repository Page
It will be just overwhelming if you see it the first time, but soon you will get the hang of it. If you’re a complete beginner, just try out the first few steps in the Executing The Program Subheading and if you still have a doubt, don’t hesitate to ask in the comment section below.
MAKING YOUR SEARCH IMAGE
- Cut out the pixelated blocks from the screenshot as a single rectangle.
- Paste a De Bruijn sequence with expected characters in an editor with the same font settings as your input image (Same text size, similar font, same colours).
- Make a screenshot of the sequence.
- Move that screenshot into a folder like
- Run Depix with the
-sflag set to the location of this screenshot.
- NOTE: This is for advanced users who want to explore the complete tool
Source : Depix GitHub Repository Page
Depix is still in development and it’s not a full-fledged release. So, there might be many bugs and limitations that will soon be resolved in future versions of Depix.
Also, I would like to inform you that this article is for Educational Purposes only and I do not mean liable for any of your actions. So, use the tool wisely for only learning purposes. Thank You For Reading!