Update CommandExec-2.php

This commit is contained in:
OguzTozkoparan 2018-11-30 02:42:39 +03:00 committed by GitHub
parent 783ca1716e
commit 6e8d2c85e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,8 +7,6 @@
<div style="background-color:#c9c9c9;padding:15px;">
<button type="button" name="homeButton" onclick="location.href='../homepage.html';">Home Page</button>
<button type="button" name="mainButton" onclick="location.href='commandexec.html';">Main Page</button>
<button type="button" name="nextButton" onclick="location.href='CommandExec-3.php';">Next Level</button>
<button type="button" name="prevButton" onclick="location.href='CommandExec-1.php';">Previous Level</button>
</div>
<div style="background-color:#FEFE9A;padding:20px;">
<h1 align="center">HELLO</h1>
@ -24,9 +22,9 @@
$substitutions = array('&&' => '',';' => '', );
$target = str_replace(array_keys($substitutions),$substitutions,$target);
echo shell_exec($target);
if($_GET["typeBox"] == "flag2")
echo "Welldone! You did great job.";
}
if($_GET["typeBox"] == "flag2")
echo "Welldone! You did great job.";
?>
</div>
</body>