main.php 698 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. // Load SO
  3. $inicial = preg_split('/ /', exec('bash ../script/main.sh'));
  4. $server = $inicial[1];
  5. // Reiceving commands
  6. $command = isset($_GET['cmd']) ? $_GET['cmd'] : null;
  7. //
  8. $output = "Teste";
  9. ?>
  10. <DOCTYPE html>
  11. <html>
  12. <head>
  13. <title>Shelllost</title>
  14. <meta charset="utf-8"/>
  15. </head>
  16. <body>
  17. <h1>Welcome to reversing shell</h1>
  18. <form method='get' action='#'>
  19. <input type='text' style='' name='cmd' placeholder='type command, like: ls'/>
  20. <input type='text' name='server' placeholder='servodor' value='<?= $server ?>'/>
  21. <input type='submit'/>
  22. </form>
  23. <div id=out>
  24. <pre><?= $output ?></pre>
  25. </div>
  26. </body>
  27. </html>