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 127.0.0.1 to your local IP Address.
You can find your local IP by using ifconfig command.
Default Credentials for Beef-XSS Framework
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)
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>
document.write(commandModuleStr ) ;
<h1> WHAT EVER YOU WANT </h1>
<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 192.168.1.121 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.
Please consider downloading Brave Browser by downloading Brave Browser through our website you won’t only be downloading a great privacy browser you will also be supporting (HackingVision.com). We are not using Google Ads as we respect our users privacy. We encourage you to use an Ad-blocker or a browser that has a built in ad-blocker and other privacy features such as VPN.
- Advanced Bash Shell Scripting Guide PDF Programming eBook Download - 14th February 2019
- The Hacker’s Handbook: The Strategy Behind Breaking Into and Defending Networks - 13th February 2019
- Linux Basics for Hackers - 12th February 2019