How to BeEF - the Browser Exploitation Framework Project OVER WAN

Jan 22, 2016 01:22 AM
635889925370222587.jpg

Hello all

Just thought id share how ive managed to get beef working over the internet.

Step 1: All Needed Ports Forwarded

First things first, you need to make sure you have these ports forwarded on your router. On mine it shows in the advance settings NAT >

< Port Forwarding.

then i can add all the ports i need for beef to work.

Add These Ports 3000, 5432, 55552, 53, 80

Step 2: Add the Ip into Beef config.yaml

now once you have forwarded your ports correctly you can move onto the kali 2.0 machine. open up a terminal and type

root@kali:~# cd /usr/share/beef-xss/

root@kali:/usr/share/beef-xss# leafpad config.yaml

this should now open up the beef config file as so.

dnshost "your public ip" put your public ip in here

635889926130803434.jpg

db_host "Your Public Ip"_

635889925370222587.jpg

now close and save that file.

Step 3: Metasploit Config.yaml

now once that is saved and closed you should still see

Root@Kali:~# /Usr/Share/Beef-Xss

Type Cd Extensions/Metasploit/

Root@Kali:/Usr/Share/Beef-Xss/Extensions/Metasploit#

then while in there type leafpad config.yaml

635889929289682503.jpg

And where i have put !!your ip here!! on the picture above^ put your public ip

Host " Your Public Ip"

callback_host "Yourpublicip"_

and also make sure when you do its only numbers , no http://

just XX.XXX.XXX.XXX

now save this file and close.

now when you load beef framework up again.

Replace Your Public Ip Before >>> :3000/Ui/Authentication

Replace [Http://127.0.0.1 ]

with Your Public Ip

>>>>> [Http://127.0.0.1:3000/Ui/Authentication ]

>>>>> XX.XXX.XXX.XXX:3000/Ui/Authentication

thats it.

Beef should now be setup to use your public ip for connections back.

you should also look into setting up ddns these seem ok and free. http://www.noip.com

Thanks, RapiD

Comments

No Comments Exist

Be the first, drop a comment!