exploiting-sql-injection-with-sqlmap

Featured

Detecting and exploiting SQL injection vulnerabilities using sqlmap to extract database contents during authorized penetration tests.

AI & Automation 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Exploiting SQL Injection with sqlmap ## When to Use - During authorized web application penetration testing engagements - When manual testing reveals potential SQL injection points in parameters, headers, or cookies - For validating SQL injection findings from automated scanners like Burp Suite or OWASP ZAP - When you need to demonstrate the impact of SQL injection by extracting data from backend databases - During CTF challenges involving SQL injection exploitation ## Prerequisites - **Authorization**: Written penetration testing agreement (Rules of Engagement) for the target - **sqlmap**: Install via `pip install sqlmap` or `apt install sqlmap` on Kali Linux - **Python 3.6+**: Required runtime for sqlmap - **Burp Suite** (optional): For capturing and replaying HTTP requests - **Target access**: Network connectivity to the target web application - **Browser with proxy**: Firefox with FoxyProxy for intercepting requests ## Workflow ### Step 1: Identify Potential Injection Points Manually browse the application and identify parameters that interact with the database. Use Burp Suite to capture requests. ```bash # Start Burp Suite proxy and capture requests # Look for parameters in URLs, POST bodies, cookies, and headers # Example target URL with a suspected injectable parameter: # https://target.example.com/products?id=1 # Test manually for basic SQL injection indicators curl -k "https://target.example.com/products?id=1'" # Look for SQL error messages like: # - "You ...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category