PHP Classes

PHP Strong Password Validation: Check if password is week against a dictionary

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 144 All time: 9,131 This week: 112Up
Version License PHP version Categories
password-detect 1.0GNU General Publi...5PHP 5, Security


This class can check if password is week against a dictionary.

It can read a list of weak passwords from a CSV file.

The class sends HTTP POST requests to a site with a given URL and determines if it was possible to login on behalf of a given user with any of the passwords read from the weak passwords file.

Picture of Istvan Dobrentei
  Performance   Level  
Name: Istvan Dobrentei <contact>
Classes: 12 packages by
Country: Hungary Hungary
Age: 46
All time rank: 134711 in Hungary Hungary
Week rank: 388 Up5 in Hungary Hungary Up
Innovation award
Innovation award
Nominee: 9x

Winner: 1x


require_once __DIR__ . '/lib/PasswordDetect.php';

$url = 'http://<target url>';
$pd = new PasswordDetect($url);


## the post request response, if the login success what is the part of the result



The class is created for demonstrating purpose and ethical hacking.

Use it for your own responsibility.

  Files folder image Files  
File Role Description
Files folder imagelib (1 file)
Accessible without login Plain text file dictionary.csv Data Auxiliary data
Accessible without login Plain text file Data Read me
Accessible without login Plain text file run.php Example Example script

  Files folder image Files  /  lib  
File Role Description
  Plain text file PasswordDetect.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,131
This week:112Up