Depix : Recovers Passwords From Pixelized Screenshots

Depix is a tool for recovering passwords from pixelized screenshots. This implementation works on pixelized images that were created with a linear box filter.

In this article I cover background information on pixelization and similar research.

Example

python depix.py -p images/testimages/testimage3_pixels.png -s images/searchimages/debruinseq_notepad_Windows10_closeAndSpaced.png -o output.png

Usage

  • 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 (text size, font, color, hsl).
  • Make a screenshot of the sequence. If possible, use the same screenshot tool that was used to create the pixelized image.
  • Run python depix.py -p [pixelated rectangle image] -s [search sequence image] -o output.png

Algorithm

The algorithm uses the fact that the linear box filter processes every block separately. For every block it pixelizes all blocks in the search image to check for direct matches.

For most pixelized images Depix manages to find single-match results. It assumes these are correct. The matches of surrounding multi-match blocks are then compared to be geometrically at the same distance as in the pixelized image. Matches are also treated as correct. This process is repeated a couple of times.

After correct blocks have no more geometrical matches, it will output all correct blocks directly. For multi-match blocks, it outputs the average of all matches.

R K

Recent Posts

OSINT Framework Official Website: Categories, Use Cases and Safer Alternatives

The OSINT Framework official website is one of the easiest places to start open-source intelligence…

5 hours ago

OSINT Framework Website Guide: How to Use OSINTFramework.com Without Getting Lost

The OSINT Framework website is one of the most popular starting points for open-source intelligence…

5 hours ago

Fail2ban Ubuntu Setup: Protect Your Server from Attacks

Internet-facing servers are constantly targeted by bots searching for weak passwords and vulnerable services. A…

5 hours ago

Add Remove Users Ubuntu: Complete User Management Guide

Managing user accounts is one of the most important administrative tasks on any Linux system.…

5 hours ago

Install Slack Ubuntu – Easy Setup Guide for Ubuntu 20.04

Install Slack Ubuntu systems quickly and start collaborating with your team from a powerful communication…

6 hours ago

Install Atom Ubuntu: Easy Setup Guide for Developers

If you're looking for a flexible and customizable code editor, Install Atom Ubuntu is a…

6 hours ago