SQL Injection
SQL Injection
DVWA
• Open C:/XAMPP
• Paste this DVWA folder inside the htdocs
folder of xampp.
Coding Execution
Basic Injection
• Input "1" into the text box.
• Click Submit.
• Always true scenario
• Input into the User ID Textbox (See Picture).
– %' or '0'='0
• Click Submit
• Display the Database version
• Input into the User ID Textbox (See Picture).
– %' or 0=0 union select null, version() #
• Click Submit
• Display the Database User
• Input the below text into the User ID Textbox (See
Picture).
– %' or 0=0 union select null, user() #