How to Use BeEF Cross-Network
I'm experimenting with BeEF. And I'm able to hook on a browser of a PC which is on the SAME network. But as soon as I try to do it with a PC on another network, I can't get it to hook on.
Mainly, because you need to hook the hook.js file. But BeEF only gives you a hook.js file for localhost (127.0.0.1), and one for your internal-network ip (184.108.40.206 for example).
If I make a quick index.html on e.g a 000webhost.com server (e.g www.example.com), and link my 220.127.116.11/hook.js to it I can hook up browsers which are on the same network. But I cannot hook a browser if I visit the website from another network.
How do you hook-up a browser on another network than you, with BeEF?
Thanks a lot!