Update CommandExec-4.php

To see hidden file windows cmd needs / !!
This commit is contained in:
OguzTozkoparan 2018-12-01 00:09:24 +03:00 committed by GitHub
parent a3c9f31aa0
commit 832c0018a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@
} }
if(isset($_GET["typeBox"])){ if(isset($_GET["typeBox"])){
$target =$_GET["typeBox"]; $target =$_GET["typeBox"];
$substitutions = array('&&' => '',';' => '','/' => '','\\' => '' ); $substitutions = array('&&' => '',';' => '');
$target = str_replace(array_keys($substitutions),$substitutions,$target); $target = str_replace(array_keys($substitutions),$substitutions,$target);
echo shell_exec($target); echo shell_exec($target);
if($_GET["typeBox"] == "secret") if($_GET["typeBox"] == "secret")