{"id":25827,"date":"2024-02-29T15:00:29","date_gmt":"2024-02-29T15:00:29","guid":{"rendered":"https:\/\/linuxways.net\/?p=25827"},"modified":"2024-02-29T15:02:32","modified_gmt":"2024-02-29T15:02:32","slug":"install-use-wireshark-kali-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/kali-linux\/install-use-wireshark-kali-linux\/","title":{"rendered":"How to Install and Use Wireshark on Kali Linux"},"content":{"rendered":"<p><strong>Wireshark <\/strong>is an open-source and powerful network protocol analyzer that is designed for monitoring network traffic over different network interfaces. <strong>Wireshark<\/strong> is widely used by system administrators, ethical hackers, and security professionals for network troubleshooting, protocol development, and education. It provides you with the ability to monitor and capture network traffic of data packets coming from a network source.<\/p>\n<p>In this guide, you will learn:<\/p>\n<ul>\n<li><a href=\"#post-25827-_35wihtx6t0zl\">How to Install Wireshark on Kali Linux<\/a><\/li>\n<li><a href=\"#post-25827-_tb30ksxt3qoh\">How to Run Wireshark on Kali Linux<\/a><\/li>\n<li><a href=\"#post-25827-_qzc53xrjdave\">How to Use Wireshark on Kali Linux<\/a><\/li>\n<li><a href=\"#post-25827-_o6fzd5qzd18j\">Conclusion<\/a><\/li>\n<\/ul>\n<h2><a id=\"post-25827-_35wihtx6t0zl\"><\/a><strong>How to Install Wireshark on Kali Linux<\/strong><\/h2>\n<p>By default, <strong>Wireshark <\/strong>is installed on the Kali Linux system, however, if you have accidentally removed the application from the system, use the following command to install it.<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> wireshark <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><strong>Optional: <\/strong>Besides installing <strong>Wireshark<\/strong> on Kali Linux, you can also install <strong>wireshark-common<\/strong>, a dependency tool for <strong>Wireshark <\/strong>that provides you with common data structures and functions used by <strong>Wireshark<\/strong>. To install <strong>wireshark-common <\/strong>package on Kali Linux, use the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> wireshark-common <span class=\"re5\">-y<\/span><\/div><\/div>\n<p>While installing the<strong> wireshark-common <\/strong>package on Kali Linux, you may encounter the dpkg error:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"709\" height=\"176\" class=\"wp-image-25833\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-1.png 709w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-1-300x74.png 300w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><\/p>\n<p>To fix the dpkg error, simply run the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">dpkg<\/span> <span class=\"re5\">--configure<\/span> <span class=\"re5\">-a<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"293\" class=\"wp-image-25835\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-2.png 722w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-2-300x122.png 300w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/p>\n<p>Once the dpkg is configured, re-run the following command again to install the package on the Kali Linux system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> wireshark-common <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"351\" class=\"wp-image-25839\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-3.png 721w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-3-300x146.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/p>\n<h3><a id=\"post-25827-_swztugcnwdnn\"><\/a><strong>How to Run Wireshark without sudo privileges <\/strong><\/h3>\n<p>By default, <strong>Wireshark<\/strong> allows users to run the application as a root user with sudo privileges. However, you can change the setting and run <strong>Wireshark<\/strong> without sudo privileges by running the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> dpkg-reconfigure wireshark-common<\/div><\/div>\n<p>Once you execute the above-given command, a package configuration window will open, simply press the <strong>Enter <\/strong>button on the <strong>Ok<\/strong> option to move forward:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"698\" height=\"398\" class=\"wp-image-25844\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-4.png 698w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-4-300x171.png 300w\" sizes=\"auto, (max-width: 698px) 100vw, 698px\" \/><\/p>\n<p>Then allow the non-superusers to run <strong>Wireshark<\/strong> on Kali Linux by entering with the <strong>Yes<\/strong> option:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"713\" height=\"397\" class=\"wp-image-25855\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-5.png 713w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-5-300x167.png 300w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/p>\n<h2><a id=\"post-25827-_tb30ksxt3qoh\"><\/a><strong>How to Run Wireshark on Kali Linux<\/strong><\/h2>\n<p>You can run <strong>Wireshark<\/strong> on Kali Linux from Terminal or GUI. To run <strong>Wireshark<\/strong> on Kali Linux from the terminal, simply use the below-given command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">wireshark<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1233\" height=\"642\" class=\"wp-image-25871\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-6.png 1233w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-6-300x156.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-6-1024x533.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-6-768x400.png 768w\" sizes=\"auto, (max-width: 1233px) 100vw, 1233px\" \/><\/p>\n<p>If you have not enabled the <strong>Wireshark<\/strong> to run with non-root users, then use the <strong>wireshark <\/strong>command with sudo to run it on your system:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">wireshark<\/div><\/div>\n<p>To run <strong>Wireshark<\/strong> on Kali Linux from GUI, navigate to the <strong>Application<\/strong> menu, search the<strong> wireshark,<\/strong> and click on the application to run it on the system:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1107\" height=\"750\" class=\"wp-image-25879\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-7.png 1107w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-7-300x203.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-7-1024x694.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-7-768x520.png 768w\" sizes=\"auto, (max-width: 1107px) 100vw, 1107px\" \/><\/p>\n<h2><a id=\"post-25827-_qzc53xrjdave\"><\/a><strong>How to Use Wireshark on Kali Linux<\/strong><\/h2>\n<p>To use <strong>Wireshark <\/strong>on Kali Linux, open the application from GUI or Terminal and then select your network interface to monitor network traffic on it. Here, I am going with the <strong>eth0<\/strong> option, which is the default network interface for my system. After selecting the interface, simply click on the <strong>Start <\/strong>button with the <strong>Shark <\/strong>icon to run the<strong> Wireshark<\/strong> and start capturing network traffic over the respected interface:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1596\" height=\"708\" class=\"wp-image-25881\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-8.png 1596w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-8-300x133.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-8-1024x454.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-8-768x341.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-8-1536x681.png 1536w\" sizes=\"auto, (max-width: 1596px) 100vw, 1596px\" \/><\/p>\n<p><strong>Note: <\/strong>The network interface for Wi-Fi will be different, normally it will be <strong>wlan0<\/strong> for this case.<\/p>\n<p><strong>Wireshark<\/strong> will start generating the information of captured network traffic on your respective interface:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1589\" height=\"711\" class=\"wp-image-25883\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-9.png 1589w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-9-300x134.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-9-1024x458.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-9-768x344.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-9-1536x687.png 1536w\" sizes=\"auto, (max-width: 1589px) 100vw, 1589px\" \/><\/p>\n<p>To have a detailed macroscopic overview of your captured network traffic, click on any captured traffic to view the source and destination of a packet with port and sequence number:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1596\" height=\"712\" class=\"wp-image-25885\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-10.png 1596w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-10-300x134.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-10-1024x457.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-10-768x343.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-10-1536x685.png 1536w\" sizes=\"auto, (max-width: 1596px) 100vw, 1596px\" \/><\/p>\n<p>To stop the packet capturing process on <strong>Wireshark<\/strong>, use the <strong>Stop <\/strong>button (Red button):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1594\" height=\"714\" class=\"wp-image-25888\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-11.png 1594w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-11-300x134.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-11-1024x459.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-11-768x344.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25827-11-1536x688.png 1536w\" sizes=\"auto, (max-width: 1594px) 100vw, 1594px\" \/><\/p>\n<h2><a id=\"post-25827-_twcwr85lm88r\"><\/a>How to Remove Wireshark from Kali Linux<\/h2>\n<p>You can remove <strong>Wireshark<\/strong> from the Kali Linux system anytime by running the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> apt remove wireshark wireshark-common <span class=\"re5\">-y<\/span><\/div><\/div>\n<h2><a id=\"post-25827-_o6fzd5qzd18j\"><\/a>Conclusion<\/h2>\n<p><strong>Wireshark <\/strong>is a useful tool used for capturing and analyzing the network traffic over a selected interface. <strong>Wireshark<\/strong> is installed on the Kali Linux system by default, however, in case of accidental removal, you can install it from the apt package repository. After the installation, you can run <strong>Wireshark<\/strong> on Kali Linux from the terminal and GUI. Once you run it, choose the network interface and click the<strong> Star<\/strong>t button to start capturing and analyzing network traffic over the respected interface. It is also advised to get proper knowledge about networking to start monitoring the network traffic on Kali Linux.<\/p>","protected":false},"excerpt":{"rendered":"<p>You can fix Kali Linux cannot connect to Wireless by enabling the Wireless Adapter or Wi-Fi option from the GUI or terminal <\/p>","protected":false},"author":116,"featured_media":25969,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1054],"tags":[],"class_list":["post-25827","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kali-linux"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/25827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/116"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=25827"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/25827\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/25969"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=25827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=25827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=25827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}