Description
Execute an OS command from PHP.
Creates an interactive shell via bash's builtin /dev/tcp.
This will not work on circa 2009 and older Debian-based Linux distributions (including Ubuntu) because they compile bash without the /dev/tcp feature.
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/reverse_bashmsf undefined(reverse_bash) > show actions ...actions...msf undefined(reverse_bash) > set ACTION < action-name >msf undefined(reverse_bash) > show options ...show and set options...msf undefined(reverse_bash) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub