当前位置:网站首页>【js逆向】md5加密参数破解
【js逆向】md5加密参数破解
2022-07-01 08:14:00 【フィロソフィー】
MD5
md5:消息摘要算法(英文:MD5 Message-Digest Algorithm ),一种被广泛使用的密码散列函数,可以产生一个128位(16字节)的散列值。该加密算法不可逆,通过暴力穷举法破解,以及网站接口实现解密。
js逆向中,可以通过搜索MD5关键字查找加密位置。
md5的js加密方法:
const CryptoJs = require ('crypto-js'); //导入加密库
let password = 'philosophy'; //加密字符串
let enPwd = CryptoJs.MD5(password).toString();
console.log(enPwd); //输出结果
python实现MD5加密:
方法一:
import hashlib
str = 'philosophy' #加密字符串
m = hashlib.md5()
m.update(str.encode('utf-8'))
print(m.hexdigest())
方法二:
from lxpy.encrypt import md5 #第三方库需要安装
print(md5.get_md5(str))
输出结果都为:
225ab6cdf797eae79495ff584a46dfd2
逆向案例
进入登录窗口,打开开发者工具,输入账号密码,点击登录进行抓包:
网站地址:https://www.zhaoxi.net/
在开发者工具中Network面板可以看到登录提交的数据有三个,前两个参数是固定,参数txtpassword明显通过加密生成,如图所示:
通过全局搜索参数名可以看到有多个结果,使用Initiator快速查看堆栈调用,进入send调用中设置断点,重新触发登录请求:

重新登录触发断点后,进行回溯堆栈调用,点击右侧Call Stack(调用堆栈),逐个点击查看,可以发现CheckForm里的Ajax请求前有个#txtpassword ,可以看出hex_md5明显是个加密函数,在控制台console中输入它,双击方法进入查看:

可以确认为md5加密,通过python实现加密,可以发现加密结果和提交的参数值一致。
边栏推荐
- Luogu p3799 demon dream stick
- shardingSphere
- golang中的正则表达式使用注意事项与技巧
- Aardio - [problem] the problem of memory growth during the callback of bass Library
- Set up file server Minio for quick use
- SPL-安装与基本使用(二)
- Conception et mise en service du processeur - chapitre 4 tâches pratiques
- 2022 ordinary scaffolder (special type of construction work) examination question bank and the latest analysis of ordinary scaffolder (special type of construction work)
- String coordinates of number to excel
- Keithley 2100 software 𞓜 Keithley2400 test software ns SourceMeter
猜你喜欢
![[getting started] input n integers and output the smallest K of them](/img/b8/20852484f10bc968d529e9c1ff5480.png)
[getting started] input n integers and output the smallest K of them

Serial port oscilloscope software ns-scope

Tupu software has passed CMMI5 certification| High authority and high-level certification in the international software field

Adding color blocks to Seaborn clustermap matrix

Aardio - 阴影渐变文字

Gdip - hatchbrush pattern table
![[untitled]](/img/b9/6922875009c2d29224a26ed2a22b01.jpg)
[untitled]

Instead of houses, another kind of capital in China is rising

Five combination boxing, solving six difficult problems on campus and escorting the construction of educational informatization

Practice and Thinking on the architecture of a set of 100000 TPS im integrated message system
随机推荐
【入门】截取字符串
Tupu software has passed CMMI5 certification| High authority and high-level certification in the international software field
Rumtime 1200 upgrade: London upgrade support, pledge function update and more
使用beef劫持用戶瀏覽器
P4 安装bmv2 详细教程
Koltin35, headline Android interview algorithm
初学者如何正确理解google官方建议架构原则(疑问?)
Five combination boxing, solving six difficult problems on campus and escorting the construction of educational informatization
Codeforces Round #803 (Div. 2) VP补题
[untitled]
[getting started] input n integers and output the smallest K of them
[force deduction 10 days SQL introduction] Day9 control flow
Aardio - Shadow Gradient Text
Download jackson codehaus. org jar - downloading jackson. codehaus. org jar
Access report realizes subtotal function
01 NumPy介绍
Utiliser Beef pour détourner le navigateur utilisateur
Differential: definition of total differential, partial derivative, gradient
使用threejs简单Web3D效果
How can beginners correctly understand Google's official suggested architectural principles (questions?)