Rapid7

module

OS Command Exec, Unix Command Shell, Bind TCP (via Perl)

Disclosed
N/A
Created
Jun 9, 2025

Description

Execute an OS command from PHP.

Listen for a connection and spawn a command shell via perl

Authors

Spencer McIntyre
Samy [email protected]
cazz [email protected]

Platform

PHP

Architectures

php

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

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.