Wireshark | How to Install Wireshark in Termux | Android Hacking | General Hacking | Crax

Welcome To Crax.Pro Forum!

Check our new Marketplace at Crax.Shop

   Login! SignUp Now!
  • We are in solidarity with our brothers and sisters in Palestine. Free Palestine. To learn more visit this Page

  • Crax.Pro domain has been taken down!

    Alternatives: Craxpro.io | Craxpro.com

Wireshark | How to Install Wireshark in Termux | Android Hacking

Wireshark | How to Install Wireshark in Termux | Android Hacking

LV
1
 

Artisthacker

Member
Joined
Sep 12, 2023
Threads
13
Likes
2
Awards
4
Credits
2,544©
Cash
0$
Wireshark for Termux is a version of the popular packet analyzer tool that has been ported to run on the Android operating system via the Termux terminal emulator app. It allows users to capture, analyze, and inspect network traffic on their Android devices in the same way as the desktop version of Wireshark.

It can be used for network troubleshooting, protocol analysis, and security assessments, among other tasks. With Wireshark on Termux, network administrators and security professionals can have the power of a full-featured packet analyzer on their mobile devices and analyze network traffic on the go.

How to install​

The installation of Wireshark in Termux is a little bit tough because Wireshark uses GUI. Don't worry.

First, we need to update our repository by typing the following command in the Termux.

apt update && apt upgrade -y

Now type the following command in the Termux and press Enter.

pkg install x11-repo

wait until the process to be finished.

Now we need to install Wireshark by typing the following command

apt install wireshark-gtk


Wait for the installation to be finished. It will take approx 4 to 5 min to install Wireshark. It can take more depending on your internet speed.

Install Required Tools

Wireshark has a Graphical User Interface (GUI), while we can run only the Command-line interface tool in Termux. In order to run Wireshark on Termux, we need to install some tools that will help us to run Wireshark on Termux.

Follow below commands:

pkg install xterm

apt install tigervnc

apt install tigervnc-viewer

Note: Type command one by one and wait until the installation to get finished.

Now we have to configure Tigervnc in order to configure Tigervnc run command vncserver and press enter.

If it is your first time you are running this command then it will ask you to enter the VNC password. You can enter any password you want. But you must remember the password that you type.

In order for the GUI application to use display, you must set the environment variable with the command export DISPLAY=":1".

now the final step, we need to install a VNC viewer remote desktop application for android. VNC viewer will help us to run Wireshark in GUI mode. You can simply install the VNC viewer from Google Playstore

Download VNC viewer for android

After successfully installing the VNC viewer. Open the VNC viewer application on your android device.

After opening the application click on + sign. You will see something like this in the below image:


VNC


Normally VNC server listens at the localhost i.e 127.0.0.1 and 5901 port.
On Address field add: 127.0.0.1:5901

And on the name field, you can add anything you like for example Termux, Desktop, Wireshark etc.

And then click create. After this, you will be promoted to add the password. Now type the password that you have typed at the time of configuring the VNC server.

Now you are successfully connected. You will see the terminal in the VNC viewer simply type the following command in VNC viewer order to run Wireshark:

wireshark-gtk

Install wireshark in Termux android



Hence we have successfully installed and run Wireshark on Termux without any kind of error.

To run the Wireshark again simply open Termux and type the following command to run the VNC server.

vncserver

Then type the following command:

export DISPLAY=":1"

Then go to your Android menu and open VNC viewer android application and click on your machine. Type the password and click on continue. In VNC terminal type following command:

wireshark-gtk
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Top Bottom