Skip to content

Repository files navigation

PowerUpSQLSharp

C# rewrite of NetSPI/PowerUpSQL with domain-driven architecture, PowerUpSQL-compatible CLI names, standalone execution, and Sliver execute-assembly --in-process support.

Requirements

  • .NET Framework 4.8
  • Visual Studio 2022 or MSBuild 17+

Build

powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\release.ps1

Output: dist\PowerUpSQLSharp.exe

If you see NETSDK1004 (missing project.assets.json), run dotnet restore once or pull the latest release.ps1 (restore runs automatically).

Usage

PowerUpSQLSharp.exe --help
PowerUpSQLSharp.exe Get-SQLInstanceLocal
PowerUpSQLSharp.exe Get-SQLInstanceLocal --help
PowerUpSQLSharp.exe Get-SQLServerInfo -Instance SQL01 -Username sa -Password "YourPassword"

Full command examples (all 108 functions): docs/Usage-Examples.md.

Integration testing

For a domain + SQL Server lab (e.g. SQL Server 2014):

Copy-Item .\scripts\test-env.example.ps1 .\scripts\test-env.ps1
# Edit test-env.ps1 with your instance, host, and credentials

.\scripts\Run-IntegrationTests.ps1

See docs/Integration-TestPlan.md for the phased test matrix and PowerUpSQL comparison steps.

Documentation

License

BSD-3-Clause (see PowerUpSQL upstream)

About

C# domain-driven rewrite of NetSPI PowerUpSQL. SQL Server security assessment toolkit with 108 PowerUpSQL-compatible CLI commands, single-file .NET 4.8 exe, and Sliver execute-assembly in-process support.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages