module

Python Exec, Python Execute Command

Disclosed
N/A
Created
2024-11-01

Description

Execute a Python payload from a command.

Execute an arbitrary OS command. Compatible with Python 2.7 and 3.4+.

Author

Spencer McIntyre

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/python/exec
msf payload(exec) > show actions
...actions...
msf payload(exec) > set ACTION < action-name >
msf payload(exec) > show options
...show and set options...
msf payload(exec) > 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.