Home Backend Development PHP Tutorial discuz security question algorithm_PHP tutorial

discuz security question algorithm_PHP tutorial

Jul 21, 2016 pm 03:55 PM
discuz Safety I Ask a question friend crack Answer algorithm past

Today, a friend asked me if the answer to a discuz security question could be forgiven. Or crack it. I noticed a password before, but I only remembered it was very short. I thought it was MD5 taken from substr. Finally, I looked at the source code for a long time and found that it was indeed MD5 encrypted. However, the encryption process was a bit confusing

&lt ;option value="0">No security question</option>
<option value="1">Mother's name</option>
<option value="2"&gt ;Grandpa’s name</option>
<option value="3">City where father was born</option>
<option value="4">The name of one of your teachers Name</option>
<option value="5">Model of your PC</option>
<option value="6">Name of your favorite restaurant< /option>
<option value="7">The last four digits of the driver's license</option>

The encryption process is to encrypt the value of value first. For example, my question is " The value of the "last four digits of the driver's license" value is 7. The MD5 of 7 is 8f14e45fceea167a5a36dedd4bea2543. My answer is "1v1.name". Here, the MD5 values ​​​​of 1v1.name and 7 are put together, that is, "1v1.name8f14e45fceea167a5a36dedd4bea2543" The encrypted MD5 value is "f5d8e00a4ebc9ead4611c04706ae05fd" and then take the 8-digit password from 17th to 24th "4611c047" 4611c047 is the password in the database

Demo

7
8f14e45fceea167a 5a36dedd4bea2543
1v1.name8f14e45fceea167a5a36dedd4bea2543
f5d8e00a4ebc9ead4611c04706ae05fd
4611c047

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/318298.htmlTechArticleToday a friend asked me if I could forgive the answer to the discuz security question. Or crack it. I noticed a password before, but I only remembered it was very short. I thought it was the MD5 taken by substr. Finally, I looked at the source code for a long time...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Implementing Machine Learning Algorithms in C++: Common Challenges and Solutions Implementing Machine Learning Algorithms in C++: Common Challenges and Solutions Jun 03, 2024 pm 01:25 PM

Implementing Machine Learning Algorithms in C++: Common Challenges and Solutions

Improved detection algorithm: for target detection in high-resolution optical remote sensing images Improved detection algorithm: for target detection in high-resolution optical remote sensing images Jun 06, 2024 pm 12:33 PM

Improved detection algorithm: for target detection in high-resolution optical remote sensing images

Application of algorithms in the construction of 58 portrait platform Application of algorithms in the construction of 58 portrait platform May 09, 2024 am 09:01 AM

Application of algorithms in the construction of 58 portrait platform

How should the Java framework security architecture design be balanced with business needs? How should the Java framework security architecture design be balanced with business needs? Jun 04, 2024 pm 02:53 PM

How should the Java framework security architecture design be balanced with business needs?

Groundbreaking CVM algorithm solves more than 40 years of counting problems! Computer scientist flips coin to figure out unique word for 'Hamlet' Groundbreaking CVM algorithm solves more than 40 years of counting problems! Computer scientist flips coin to figure out unique word for 'Hamlet' Jun 07, 2024 pm 03:44 PM

Groundbreaking CVM algorithm solves more than 40 years of counting problems! Computer scientist flips coin to figure out unique word for 'Hamlet'

How to implement PHP security best practices How to implement PHP security best practices May 05, 2024 am 10:51 AM

How to implement PHP security best practices

Implementing Machine Learning Algorithms in C++: Security Considerations and Best Practices Implementing Machine Learning Algorithms in C++: Security Considerations and Best Practices Jun 01, 2024 am 09:26 AM

Implementing Machine Learning Algorithms in C++: Security Considerations and Best Practices

Security configuration and hardening of Struts 2 framework Security configuration and hardening of Struts 2 framework May 31, 2024 pm 10:53 PM

Security configuration and hardening of Struts 2 framework

See all articles