Autor Tema: Brute Force Hash Password - Dekripter za MD5  (Pročitano 3850 puta)

0 Članovi i 1 gost pregledaju ovu temu.

Van mreže Luka

  • Dežurna Budala
  • Administrator
  • Starosedelac
  • *****
  • Poruke: 1134
  • Pol: Muškarac
    • Pogledaj profil
Brute Force Hash Password - Dekripter za MD5
« poslato: April 26, 2011, 03:20:43 posle podne »
<?php
/*
 * Thanks to Robert Green for this script he wrote in python
 * http://www.rbgrn.net/blog/2007/09/how-to-write-a-brute-force-password-cracker.html
 * I took what we wrote and ported this to PHP
 *
 * This script was written for PHP 5, but should work with
 * PHP 4 if the hash() function is replaced with md5() or something else
 */
 
#########################################################
/*                   Configuration                     */
 
// this is the hash we are trying to crack
define('HASH''83227a721a3363d2c78381664c78657f');
 
// algorithm of hash
// see http://php.net/hash_algos for available algorithms
define('HASH_ALGO''md5');
 
// max length of password to try
define('PASSWORD_MAX_LENGTH'5);
 
 
// available characters to try for password
// uncomment additional charsets for more complex passwords
$charset 'abcdefghijklmnopqrstuvwxyz';
//$charset = '0123456789';
//$charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
//$charset = '~`!@#$%^&*()-_\/\'";:,.+=<>? ';
#########################################################
$charset_length strlen($charset);
 
function 
check($password)
{  
    if (
hash(HASH_ALGO$password) == HASH) {
        echo 
'FOUND MATCH, password: '.$password."\r\n";
        exit;
    }
}
 
 
function 
recurse($width$position$base_string)
{
    global 
$charset$charset_length;
     
    for (
$i 0$i $charset_length; ++$i) {
        if (
$position  $width 1) {
            
recurse($width$position 1$base_string $charset[$i]);
        }
        
check($base_string $charset[$i]);
    }
}
 
echo 
'target hash: '.HASH."\r\n";
recurse(PASSWORD_MAX_LENGTH0'');
 
echo 
"Execution complete, no password found\r\n";
 
 
?>


Problem je u tome sto  skripta zahteva da se u PHP.INI fajlu poveca vrednost akcije sa 30 na 120 pa ce raditi ispravno.U suprtnom nece desifrovati md5 kodove ciji je prevod veci od 4 znaka!

Ja sam to uradio i savrseno radi.
  www.pegazhosting.com 
█  Web Hosting | Reseller | Registracija domena

Van mreže lanmi

  • Učenik
  • **
  • Poruke: 65
  • Pol: Muškarac
    • Pogledaj profil
Odg: Brute Force Hash Password - dekripter za md5
« Odgovor #1 poslato: Septembar 14, 2011, 11:26:09 pre podne »
Kada si napisao kod u kom obliku ga sacuvao???

Van mreže Luka

  • Dežurna Budala
  • Administrator
  • Starosedelac
  • *****
  • Poruke: 1134
  • Pol: Muškarac
    • Pogledaj profil
Odg: Brute Force Hash Password - dekripter za md5
« Odgovor #2 poslato: Septembar 14, 2011, 05:35:32 posle podne »
.php...
  www.pegazhosting.com 
█  Web Hosting | Reseller | Registracija domena

Van mreže Luka

  • Dežurna Budala
  • Administrator
  • Starosedelac
  • *****
  • Poruke: 1134
  • Pol: Muškarac
    • Pogledaj profil
Odg: Brute Force Hash Password - Dekripter za MD5
« Odgovor #3 poslato: Novembar 07, 2012, 12:33:17 pre podne »
Ako nekome treba da se dekriptuje neki md5, neka se javi ovde :)
  www.pegazhosting.com 
█  Web Hosting | Reseller | Registracija domena