Saturday, January 20, 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. Hack Tools Online
  2. Hacker Tools For Windows
  3. Hack Tools Online
  4. Hacking Tools
  5. Usb Pentest Tools
  6. Pentest Tools Website Vulnerability
  7. Hacker
  8. Hacking Tools For Games
  9. Hacking Tools Online
  10. Hacker Tools Free Download
  11. Hack Tools 2019
  12. Hacking Tools Windows 10
  13. Hacker Tools Online
  14. Pentest Tools Free
  15. Hack Tool Apk
  16. New Hack Tools
  17. Hacker Tools For Mac
  18. Physical Pentest Tools
  19. Easy Hack Tools
  20. Hacker Tools List
  21. Hacker Tools Free Download
  22. Hacking Tools For Mac
  23. Free Pentest Tools For Windows
  24. Pentest Tools Website
  25. Termux Hacking Tools 2019
  26. Kik Hack Tools
  27. Hacking Tools For Windows 7
  28. Ethical Hacker Tools
  29. Best Hacking Tools 2019
  30. Hacker Tools
  31. Pentest Tools Open Source
  32. World No 1 Hacker Software
  33. Install Pentest Tools Ubuntu
  34. Pentest Reporting Tools
  35. Hack Tools Pc
  36. Hack Tools For Pc
  37. Hackrf Tools
  38. Hack Tool Apk
  39. Pentest Tools Nmap
  40. Free Pentest Tools For Windows
  41. Pentest Tools Alternative
  42. Pentest Tools Url Fuzzer
  43. Hack Tools For Ubuntu
  44. Blackhat Hacker Tools
  45. Hack Tools Github
  46. Hacking Tools Name
  47. Hacking Tools And Software
  48. Hacker Tools Free
  49. How To Hack
  50. Wifi Hacker Tools For Windows
  51. Hacker Tools 2020
  52. Pentest Tools For Ubuntu
  53. Android Hack Tools Github
  54. Pentest Tools Nmap
  55. Pentest Tools For Mac
  56. Hack Tools Online
  57. Hack Tools Mac
  58. Hacks And Tools
  59. Nsa Hacker Tools
  60. Hacker Tools Mac
  61. Hacker Tools For Pc
  62. Hacking Apps
  63. Underground Hacker Sites
  64. How To Install Pentest Tools In Ubuntu
  65. Hackrf Tools
  66. Hack Tools For Pc
  67. Free Pentest Tools For Windows
  68. Hacker Tools For Windows
  69. Hacker Tools Free
  70. Pentest Tools List
  71. Free Pentest Tools For Windows
  72. Pentest Tools Review
  73. Hak5 Tools
  74. Hacking Tools Software
  75. Hacker Tools For Windows
  76. Pentest Tools Subdomain
  77. Hacker Tools Free Download
  78. Hacker Tools Software
  79. Hacking Tools For Windows Free Download
  80. Hacking Tools And Software
  81. Nsa Hack Tools Download
  82. Hacking Tools Software
  83. Wifi Hacker Tools For Windows
  84. Hack Tools For Mac
  85. Hacking Tools For Mac
  86. Pentest Automation Tools
  87. Hacker Tools 2019
  88. How To Install Pentest Tools In Ubuntu
  89. Pentest Tools Url Fuzzer
  90. Computer Hacker
  91. Kik Hack Tools
  92. Hack Tools For Windows
  93. Hacker Tools List
  94. Pentest Tools Framework
  95. Hacker Tools 2019
  96. Install Pentest Tools Ubuntu
  97. Pentest Tools Android
  98. Hacker Tools For Ios
  99. Pentest Tools Alternative
  100. Tools Used For Hacking
  101. How To Install Pentest Tools In Ubuntu
  102. Pentest Tools Android
  103. Pentest Tools Url Fuzzer
  104. Blackhat Hacker Tools
  105. Nsa Hack Tools Download
  106. Game Hacking
  107. Pentest Tools Alternative
  108. Hacker Tools Online
  109. Hacker Tools For Windows
  110. Pentest Box Tools Download
  111. Hacking Tools For Pc
  112. Pentest Tools For Mac
  113. Hacker Tool Kit
  114. Hack Tools For Pc
  115. Hacking Tools Github
  116. Hackrf Tools
  117. Hack Tools Online
  118. Pentest Tools Kali Linux
  119. Hacking Tools Github
  120. Best Hacking Tools 2020
  121. Pentest Tools Kali Linux
  122. Hack Tools For Mac
  123. Hacking Tools For Windows
  124. Hacker Tools For Ios
  125. Hacking Tools Usb
  126. Hacker Tools For Windows
  127. Hacker Tools For Mac

No comments:

Post a Comment