Sunday, August 30, 2020

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/

Continue reading


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

No comments:

Post a Comment