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 enough user ratingsTotal: 146 All time: 9,121 This week: 571Up
Version License PHP version Categories
password-detect 1.0GNU General Publi...5PHP 5, Security
Description 

Author

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: 411 Up4 in Hungary Hungary Up
Innovation award
Innovation award
Nominee: 9x

Winner: 1x

Example

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

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

## ATTACK WITH BRUTE FORCE
#$pd->guessWithBruteForce('admin');

## the post request response, if the login success what is the part of the result
#$pd->setSuccessLoginTest('');

## ATTACK WITH DICTIONARY
#$pd->guessWithDictionary('dictionary.csv');


Details

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 readme.md 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  
 100%
Total:146
This week:0
All time:9,121
This week:571Up