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/

More articles


  1. Hack Tools Online
  2. Pentest Tools Open Source
  3. Physical Pentest Tools
  4. Pentest Tools For Mac
  5. Pentest Tools Framework
  6. Pentest Tools Review
  7. Game Hacking
  8. Pentest Tools Port Scanner
  9. Hacking Tools 2019
  10. Hacking Tools Download
  11. Hacking Tools Kit
  12. Pentest Tools Android
  13. Nsa Hack Tools
  14. Pentest Tools List
  15. Pentest Tools Apk
  16. Computer Hacker
  17. Hacker Tools Mac
  18. Pentest Tools Apk
  19. Beginner Hacker Tools
  20. Termux Hacking Tools 2019
  21. Pentest Tools Website
  22. Pentest Tools Port Scanner
  23. Hacking App
  24. Pentest Tools Website
  25. Hacking Tools Kit
  26. Hacker Tools Free
  27. Pentest Automation Tools
  28. Pentest Tools Kali Linux
  29. Nsa Hack Tools
  30. Hacker Tools Hardware
  31. Beginner Hacker Tools
  32. World No 1 Hacker Software
  33. Hack And Tools
  34. Hacking Tools For Windows 7
  35. Hacking Tools Name
  36. Pentest Recon Tools
  37. Pentest Tools Kali Linux
  38. Hack Tool Apk
  39. Free Pentest Tools For Windows
  40. Hacking Tools For Kali Linux
  41. Hacker Tools
  42. Pentest Tools Kali Linux
  43. Hacker Tools Free Download
  44. Top Pentest Tools
  45. Hacker Security Tools
  46. Hacking Tools For Windows Free Download
  47. Pentest Reporting Tools
  48. Pentest Tools Nmap
  49. Pentest Tools Alternative
  50. Hacking Tools For Beginners
  51. Blackhat Hacker Tools
  52. Hack Tools Download
  53. Pentest Tools For Windows
  54. Termux Hacking Tools 2019
  55. Hacker Tools Free Download
  56. Hackers Toolbox
  57. Hacking Tools Usb
  58. Pentest Tools For Android
  59. What Is Hacking Tools
  60. Hacking Tools Free Download
  61. Hacker Techniques Tools And Incident Handling
  62. Blackhat Hacker Tools
  63. What Is Hacking Tools
  64. Termux Hacking Tools 2019
  65. Hack Tools For Mac
  66. Ethical Hacker Tools
  67. Black Hat Hacker Tools
  68. Easy Hack Tools
  69. Pentest Tools For Mac
  70. Nsa Hack Tools
  71. Hacking Tools Github
  72. Hak5 Tools
  73. Hack App
  74. Hacker
  75. Hack Tools Download
  76. Hack Tools Online
  77. Hacking Tools Kit
  78. Hack Tools Mac
  79. Pentest Tools Tcp Port Scanner
  80. Pentest Tools Open Source
  81. Hacker Tools Mac
  82. Hacking Tools Kit
  83. Hacking Tools Download
  84. Hacking Tools Pc
  85. Hack Tools Online
  86. Hack Tool Apk No Root
  87. Hacking Tools Free Download
  88. Best Pentesting Tools 2018
  89. Hacker Tools 2020
  90. Hack Tools
  91. Pentest Tools Kali Linux
  92. Computer Hacker
  93. Physical Pentest Tools
  94. Hacker Tools 2020
  95. Hack Tools Github
  96. Hacking Tools Download
  97. Hacking Tools Software
  98. Hack Apps
  99. Hacking Tools 2020
  100. Hack Tools For Pc
  101. Hacking Apps
  102. Hack Tools For Windows
  103. Hacking Tools For Windows 7
  104. Hacking Tools Mac
  105. Best Hacking Tools 2019
  106. Hacking Tools 2019
  107. Hacking Tools And Software
  108. Top Pentest Tools
  109. Hacking App
  110. Hack Tools Pc
  111. How To Hack
  112. Android Hack Tools Github
  113. How To Install Pentest Tools In Ubuntu
  114. Hack Rom Tools
  115. Hacker Tools Linux
  116. Hacker Tools Software
  117. Hacker Tools Linux
  118. Hacking Tools For Windows 7
  119. Hacking Tools 2019
  120. Pentest Tools For Mac
  121. Hack Rom Tools
  122. Hack Tool Apk
  123. Hacker Tools Free Download
  124. What Are Hacking Tools
  125. Pentest Tools Online
  126. Nsa Hack Tools Download
  127. Pentest Tools Subdomain
  128. Pentest Tools For Windows
  129. Pentest Tools For Mac
  130. Hacking Tools Mac
  131. Hacking Tools Windows
  132. Hacker Tools Free
  133. Pentest Tools Nmap
  134. Hacking Tools Name
  135. Hacking Tools Usb
  136. Hacking Tools Hardware
  137. Hacking Tools For Mac
  138. Best Pentesting Tools 2018
  139. Best Pentesting Tools 2018
  140. Hack Tools Download
  141. Hacker Tool Kit
  142. Pentest Tools Bluekeep
  143. Hacking Tools Online
  144. Hack Tools For Ubuntu
  145. Hack Tools Download
  146. Hacking Tools For Windows Free Download
  147. Hacker Tools
  148. Hack Tools Online
  149. Pentest Tools Apk
  150. Hacking Tools Online
  151. Hacker Tools Apk
  152. Pentest Tools Tcp Port Scanner
  153. Hacking Tools For Pc
  154. Hacking Tools Github
  155. Hacker Tools
  156. Pentest Tools Framework
  157. Underground Hacker Sites
  158. Hacker Tools For Mac
  159. Nsa Hack Tools
  160. Hacker Tools Mac
  161. Hacking Tools For Games
  162. Pentest Recon Tools
  163. Hack Tool Apk No Root
  164. Hacker Tools Github
  165. Hacker Tools For Windows
  166. Hacker Tools Windows
  167. New Hacker Tools
  168. Tools For Hacker
  169. Hack Tools Github
  170. Pentest Tools List
  171. Hacking Tools Download