module

PHP Exec

Disclosed
N/A
Created
May 29, 2025

Description

Execute a PHP payload as an OS command from a Posix-compatible shell

Authors

Spencer McIntyre
msutovsky-r7
egypt egypt@metasploit.com

Platform

Unix

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/unix/php/meterpreter_reverse_tcp
msf payload(meterpreter_reverse_tcp) > show actions
...actions...
msf payload(meterpreter_reverse_tcp) > set ACTION < action-name >
msf payload(meterpreter_reverse_tcp) > show options
...show and set options...
msf payload(meterpreter_reverse_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.