简介
JS逆向是在爬虫或POC脚本访问请求时,链接请求需要携带动态生成的请求头参数,比如常见的csrf请求头,诸如此类的限制来实现反爬。
逆向环境
· Node.js14.0以上版本
- 官网下载地址:https://nodejs.org/en/download/
- 教程:https://www.runoob.com/nodejs/nodejs-install-setup.html
· Chrome浏览器 / Firefox浏览器
- Chrome官网:https://www.google.cn/intl/zh-CN/chrome/
- Firefox官网:http://www.firefox.com.cn/
· VScode
- 官网下载地址:https://code.visualstudio.com
以谷歌浏览器为例
我们对网页请求参数逆向时需要通过浏览器对其进行分析,需要对浏览器非常熟悉,先来介绍一下浏览器功能,了解过后就开始案例模拟。
1. 右键页面 -> 检查 | 按F12触发

2. Element面板

3. Console面板

4. Sources面板
此处有3个模块在逆向过程常用,在以后教程会单独举例讲。
Page板块

Overrides板块

Snippets板块

5. Network板块

下节预告
直接从实战来了解过程这样学习是非常迅速的,下节我们将直接通过一个DEMO案例来了解如何设置断点,如何抠取代码,如何将代码在本地运行,并且通过python调用成功。
网友评论