当前位置:网站首页>[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 .
边栏推荐
猜你喜欢

Adding color blocks to Seaborn clustermap matrix

CPU設計實戰-第四章實踐任務一簡單CPU參考設計調試

谈谈数字化转型的几个关键问题

【华为机试真题详解】判断字符串子序列【2022 Q1 Q2 | 200分】

Conception et mise en service du processeur - chapitre 4 tâches pratiques

Using settoolkit to forge sites to steal user information

使用threejs简单Web3D效果

Practice and Thinking on the architecture of a set of 100000 TPS im integrated message system
![[getting started] enter the integer array and sorting ID, and sort its elements in ascending or descending order](/img/87/07783593dbabcf29700fa207ecda08.png)
[getting started] enter the integer array and sorting ID, and sort its elements in ascending or descending order

SPL-安装与基本使用(二)
随机推荐
Huawei machine test questions column subscription Guide
Internet of things technology is widely used to promote intelligent water automation management
7-26 word length (input and output in the loop)
Chinese font Gan: zi2zi
机动目标跟踪——当前统计模型(CS模型)扩展卡尔曼滤波/无迹卡尔曼滤波 matlab实现
数字转excel的字符串坐标
Learn reptiles for a month and earn 6000 a month? Tell you the truth about the reptile, netizen: I wish I had known it earlier
Suivi des cibles de manoeuvre - - mise en oeuvre du modèle statistique actuel (modèle CS) filtre Kalman étendu / filtre Kalman sans trace par MATLAB
01 numpy introduction
OJ输入输出练习
Intelligent water conservancy solution
Codeforces Round #803 (Div. 2) VP补题
Provincial election + noi Part VI skills and ideas
如何招到适合自己店铺的淘宝主播
【入门】截取字符串
shardingSphere
程序员养生宝典
Maneuvering target tracking -- current statistical model (CS model) extended Kalman filter / unscented Kalman filter matlab implementation
[untitled]
Airsim雷达相机融合生成彩色点云