domingo, 21 de janeiro de 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 posts

Proxying Newer Versions Of Android With Genymotion

 I did a quick video last night for someone on proxying the newer version of Android SDK with Genymotion as the changes back in version 7 make it a bit more difficult to proxy https traffic and I get a lot of questions on a regular basis even years later... 

Hopefully this video helps anyone else out that may be running into the same troubles.. This is proxying the latest version of android as of this writing which is version 10 but should work just fine on newer versions unless there is a major change in the future again that specifically restricts this method.. 


Mobile Hacking - Proxying Newer Versions of Android with Burp and Genymotion:




You can follow along with the video but additionally for reference below are the commands used: 



Step 1: Create a Burp Cert for Android

  1. Export the certificate from burp to .DER format via the proxy tab import/export

  2. Change the format from der to pem: 

       openssl x509 -inform DER -in cacert.der -out cacert.pem


  3. Pull the hash of the certificate subject name and rename the cert to the hah.0 format: 

       openssl x509 -inform PEM -subject_hash_old -in cacert.pem |head -1

       mv cacert.pem <hash>.0


Step 2: Create a new Emulator: 

  1. Create a version 10 Galaxy x10 with bridge mode networking (or whatever newest version required)

  2. Click 3 dots under my installed devices in genymotion --> Edit --> Change to bridged mode


Step 3: Setup certificate on device

  1. Check devices and push the certificate to the SD card: 

     adb devices

     adb push <hash.0> /sdcard/


  2. Connect to the device and install the cert with proper permissions: 

     adb remount

     adb shell

     mv /sdcard/<hash.0> /system/etc/security/cacerts/

     chmod 644 /system/etc/security/cacerts/<hash.0>


  3. Reboot the device: 

     reboot


Step 4: Verify and setup the proxy: 

  1. Settings --> search for Trusted --> Scroll down till you see portswigger

  2. Setup your Burp proxy to the correct IP/Port combo of your external interface IP

  3. In Genymotion click Settings --> wifi  --> Gear -> Pencil Icon -> Add in Proxy info under advanced

  4. Go forth and proxy things

Related links

HOW TO HACK A FACEBOOK ACCOUNT? STEP BY STEP

Phishing is the way to obtain sensitive information such as usernames, passwords, and credit card details or any other confidential information, often for malicious reasons, by disguising as a trustworthy entity in an electronic communication. Phishing is typically carried out by several ways like email spoofing or instant messaging, and it often directs users to enter personal information at a fake website, the look and feel of which are almost identical to the legitimate one. In this tutorial, I will be showing how to hack a facebook account through phishing.

SO, HOW TO HACK A FACEBOOK ACCOUNT?

There are few techniques by which you can hack a facebook account but here the easiest way we'll discuss.

REQUIREMENTS

  1. Phisher Creator ( Fake page generator)
  2. Hosting ( To host a fake page). Either you can purchase one or also can use free hosting like 110mb.com. But in free hosting, the account will be suspended after a few logins.

STEPS TO FOLLOW

  1. Download phisher creator and run it.
  2. As you run it, you'll see a screen like the shown below. Here you can type the fields as I have done. 
  3. Once you hit the Create Phisher button, it'll create a fake facebook index page and fb_login.php file in the output folder.
  4. Now you need to upload these both files index.html and fb_login.php to the hosting account.
  5. After uploading the file, open the index.html file path. It will open up a page like same facebook page as you can see below.
  6. We're all done, now we just need to copy the URL of our fake page and distribute it to the victims, you just have to trick them with your social engineering that how you convenience them to open this URL to login facebook. Once someone tries to login through your fake facebook page URL, you'll get their account username and password in the log_file.txt in the same directory of hosting where you have uploaded index.php and fb_login.php.
Hope it'll work fine for you and you have learned how to hack a facebook account. If you find any question or query related to this, feel free to comment below or you can also follow another way that might work well for you to hack facebook account.

Continue reading


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