Parse POST parameter to PHP file using CLI
up vote
0
down vote
favorite
The content of my file: $ cat z-cmd.php <?php system($_POST['z']); ?> What I tried: $ QUERY_STRING='z=touch plm' php-cgi z-cmd.php X-Powered-By: PHP/5.6.36 Content-type: text/html; charset=UTF-8 <br /> <b>Warning</b>: system(): Cannot execute a blank command in <b>/home/jeremy/z-cmd.php</b> on line <b>3</b><br /> How can I run commands using the z POST parametter?
php php5
share | improve this question
asked Nov 23 at 3:11
Nitescu Lucian
129 1 10
...