需求:写的python脚本需要抓包看流量是怎么走的,但是windows下不好进行抓包,这时就在linux下用proxychains将流量转发到bp进行流流量抓取
1. 安装proxychains
git clone https://github.com/rofl0r/proxychains-ng.git #如果clone 不下来就下载zip
cd proxychains-ng
./configure --prefix=/usr --sysconfdir=/etc #此处的prefix路径一定是/usr 如果换成其他会出现couldnt locate libproxychains4.so
make #需要gcc环境
make install
make install-config (installs proxychains.conf)
2. 配置burp suite代理
3. 配置proxychains
vim /etc/proxychains.conf
找到最下面
4. 执行python脚本
proxychains4 -f /etc/proxychains.conf python3 exp.py xxxx
抓取到了流量