Operator On The Wire
Join
← Back to Knowledge Base
RED TEAM / C2 / COBALT STRIKE / COMMANDS

Execution

CommandUsageNote
powershellpowershell [commandlet] [arguments]Execute the command using powershell. Becomes: powershell -nop -exec bypass -EncodedCommand YOURINPUTGOESHERE
powerpickpowerpick [commandlet] [arguments]Fork and run command which starts Beacon's spawnto process.
psinjectpsinject [pid] [arch] [commandlet] [arguments]Same as powerpick, but injects into target process instead of spawning a new one.
powershell-importpowershell-import C:\LOCAL\SCRIPT.ps1Import external PowerShell scripts. Beacon can only hold one imported script at a time.
execute-assemblyexecute-assembly [/path/to/file.exe] [arguments]Uses reflective DLL to load CLR and execute a .NET assembly from memory.
inline-executeinline-execute [/path/to/file.o] [args]Executes a Beacon Object File (BOF) directly inside the Beacon process.
shellshell [args]Passes arguments into "cmd.exe /c"
runrun [binary + cmdline]Direct execution of a program