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

No comments: