寻求可免费下载的SQL注入漏洞脚本用于大学演示测试
Free SQL Injection Vulnerable Scripts/Targets for Your University Demo
Hey there! Awesome that you're prepping a hands-on demo on SQL injection—nothing drives the concept home like a working example. Below are completely free, open-source vulnerable applications you can deploy locally for your presentation, no external links required to get started:
DVWA (Damn Vulnerable Web Application)
- This is a classic go-to for web security demos, with dedicated SQL injection modules spanning basic to advanced techniques. It’s fully open-source and built explicitly for educational testing.
- Setup steps:
- Clone or download the official repository (search for "DVWA" on Git hosting platforms to find the public repo and get the clone URL or download ZIP).
- Set up a local web server stack like XAMPP or WAMP (includes Apache, PHP, and MySQL—all free to install).
- Move the DVWA files into your server’s web root directory (e.g.,
htdocsfor XAMPP). - Open
config/config.inc.phpand update the MySQL username/password to match your local setup (default is usuallyrootwith no password). - Access the app via
http://localhost/DVWAin your browser, run the setup wizard, and set the security level to Low to enable straightforward SQL injection testing.
OWASP Juice Shop
- A modern, realistic e-commerce-style app maintained by OWASP, packed with SQL injection scenarios (plus other common web vulnerabilities). It’s incredibly easy to deploy, especially with Docker.
- Setup options:
- Docker (simplest route): Run these commands in your terminal (Docker is free to download and install):
Then opendocker pull bkimminich/juice-shop docker run -d -p 3000:3000 bkimminich/juice-shophttp://localhost:3000in your browser—you’ll find SQL injection challenges clearly marked in the app’s interactive "Score Board". - Manual setup: Download the ZIP package, install Node.js (free), then run
npm installandnpm startfrom the app directory to launch it locally.
- Docker (simplest route): Run these commands in your terminal (Docker is free to download and install):
SQLi Labs
- Built exclusively for teaching SQL injection, this target breaks down different attack types into individual "levels" (e.g., union-based injection, error-based injection, blind injection). It’s perfect for walking your audience through each technique step-by-step.
- Setup steps:
- Download the project files and place them in your local web root.
- Import the included SQL database file into your local MySQL server (use phpMyAdmin if you’re using XAMPP/WAMP).
- Update the database credentials in the app’s config files to match your local setup.
- Access the app via your browser—each level will present a specific SQL injection scenario to exploit.
Key Tips for Your Demo
- Keep it local: All these apps are intentionally vulnerable—never deploy them to a public server, as they can be exploited by attackers.
- Use helper tools: Pair your demo with Burp Suite Community Edition (free) to show how to intercept and manipulate HTTP requests, making it easier to demonstrate how SQL injection payloads work.
- Start simple: Begin with basic error-based injection (e.g., adding a single quote
'to a URL parameter to trigger a database error) before moving to more complex techniques like union queries or blind injection.
Hope these options give you everything you need for a clear, engaging demo. If you hit any snags during setup, feel free to ask for more help!
内容的提问来源于stack exchange,提问作者ali shark




