FrameworkNetworking ToolOther

How to Install BeEF on Termux

BeEF Browser Exploitation Framework (Browser Hacking) | Install BeEF in termux

Hello friends, today we will see how we can install BeEF (Browser Exploitation Framework) on Termux.

BeEF is a web browser-focused penetration testing tool. It can launch an attack on a targeted browser.


What is BeEF?

Install BeEF stands for The Browser Exploitation Framework. This is a web-based login testing tool.

Amid growing concerns about web-based attacks on customers, including mobile clients, BeEF enables a professional login inspector to check the true location of a target security environment using client-side attack vectors. Unlike other security frameworks, BeEF looks beyond the fixed network and client system and tests used in the context of one open door: the web browser. BeEF_connects to one or more web browsers and uses them as spearheads to launch targeted command modules and other attacks against the system in the context of the browser.

How can you reunite victims with Reflected XSS?

The XSS displayed is an attack when the embedded script originates from a web server, such as an error message, a search result, and any response that includes some or all of the input sent to the server as part of the request.
To use BeEF now, go to your Kali Linux machine and install BeEF. The GEI version of BeEF will automatically open in your browser. Now the default username and password is beef.

BeEF stands for The Browser Exploitation Framework. It is a penetration testing tool that focuses on the web browser. BeEF is pioneering technique that provide the experienced penetration tester with practical client-side attack vectors. Unlike other security frameworks, BeEF focuses on exploiting browser vulnerabilities to assess a target’s security posture. This project is developed exclusively for legal research and penetration testing.


Requirements :

  • Termux App
  • Minimum Space Required = 100 MB to 250 MB
  • Internet




Step_1Download the Termux app

  • First Uninstall Old Termux and Install the New Upgrade Version
  • First, open the Website / App on your Android phone.
  • Search for the Termux app.
  • And install it on your Android phone by clicking the Download button
  • And it will download to your phone.

Termux 0.118 Download


Install BeEF on Termux:-

Step 1:- First Open the termux app and update and upgrade your termux app. To avoid errors while installing the BeEF tool.

 apt update -y && apt upgrade -y 


Step 2:- This step is especially important if you do not want to make mistakes while using the tool. This will add git to the termux that will be used while using the BeEF tool. Once you have this you can remove the name from the command while installing.

 apt install git -y 


Step 3:- Enter the dependencies in this tool. This will add curl wget ruby and git to termux & Linux which will be used while using BeEF Browser Exploitation Framework. Once you have this you can remove the name from the command while installing.

 pkg install curl wget libyaml libxslt bison espeak ruby python nodejs


Step 4:- Now all dependencies are installed in your termux and we can now install the BeEF Browser Exploitation Framework tool in the termux using the command given below. For the file size of this tool, just copy and paste the command below and the tool will load in 10 seconds.

 git clone



Step 5:- Next, we have to insert a valuable file and add it to the cow’s gemfile but it does not work in termux, so we have to insert it manually. and Wait for 20 Second

 gem install nokogiri -- --use-system-libraries


Step 6:- Now Convert your open source to BeEF Exploitation Framework, If you do not know the basic terms of termux then it is highly recommended

 cd beef



Step 7:- I create a setup & Installation file for the installation tool automatically.

If any errors come after rum a command, it will automatically fix all errors and install all the required packages automatically.





Step-8:- Once Ruby is installed, run the installation script in the BeEF directory. Next, we should delete the nokogiri gem from the list of files because we have already installed it.

This script will install the required operating system packages and any necessary Ruby gems.

After successful installation, don’t forget to read the configuration page on the wiki for important details about BeEF configuration and security.

 nano install

You have to go to Scroll down and clear the line from check_os to check_ruby_version and delete all sudo commands in the script and check os at the bottom of the script. any issues playing video

Delete Command Text List

  • check_os
  • check_ruby_version
  • delete all sudo

When you’re done just save the file CTRL + X & Y & Enter. Now use the input script to add the beef.

Also Read: How to Use Nmap – Command to Scan Network Tutorial Guide



Step-9:- Type the command below to Set up and Install this tool and Browser Exploitation Framework tool

 bash install

the tool will load in  just Wait 10-45 Minutes 


Step-10:- Now change the admin login username & password. Now, the default username and password are beef

 nano config.yaml


Step 11:- Now Browser Exploitation Framework tool Installation Successfully Run this tool


This screen tells us that BeEF operates in two different locations, locally and internally, both in port 3000. It also provides a link and a control panel for the user interface. All these settings and more can be customized with the “config.yaml” file found in the root directory of the program.


Now that the BeEF has started and is running, let’s take a look at the control panel. Using a web browser will browse the link listed above. In my story at 3000/ui/panel. You should be able to access this link from any device on the same local network, but once you have opened a host-based firewall you may need to open the appropriate holes to access it.



Beef is an incredibly powerful tool that you can use to harden your systems against cyber attacks. From providing spyware modules to tracking mouse movements on the target system, BeEF_can do it all. It is therefore a good idea to test your system with this security forensics tool.

We hope you found this tutorial useful to get started with this tool with such a variety of useful features.


Hello, I'm SUMAN from India. Learn about the termux app from Beginner to pro, At this Site, you will get all the working termux tools, I am also posting the best Termux GitHub tools.

Related Articles

Notify of
Newest Most Voted
Inline Feedbacks
View all comments

An error occurred while installing nio4r
(2.5.8), and Bundler cannot continue.

In Gemfile:
 async-dns was resolved to 1.3.0, which depends on
  async-io was resolved to 1.34.3, which depends on
   async was resolved to 1.31.0, which depends on
I am having the above error when i run the command for installing beef. Pls help resolve it.

Abduljabbar usman

How to install nio4r

Let's do hacking

I am using your script in one of my tool for hosting BeEF on WAN with site
If you want to remove please contact me here

Back to top button
Would love your thoughts, please comment.x