What we choose is never what we really need.

1/28/2024

Learning Web Pentesting With DVWA Part 1: Installation



In this tutorial series I'm going to walk you through the damn vulnerable web application (DVWA) which is damn vulnerable. Its main goal according to the creators is "to aid security professionals to test thier skills and tools in a legal environment, help web developers better understand the process of securing web applications and to aid both students & teachers to learn about web application security in a controlled class room environment."

I am going to install DVWA in docker so the prerequisite for this tutorial will be an installation of docker (Docker is not the only way to install DVWA but if you have docker already installed then it may be the easiest way to install DVWA).

To install DVWA in docker run your docker deamon if it's not running already and open a terminal or powershell and type:

docker rum --rm -it -p 8080:80 vulnerables/web-dvwa




It will take some time to pull the image from docker hub depending on your internet speed and after it is complete it will start the dvwa application. In the command we have mapped the image instance's port 80 to our hosts port 8080 so we should be able to access the web application from our host at http://localhost:8080

Now open your favorite web browser and go to http://localhost:8080
You should be prompted with a login screen like this:



login with these creds:
username: admin
password: password

After login you'll see a database setup page since this is our first run. Click on Create / Reset Database button at the bottom. It will setup database and redirect you to login page. Now login again and you'll see a welcome page.



Now click on DVWA Security link at the bottom of the page navigation and make sure the security level is set to Low. If it is not click on the dropdown, select Low and then click submit.




Now our setup is complete, so lets try a simple SQL attack to get a taste of whats about to come.

Click on SQL Injection in navigation menu.
You'll be presented with a small form which accepts User ID.
Enter a single quote (') in the User ID input field and click Submit.
You'll see an SQL error like this:



From the error message we can determine that the server has a MariaDB database and we can see the point of injection.
Since there are many quotes we are not able to determine the exact location of our injection. Lets add some text after our single quote to see exactly where our injection point is.
Now I am going to enter 'khan in the User ID field and click Submit.



Now we can see exactly where the point of injection is. Determining the point of injection is very important for a successful SQL injection and is sometimes very hard too, though it might not be that much useful here in this exercise.

Now lets try the very basic SQL Injection attack.
In the User ID field enter ' or 1=1-- - and click Submit.



We will explain what is going on here in the next article.


References:-
1. DVWA Official Website: http://www.dvwa.co.uk/
Related articles
  1. Hacking Tools For Pc
  2. Hacker Tools Software
  3. Growth Hacker Tools
  4. Hacker Search Tools
  5. Growth Hacker Tools
  6. Hacking Tools For Pc
  7. Tools 4 Hack
  8. Hack Tools For Ubuntu
  9. Hacker Tools For Mac
  10. Pentest Tools Github
  11. Pentest Recon Tools
  12. Hacking Tools For Windows 7
  13. Best Pentesting Tools 2018
  14. Hacker Tools Hardware
  15. Install Pentest Tools Ubuntu
  16. Hacking Tools For Beginners
  17. Hack Tools Mac
  18. Install Pentest Tools Ubuntu
  19. Hacking Tools Download
  20. Hacker Tools Apk
  21. Hacking Tools 2020
  22. Tools Used For Hacking
  23. Tools Used For Hacking
  24. Hacker
  25. Tools For Hacker
  26. Pentest Tools For Windows
  27. Hacker Tool Kit
  28. Hack Tools Github
  29. Growth Hacker Tools
  30. Hack Tools For Pc
  31. Hacking Tools Software
  32. Hack Tools Pc
  33. Hacker Search Tools
  34. Hack Tools For Games
  35. Hacker Tools
  36. Pentest Tools Open Source
  37. Hack Tools Online
  38. Computer Hacker
  39. Pentest Tools List
  40. Hacking Tools For Kali Linux
  41. Hack Tools For Ubuntu
  42. Hacking Tools For Mac
  43. What Are Hacking Tools
  44. Pentest Tools For Mac
  45. Pentest Tools For Ubuntu
  46. Hacking Tools
  47. Hacker Security Tools
  48. Hacking Tools Kit
  49. Hacking Tools Name
  50. Hacker Security Tools
  51. Pentest Automation Tools
  52. Pentest Tools Apk
  53. Pentest Tools Website
  54. Pentest Tools Android
  55. Hacking Tools Online
  56. Hack Tools For Ubuntu
  57. Nsa Hack Tools Download
  58. Pentest Tools Url Fuzzer
  59. Hacking Tools For Windows 7
  60. Hack Tools For Games
  61. Pentest Reporting Tools
  62. Hacker Tools Mac
  63. Pentest Tools Github
  64. Hacker Tool Kit
  65. Pentest Tools Website Vulnerability
  66. Pentest Recon Tools
  67. Hacker Search Tools
  68. Hack Tools Github
  69. Hack Tools For Pc
  70. Hacking Tools Github
  71. Hack Tools Pc
  72. Hack Tools
  73. Pentest Tools Open Source
  74. Hacker Tools Online
  75. Hacking Tools Mac
  76. Hacking Tools 2020
  77. Github Hacking Tools
  78. Hacker Tools Linux
  79. Pentest Automation Tools
  80. Hacking Tools For Mac
  81. Hack Apps
  82. Pentest Tools Review
  83. Hack Tool Apk No Root
  84. Pentest Tools Nmap
  85. Hacker Tools Online
  86. Hacking Tools For Kali Linux
  87. Hacker Tool Kit
  88. Pentest Tools Find Subdomains
  89. Pentest Reporting Tools
  90. Pentest Tools Download
  91. Hackers Toolbox
  92. Hacker Tools Hardware
  93. Pentest Tools Android
  94. Hacking Tools Github
  95. How To Hack
  96. Pentest Tools Open Source
  97. Pentest Tools Online
  98. Hacking Apps
  99. What Is Hacking Tools
  100. Easy Hack Tools
  101. Pentest Box Tools Download
  102. Hacker Tools Software
  103. Hacker Tools List
  104. Hacking Apps
  105. Hacker Tools For Windows
  106. What Is Hacking Tools
  107. Game Hacking
  108. Hacker Tools Software
  109. Hacker Tools 2020
  110. Hacking Tools Github
  111. Hack Tools Download
  112. Hack Tool Apk No Root
  113. Hack Tools
  114. What Is Hacking Tools
  115. Pentest Reporting Tools
  116. Hacking Tools 2019
  117. Hacking Tools For Beginners
  118. Pentest Reporting Tools
  119. Game Hacking
  120. Hack Tools For Windows
  121. Hacker Tools Apk
  122. Pentest Tools Website
  123. Hacker Tools Online
  124. Hack App
  125. Pentest Tools Windows
  126. Hacking Tools Free Download
  127. Pentest Tools For Ubuntu
  128. Hack Tools
  129. Hacker Tools For Pc
  130. Hacker Tools For Windows
  131. Pentest Tools For Windows
  132. Hacker Tools 2020
  133. Hacker Tools Apk
  134. Pentest Tools Find Subdomains
  135. Hacking Tools For Mac
  136. Pentest Tools Website Vulnerability
  137. Hacker Tools For Pc
  138. Install Pentest Tools Ubuntu
  139. Nsa Hacker Tools
  140. Hacking Apps
  141. Pentest Tools Free
  142. Free Pentest Tools For Windows
  143. Hacker Tools 2020
  144. Nsa Hacker Tools
  145. Kik Hack Tools
  146. Hacking Tools Software
  147. Hacker Security Tools
  148. Pentest Tools
  149. Hacking Tools For Beginners
  150. Pentest Tools For Ubuntu
  151. Hacker Tools Mac
  152. Hack Tools Github
  153. Growth Hacker Tools
  154. Nsa Hacker Tools
  155. Hacker Tools Hardware
  156. Hacking Tools For Windows Free Download

No comments: