Hi all, I am working through the starting-point challenges, and on the “three” machine I am running into an error.
I need to create a PHP file called “shell.php” with the system get command in it. But when I insert the command (below), I get an error (also below).
This is what I am trying to insert (tried with and without sudo before):
echo '<?php system($_GET["cmd"]); ?>' > shell.php
And the error:
bash: shell.php: Permission denied
Can anyone help? Am I missing a command that will allow me to create php files? I tried doing a chmod u+x but as the file hasn’t been created I cannot assign permissions to it.
Thanks in advance!