Payloads & Shells

Pro/Con - Type

Notes and commands for Pro/Con - Type.

2024-02-27
Tags payloadspro-con-type

Use CMD when

You are on an older host that may not include PowerShell.

When you only require simple interactions/access to the host.

When you plan to use simple batch files, net commands, or MS-DOS native tools.

When you believe that execution policies may affect your ability to run scripts or other actions on the host.

Use PowerShell when

You are planning to utilize cmdlets or other custom-built scripts.

When you wish to interact with.NET objects instead of text output.

When being stealthy is of lesser concern.

If you are planning to interact with cloud-based services and hosts.

If your scripts set and use Aliases.

WSL - Problems

https://www.bleepingcomputer.com/news/security/new-malware-uses-windows-subsystem-for-linux-for-stealthy-attacks/

PS on Windows and WSL on Windows

  • network traffic sent between host and OS are not monitored and correctly checked by AV. so its sneaky