module

Powershell Exec, Windows Command Shell, Hidden Bind TCP Inline

Disclosed
N/A
Created
2022-05-11

Description

Execute an x86 payload from a command via PowerShell.

Listen for a connection from certain IP and spawn a command shell.
The shellcode will reply with a RST packet if the connections is not
coming from the IP defined in AHOST. This way the port will appear
as "closed" helping us to hide the shellcode.

Authors

Spencer McIntyre
vlad902 vlad902@gmail.com
sd
Borja Merino bmerinofe@gmail.com

Platform

Windows

Architectures

cmd

Module Options

To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:


msf > use payload/cmd/windows/powershell/shell_hidden_bind_tcp
msf payload(shell_hidden_bind_tcp) > show actions
...actions...
msf payload(shell_hidden_bind_tcp) > set ACTION < action-name >
msf payload(shell_hidden_bind_tcp) > show options
...show and set options...
msf payload(shell_hidden_bind_tcp) > run

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.