Skip to content

Commit 66ccc20

Browse files
author
bitsadmin
committed
NoPowerShell v1.25
1 parent 16b475a commit 66ccc20

8 files changed

Lines changed: 583 additions & 16 deletions

File tree

NoPowerShell.cna

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# https://github.com/bitsadmin
99
#
1010

11-
$binary = "scripts/NoPowerShell.exe";
11+
$binary = "NoPowerShell.exe";
1212
$help = "Execute a command via the reflective NoPowerShell commandline";
1313
beacon_command_register("nps", $help, "Use: nps [command]\n\n$help");
1414

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,22 @@ Reasons to use NoPowerShell:
2727
## Examples
2828
See [CHEATSHEET.md](https://github.com/bitsadmin/nopowershell/blob/master/CHEATSHEET.md).
2929

30-
## Install in Cobalt Strike
31-
1. Copy both `NoPowerShell.exe` and `NoPowerShell.cna` to the **scripts** subfolder of Cobalt Strike
32-
2. Launch Cobalt Strike and load the `NoPowerShell.cna` script in the Script Manager
33-
3. Interact with a beacon and execute commands using the `nps` command
30+
## Use in Cobalt Strike via execute-assembly
31+
Use Cobalt Strike's `execute-assembly` command to launch the `NoPowerShell.exe`. For example `execute-assembly /path/to/NoPowerShell.exe Get-Command`.
32+
Optionally `NoPowerShell.cna` can be used to add the `nps` alias to Cobalt Strike.
33+
34+
## Use in Cobalt Strike via BOF.NET
35+
1. Install the BOF.NET BOF from [https://github.com/CCob/BOF.NET]
36+
2. Load the BOF.NET runtime: `bofnet_init`
37+
3. Load the NoPowerShell module: `bofnet_load /path/to/NoPowerShell.dll`
38+
4. Execute NoPowerShell cmdlets: `bofnet_execute NoPowerShell.Program Get-Command`
39+
40+
## Use in Cobalt Strike using @williamknows fork of BOF.NET
41+
This fork allows running regular .NET executables
42+
1. Obtain and compile @williamknows' fork of the BOF.NET from [https://github.com/williamknows/BOF.NET]
43+
2. Load the BOF.NET runtime: `bofnet_init`
44+
3. Load the NoPowerShell module: `bofnet_load /path/to/NoPowerShell.exe`
45+
4. Execute NoPowerShell cmdlets: `bofnet_executeassembly NoPowerShell Get-Command`
3446

3547
## Launch via rundll32
3648
1. Create a new shortcut to `NoPowerShell.dll` file (drag using right click -> Create shortcuts here)

0 commit comments

Comments
 (0)