PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 147 All time: 9,123 This week: 146Up
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: 47
All time rank: 134511 in Hungary Hungary
Week rank: 170 Up3 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 (4)  
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 (4)  /  lib  
File Role Description
  Plain text file PasswordDetect.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:147
This week:0
All time:9,123
This week:146Up