当前位置:网站首页>Cookie加密6
Cookie加密6
2022-06-27 07:10:00 【范之度】
目标网址:
aHR0cHM6Ly9zZWFyY2gua29uZ2Z6LmNvbS9wcm9kdWN0X3Jlc3VsdC8/a2V5PSVFNyVCQSVBMiVFNiVBNSVCQyVFNiVBMiVBNiZzdGF0dXM9MCZfc3RwbXQ9ZXlKelpXRnlZMmhmZEhsd1pTSTZJbUZqZEdsMlpTSjk=
直接在开发者工具看首页携带的cookie变化,原来的cookie是:


这里模拟请求,第一次携带三个cookie是没法返回内容的。

携带的cookie

加密的关键是randomcode
这里全局搜索:发现加密函数如下:

重新下断点:
成功断住,下边开始fiddker模拟请求,发现重新塑造request的js请求后,访问成功但是数据没有访问成功。两次对比,发现网址请求中有个时间戳在变化:
//第一次
key: 红楼梦
status: 0
_stpmt: eyJzZWFyY2hfdHlwZSI6ImFjdGl2ZSJ9
pagenum: 1
ajaxdata: 1
type: 1
ajaxdata: 3
_: 1656124212160
//第二次
key: 红楼梦
status: 0
_stpmt: eyJzZWFyY2hfdHlwZSI6ImFjdGl2ZSJ9
pagenum: 1
ajaxdata: 1
type: 1
ajaxdata: 3
_: 1656126302616对比两次cookie,几个字段都在变化:
//第一次
randomcodekey=srck25095106235992vl8186
randomcode=095106544682
randomcodesign=Ul7zTaxI0wRjfWzrJKASPrR3LXr1lxfA633382EzQjhMBCYnBkcaLccKFCeI%2F43Jm0XWDa%2Fjt1K62lgIxAZfXQ%3D%3D
acw_tc=276082a316561218664708696e8e1319c2d6b161a0b8ae6d80c96a79ba20b5
TY_SESSION_ID=19a09479-af25-47b9-9c7e-24d28ad4df10
//第二次
randomcodekey=srck25110502685465otd318
randomcode=110502183005
randomcodesign=I8J9dQDdtXSN04NAdd%2B9r4IUDnZnoTdulHbbwk1Tj7G2UJRm6ct1bNcJuD23pUbVvYxEhIavT8Tb19IoffPumw%3D%3D
acw_tc=276082a016561263023097143ebec60beed6bc71b21fce1a014107e68089da
TY_SESSION_ID=8f5955b7-cf47-4435-adea-ad089ec3e647,因为第一次请求网址只有模板,没有找到fidder中的返回内容关键的xhr请求
所以第二次请求才是关键。在fidder中抓取内容反馈如下:

上边有四步,第一步请求相当于加载了一个模板,设置了3个cookie,但是

第二步请求,虽然没有设置cookie,返回任何请求,但是其实设置了关键字段,有个特征是带cookie访问,这个很重要的提示

第三步带了两个cookie字段,,实际测试是生成了第四步需要的第四个cookie

第四步直接就是带着cookie,返回了json数组

第四步是最关键的请求,也就是设置的目的。需要的字段需要对比,用fidder模拟请求来测试。
这里补充的知识点是:有的时候hookcookie用插件没用,最好直接用浏览器去hook,猜到cookie的生成位置。
2.有的hook代码能直接在删除,js有两个函数,访问第一个的时候就把控制台你设置的cookie给屏蔽了。
边栏推荐
- 程序人生 - 程序员三十五岁瓶颈你怎么看?
- Machine learning
- hutool对称加密
- R 中的 RNA-Seq 数据分析 - 调查数据中的差异表达基因!
- 2022 cisp-pte (I) document contains
- R language calculates Spearman correlation coefficient in parallel to speed up the construction of co occurrence network
- volatile 和 synchronized 到底啥区别?
- Tar: /usr/local: cannot find tar in the Archive: due to the previous error, it will exit in the last error state
- Xiaomi Interviewer: let's talk about the proficient Registration Center for three days and three nights
- 请问网页按钮怎么绑定sql语句呀
猜你喜欢

Process termination (have you really learned recursion? Test your recursion Foundation)

聊聊领域驱动设计

面试官:用分库分表如何做到永不迁移数据和避免热点问题?

SQL injection bypass (I)
![[Kevin's third play in a row] is rust really slower than C? Further analyze queen micro assessment](/img/ac/44e0ecd04fbea5efd39d2cc75dea59.jpg)
[Kevin's third play in a row] is rust really slower than C? Further analyze queen micro assessment

Goodbye, agile Scrum

One person manages 1000 servers? This automatic operation and maintenance tool must be mastered

在线文本数字识别列表求和工具

(已解决) MINet 进行测试时报错如下 raise NotImplementedError

Memory barrier store buffer, invalid queue
随机推荐
pytorch Default process group is not initialized
再见了,敏捷Scrum
hutool对称加密
Tar: /usr/local: cannot find tar in the Archive: due to the previous error, it will exit in the last error state
Xiaomi Interviewer: let's talk about the proficient Registration Center for three days and three nights
Interviewer: you use Lombok every day. What is its principle? I can't answer
请问如何在网页通过excel文件的形式向后段数据库添加数据
Solve the problem of win10 wsl2 IP change
Bean copy details
Configuring FTP, enterprise official website, database and other methods for ECS
R 语言 基于关联规则与聚类分析的消费行为统计
VNC Viewer方式的远程连接树莓派
Talk about Domain Driven Design
tracepoint
volatile 和 synchronized 到底啥区别?
ggplot2的自定义调色板
Bean拷贝详解
R 语言并行计算 spearman 相关系数,加快共现网络(co- occurrence network)构建速度
面试官:用分库分表如何做到永不迁移数据和避免热点问题?
Jupiter notebook file directory