<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by reddex on Medium]]></title>
        <description><![CDATA[Stories by reddex on Medium]]></description>
        <link>https://medium.com/@adeshgwalior?source=rss-0323ed7fb44a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gfPVmOkV9T8b-HYCHwolqA.jpeg</url>
            <title>Stories by reddex on Medium</title>
            <link>https://medium.com/@adeshgwalior?source=rss-0323ed7fb44a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 07:39:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adeshgwalior/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[DVWA Beginner’s Guide: Installation and Setup Made Easy]]></title>
            <link>https://medium.com/@adeshgwalior/dvwa-beginners-guide-installation-and-setup-made-easy-cca2d3f997fc?source=rss-0323ed7fb44a------2</link>
            <guid isPermaLink="false">https://medium.com/p/cca2d3f997fc</guid>
            <dc:creator><![CDATA[reddex]]></dc:creator>
            <pubDate>Sat, 13 Sep 2025 11:50:28 GMT</pubDate>
            <atom:updated>2025-09-13T11:50:28.594Z</atom:updated>
            <content:encoded><![CDATA[<p>Damn Vulnerable Web Application (DVWA) is one of the most popular intentionally insecure web applications. It’s designed for learning and practicing <strong>web application security</strong> in a safe, controlled environment.</p><p>In this guide, we’ll walk step by step through the <strong>installation and configuration of DVWA on Kali Linux</strong>, so you can start exploring common web vulnerabilities hands-on.</p><h3>Prerequisites</h3><ul><li>Kali Linux with apache2, mysql/mariadb, and php installed.</li><li>Basic familiarity with Linux commands.</li><li>Run everything in a <strong>VM or lab environment</strong> — DVWA is not safe for production.</li></ul><h3>Step 1 — Clone DVWA into Apache Web Root</h3><pre>cd /var/www/html<br>git clone https://github.com/digininja/DVWA.git</pre><p>Rename the folder (optional but recommended):</p><pre>sudo mv DVWA dvwa</pre><p>Set the necessary permissions:</p><pre>sudo chmod -R 777 dvwa</pre><h3>Step 2 — Configure DVWA Database Settings</h3><p>Navigate to the config folder:</p><pre>cd dvwa/config<br>gedit config.inc.php.dist</pre><p>Edit the following lines with your chosen database username &amp; password:</p><pre>$_DVWA[ &#39;db_user&#39; ]     = getenv(&#39;DB_USER&#39;) ?: &#39;your_db_username&#39;;<br>$_DVWA[ &#39;db_password&#39; ] = getenv(&#39;DB_PASSWORD&#39;) ?: &#39;your_db_password&#39;;</pre><p>Save and exit.</p><h3>Step 3 — Setup MySQL Database User</h3><p>Start MySQL:</p><pre>sudo service mysql start</pre><p>Log in as root:</p><pre>sudo mysql -u root -p</pre><p>Inside MySQL, create a user matching the config file:</p><pre>CREATE USER &#39;your_db_username&#39;@&#39;127.0.0.1&#39; IDENTIFIED BY &#39;your_db_password&#39;;<br>GRANT ALL PRIVILEGES ON dvwa.* TO &#39;your_db_username&#39;@&#39;127.0.0.1&#39; IDENTIFIED BY &#39;your_db_password&#39;;<br>FLUSH PRIVILEGES;<br>EXIT;</pre><h3>Step 4 — Configure PHP for DVWA</h3><p>Open the PHP configuration file (adjust the PHP version if needed):</p><pre>cd /etc/php/8.4/apache2<br>sudo gedit php.ini</pre><p>Find and set:</p><pre>allow_url_fopen = On<br>allow_url_include = On</pre><p>Save and restart Apache:</p><pre>sudo service apache2 restart</pre><h3>Step 5 — Finalize DVWA Configuration</h3><p>Back in the config directory:</p><pre>cd /var/www/html/dvwa/config<br>cp config.inc.php.dist config.inc.php</pre><h3>Step 6 — Run DVWA Setup in Browser</h3><p>Open Firefox and visit:</p><p><a href="http://127.0.0.1/dvwa/setup.php">http://127.0.0.1/dvwa/setup.php</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rICBJbVkJ4M8QyIDTEC8Dw.png" /></figure><p>Scroll down and click <strong>Reset Database</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VoFUakJ0SI4rhM5tkVN30Q.png" /></figure><p>Then head to the login page:</p><p><a href="http://127.0.0.1/dvwa/login.php">http://127.0.0.1/dvwa/login.php</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZHmlkTDm-vcoMyXC9HQ0uA.png" /></figure><p>Default credentials:</p><ul><li><strong>Username:</strong> admin</li><li><strong>Password:</strong> password</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JRfsw_AReT0y5Xq0QcA5bg.png" /></figure><h4>You now have a fully working DVWA instance!</h4><h3>Troubleshooting</h3><ul><li><strong>Database errors?</strong> Check config.inc.php credentials.</li><li><strong>Apache issues?</strong> See logs at /var/log/apache2/error.log.</li><li><strong>PHP config not applied?</strong> Confirm you edited the correct php.ini version.</li></ul><h3>Security Reminder</h3><p>DVWA is <strong>deliberately vulnerable</strong>. Always run it in:</p><ul><li>A <strong>virtual machine</strong></li><li>An <strong>isolated lab network</strong></li><li>Never expose it to the internet</li></ul><h3>Quick Setup</h3><pre>cd /var/www/html<br>git clone https://github.com/digininja/DVWA.git<br>sudo mv DVWA dvwa &amp;&amp; sudo chmod -R 777 dvwa<br>cd dvwa/config &amp;&amp; gedit config.inc.php.dist   # edit db_user &amp; db_password<br>sudo service mysql start<br>sudo mysql -u root -p<br># inside mysql:<br>CREATE USER &#39;user&#39;@&#39;127.0.0.1&#39; IDENTIFIED BY &#39;pass&#39;;<br>GRANT ALL PRIVILEGES ON dvwa.* TO &#39;user&#39;@&#39;127.0.0.1&#39; IDENTIFIED BY &#39;pass&#39;;<br>exit<br># configure PHP<br>sudo gedit /etc/php/8.4/apache2/php.ini  # set allow_url_fopen &amp; allow_url_include = On<br>sudo service apache2 restart<br>cp config.inc.php.dist config.inc.php</pre><p>Open in browser:<br> http://127.0.0.1/dvwa/setup.php → Reset Database → Login (admin / password)</p><h3>Conclusion</h3><p>By now, you should have a fully functional <strong>Damn Vulnerable Web Application (DVWA)</strong> running on your Kali Linux machine. From cloning the repository and configuring the database to tweaking PHP settings and running the setup in the browser — you’ve taken all the essential steps.</p><p>DVWA is a fantastic tool for <strong>practicing web application security</strong>, whether you’re exploring SQL Injection, XSS, CSRF, or other vulnerabilities. Remember, it’s intentionally insecure, so always run it in an isolated environment and never expose it to the internet.</p><p>This setup is just the beginning — in upcoming posts, we’ll dive into different <strong>vulnerabilities within DVWA</strong> and learn how attackers exploit them and, more importantly, how defenders can prevent them.</p><p>Stay tuned, practice responsibly, and happy hacking!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ec1PablrylBvOnDMGExWNw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cca2d3f997fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>