当前位置:网站首页>[JS reverse] MD5 encryption parameter cracking
[JS reverse] MD5 encryption parameter cracking
2022-07-01 08:28:00 【フィロソフィー】
MD5
md5: Message digest algorithm ( english :MD5 Message-Digest Algorithm ), A widely used cryptographic hash function , Can produce a 128 position (16 byte ) Hash value . The encryption algorithm is irreversible , Crack through violent exhaustion , And website interface to realize decryption .
js In reverse , You can search for MD5 Keyword to find the encrypted location .
md5 Of js Encryption method :
const CryptoJs = require ('crypto-js'); // Import encryption library
let password = 'philosophy'; // Encrypted string
let enPwd = CryptoJs.MD5(password).toString();
console.log(enPwd); // Output results
python Realization MD5 encryption :
Method 1 :
import hashlib
str = 'philosophy' # Encrypted string
m = hashlib.md5()
m.update(str.encode('utf-8'))
print(m.hexdigest())
Method 2 :
from lxpy.encrypt import md5 # Third party libraries need to be installed
print(md5.get_md5(str))
The output is :
225ab6cdf797eae79495ff584a46dfd2
Reverse case
Enter the login window , open Developer tools , Enter the account and password , Click login to capture packets :
Web site address :https://www.zhaoxi.net/
In developer tools Network The panel can see that there are three data submitted by login , The first two parameters are fixed , Parameters txtpassword Obviously generated by encryption , As shown in the figure :
Through the global search for parameter names, you can see that there are multiple results , Use Initiator Quick view of stack calls , Get into send Set breakpoint in call , Re trigger the login request :

After the breakpoint is triggered by login again , Make a backtrace stack call , Click the right side. Call Stack( call Stack ), Click one by one to view , You can find CheckForm Inside Ajax There is a before the request #txtpassword , It can be seen that hex_md5 It is obviously a cryptographic function , In the console console Enter it in , Double click the method to view :

Can be confirmed as md5 encryption , adopt python Implement encryption , It can be found that the encryption result is consistent with the submitted parameter value .
边栏推荐
- Huawei machine test questions column subscription Guide
- EDA open source simulation tool verilator beginner 6: debugging examples
- OJ输入输出练习
- Yolov5 advanced 7 target tracking latest environment setup
- Aardio - Method of self constructed geticonhandle
- There are many problems in sewage treatment, and the automatic control system of pump station is solved in this way
- 数字转excel的字符串坐标
- Connect timed out of database connection
- C basic knowledge review (Part 4 of 4)
- Find the nearest n-th power of 2
猜你喜欢

Soft keyboard height error

shardingSphere
![[getting started] intercepting strings](/img/16/363baa4982408f55493057200bcba5.png)
[getting started] intercepting strings

Field agricultural irrigation system

华为机试真题专栏订阅指引

P4 installation bmv2 detailed tutorial

There are many problems in sewage treatment, and the automatic control system of pump station is solved in this way

【刷题】字符统计【0】

使用beef劫持用户浏览器

Connect timed out of database connection
随机推荐
【入门】取近似值
Provincial election + noi Part III tree problems
【无标题】
[staff] high and low octave mark (the notes in the high octave mark | mark range are increased by one octave as a whole | low octave mark | mark range are decreased by one octave as a whole)
C basic knowledge review (Part 4 of 4)
CPU设计实战-第四章实践任务一简单CPU参考设计调试
EDA open source simulation tool verilator beginner 6: debugging examples
2022 Chinese cook (technician) simulation test and Chinese cook (technician) practice test video
Access report realizes subtotal function
[redis] it takes you through redis installation and connection at one go
Precautions and skills in using regular expressions in golang
Utiliser Beef pour détourner le navigateur utilisateur
[深度剖析C语言] —— 数据在内存中的存储
slice扩容机制分析
Rumtime 1200 upgrade: London upgrade support, pledge function update and more
Soft keyboard height error
Practice and Thinking on the architecture of a set of 100000 TPS im integrated message system
毕业论文中word的使用1-代码域标公式
SPL-介绍(一)
0 basic introduction to single chip microcomputer: how to use digital multimeter and precautions