NoPowerShell is a tool implemented in C# which supports executing PowerShell-like commands while remaining invisible to any PowerShell logging mechanisms. This .NET Framework 2 compatible binary can be loaded in Cobalt Strike to execute commands in-memory. No System.Management.Automation.dll
is used; only native .NET libraries. An alternative usecase for NoPowerShell is to launch it as a DLL via rundll32.exe in a restricted environment: rundll32 NoPowerShell.dll,main
.
This project makes it easy for everyone to extend its functionality using only a few lines of C# code. For more info, see CONTRIBUTING.md.
Latest binaries available from the Releases page. Bleeding edge code available in the DEV branch. To kickstart your NoPowerShell skills, make sure to also check out the cmdlet Cheatsheet.
Sample execution of commandsNoPowerShell is developed to be used with the execute-assembly
command of Cobalt Strike or in a restricted environment using rundll32
. Reasons to use NoPowerShell:
ping
instead of Test-NetConnection
)powerpick
or powershell
cmdlets are not available, they are available in nps
(e.g. cmdlets from the ActiveDirectory module)See CHEATSHEET.md.
Use in Cobalt Strike via execute-assemblyUse Cobalt Strike's execute-assembly
command to launch the NoPowerShell.exe
. For example execute-assembly /path/to/NoPowerShell.exe Get-Command
. Optionally NoPowerShell.cna
can be used to add the nps
alias to Cobalt Strike.
bofnet_init
bofnet_load /path/to/NoPowerShell.dll
bofnet_execute NoPowerShell.Program Get-Command
This fork allows running regular .NET executables
bofnet_init
bofnet_load /path/to/NoPowerShell.exe
bofnet_executeassembly NoPowerShell Get-Command
NoPowerShell.dll
file (drag using right click -> Create shortcuts here)rundll32
and appending ,main
rundll32 C:\Path\to\NoPowerShell.dll,main
When using NoPowerShell from cmd.exe or PowerShell, you need to escape the pipe character (|
) with respectively a caret (^
) or a backtick (`
), e.g.:
ls ^| select Name
ls `| select Name
[System.Security.Principal.WindowsIdentity]::GetCurrent().Name
sc qc
* More *-Item* commands Search-ADAccount Get-ADPrincipalGroupMembership Get-ADOrganizationalUnits * More commands from the ActiveDirectory
PowerShell module * Sysinternals utilities like pipelist
and sdelete
Contributed NoPowerShell cmdlets
Authors of additional NoPowerShell cmdlets are added to the table below. Moreover, the table lists commands that are requested by the community to add. Together we can develop a powerful NoPowerShell toolkit!
Cmdlet Contributed by GitHub Twitter Description Included NoPowerShell cmdlets Cmdlet Module Notes Get-ADGroup ActiveDirectory Get-ADGroupMember ActiveDirectory Get-ADComputer ActiveDirectory Get-ADObject ActiveDirectory Get-ADUser ActiveDirectory Get-ADTrust ActiveDirectory Get-WinStation Additional Get-RemoteSmbShare Additional Get-Whoami Additional whoami.exe /ALL is not implemented yet Expand-Archive Archive Requires .NET 4.5+ Compress-Archive Archive Requires .NET 4.5+ Where-Object Core Get-Help Core Get-Command Core Resolve-DnsName DnsClient Get-LocalGroup LocalAccounts Get-LocalGroupMember LocalAccounts Get-LocalUser LocalAccounts Get-ItemProperty Management Invoke-WmiMethod Management Remove-Item Management Copy-Item Management Get-Content Management Get-ChildItem Management Get-WmiObject Management Get-Process Management Stop-Process Management Get-HotFix Management Get-PSDrive Management Get-ItemPropertyValue Management Set-Clipboard Management Get-DnsClientCache Management Get-ComputerInfo Management Get-Clipboard Management Get-NetRoute NetTCPIP Get-NetIPAddress NetTCPIP Get-NetNeighbor NetTCPIP No support for IPv6 yet Test-NetConnection NetTCPIP Get-GetNetTCPConnection NetTCPIP Get-SmbShare SmbShare Get-SmbMapping SmbShare Format-Table Utility Sort-Object Utility Export-Csv Utility Format-List Utility Select-Object Utility Out-File Utility Write-Output Utility Invoke-WebRequest Utility Measure-Object UtilityAlso make sure to check out the Cheatsheet for examples on how to use these cmdlets.
Various NoPowerShell cmdlets and NoPowerShell DLL include code created by other developers.
Authored by Arris Huijgen (@bitsadmin - https://github.com/bitsadmin/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4