当前位置:网站首页>【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实现加密,可以发现加密结果和提交的参数值一致。
边栏推荐
- Airsim radar camera fusion to generate color point cloud
- Adding color blocks to Seaborn clustermap matrix
- 【入门】输入整型数组和排序标识,对其元素按照升序或降序进行排序
- On several key issues of digital transformation
- 使用 setoolkit 伪造站点窃取用户信息
- Leetcode t34: find the first and last positions of elements in a sorted array
- Transaction method call @transactional
- 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
- golang中的正则表达式使用注意事项与技巧
- 機動目標跟踪——當前統計模型(CS模型)擴展卡爾曼濾波/無迹卡爾曼濾波 matlab實現
猜你喜欢

机动目标跟踪——当前统计模型(CS模型)扩展卡尔曼滤波/无迹卡尔曼滤波 matlab实现
![[dynamic planning] p1020 missile interception (variant of the longest increasing subsequence)](/img/3e/75a1152f9cdf63c6779fdadec702a0.jpg)
[dynamic planning] p1020 missile interception (variant of the longest increasing subsequence)

SQL number injection and character injection
![[untitled]](/img/be/3523d0c14d555b293673af2b6fbcff.jpg)
[untitled]

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

Gateway-88

网关gateway-88

【入门】输入整型数组和排序标识,对其元素按照升序或降序进行排序

軟鍵盤高度報錯

Using settoolkit to forge sites to steal user information
随机推荐
Insufficient executors to build thread pool
The Windows C disk is full
2022 ordinary scaffolder (special type of construction work) examination question bank and the latest analysis of ordinary scaffolder (special type of construction work)
On June 30, 2022, the record of provincial competition + national competition of Bluebridge
EDA开源仿真工具verilator入门6:调试实例
[getting started] intercepting strings
[introduction] approximate value
【刷题】字符统计【0】
Leetcode t40: combined sum II
Differential: definition of total differential, partial derivative, gradient
Download jackson codehaus. org jar - downloading jackson. codehaus. org jar
[getting started] enter the integer array and sorting ID, and sort its elements in ascending or descending order
Leetcode T34: 在排序数组中查找元素的第一个和最后一个位置
Leetcode t29: divide two numbers
Learn the knowledge you need to know about the communication protocol I2C bus
Aardio - Shadow Gradient Text
Yolov5 advanced six target tracking environment construction
Leetcode t31: next spread
XX attack - reflective XSS attack hijacking user browser
P4 安装bmv2 详细教程