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 (220.127.116.11 for example).
If I make a quick index.html on e.g a 000webhost.com server (e.g www.example.com), and link my 18.104.22.168/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!