!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/subjects/codegen/   drwxrwxr-x
Free 83.37 GB of 96.73 GB (86.2%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

    
require ("parsing/scalar_array.php");

    function 
write ($init$insert)
    {
        echo 
"--------------------\n";
        echo 
"checking early write\n";
        
$x $init;
        
$x[3] = $insert// write in string
        
var_dump ($x[2]);  // read val before
        
var_dump ($x[3]); // read same val
        
var_dump ($x[4]);  // read val after
        
var_dump ($x[17]); // read out of string
        
var_dump ($x);

        echo 
"--------------------\n";
        echo 
"checking late write\n";
        
$x $init;
        
$x[17] = $insert;
        
var_dump ($x[17]); // read same val
        
var_dump ($x);

        echo 
"--------------------\n";
        echo 
"checking very early write\n";
        
$x $init;
        
$x[-3] = $insert;
        
var_dump ($x[-3]); // read same val
        
var_dump ($x[-1]); // read early
        
var_dump ($x);


        if (
is_string ($init))
            return; 
// not supported, move to separate test case

        
echo "--------------------\n";
        echo 
"checking early (ref) write\n";
        
$x $init;
        
$x[3] =& $insert// write in string
        
var_dump ($x[2]);  // read val before
        
var_dump ($x[3]); // read same val
        
var_dump ($x[4]);  // read val after
        
var_dump ($x[170]); // read out of string
        
var_dump ($x);

        echo 
"--------------------\n";
        echo 
"checking late (ref) write\n";
        
$x $init;
        
$x[170] =& $insert;
        
var_dump ($x[170]); // read same val
        
var_dump ($x);
    }
    
    function 
push ($init$insert)
    {
        if (
is_string ($init))
            return; 
// not supported. Move to separate test case

        // early and late dont make sense here
        
echo "--------------------\n";
        echo 
"checking push\n";
        
$x $init;
        
$x[] = $insert// write in string
        
var_dump ($x[2]);  // read val before
        
var_dump ($x[3]); // read same val
        
var_dump ($x[4]);  // read val after
        
var_dump ($x[17]); // read out of string
        
var_dump ($x);

        echo 
"--------------------\n";
        echo 
"checking (ref) push\n";
        
$x $init;
        
$x[] =& $insert// write in string
        
var_dump ($x[2]);  // read val before
        
var_dump ($x[3]); // read same val
        
var_dump ($x[4]);  // read val after
        
var_dump ($x[170]); // read out of string
        
var_dump ($x);
    }

    foreach (
$scalar_array as $init)
    {
        foreach (
$scalar_array as $insert)
        {
            echo 
"--------------------\n";
            echo 
"Init: ";
            
var_dump ($init);
            echo 
"Insert: ";
            
var_dump ($insert);

            
write ($init$insert);
            
push ($init$insert);
        }
    }

    
// TODO objects and resources

?>

:: 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.0045 ]--