Nishang is a framework and collection of scripts and payloads which enables usage of PowerShell for penetration testing, offensive security and red teaming. Nishang is useful during all phases of penetration testing.
Import all the scripts in the current PowerShell session (PowerShell v3 onwards).
[code]PS C:\nishang> Import-Module .\nishang.psm1
[/code] Use the individual scripts with dot sourcing.
[code]PS C:\nishang> . C:\nishang\Gather\Get-Information.ps1
PS C:\nishang> Get-Information
[/code] To get help about any script or function, use:
[code]PS C:\nishang> Get-Help [scriptname] -full
[/code] Note that the help is available for the function loaded after running the script and not the script itself since version 0.3.8. In all cases, the function name is same as the script name.
For example, to see the help about Get-WLAN-Keys.ps1, use
[code]PS C:\nishang> . C:\nishang\Get-WLAN-Keys.ps1