!C99Shell v. 1.0 pre-release build #13!

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/usr/local/lib/php/test/DB/tests/   drwxr-xr-x
Free 318.29 GB of 458.09 GB (69.48%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

$dbh
->setErrorHandling(PEAR_ERROR_DIE);

$tmpfile tempnam("/tmp""phptmp");
register_shutdown_function("my_shutdown");
$fp fopen($tmpfile"w");
$filedata "opaque\nplaceholder\ntest";
fwrite($fp$filedata);
fclose($fp);

// 1) Multiple prepare/exec INSERT queries
echo "------------1------------\n";

$sth1 $dbh->prepare("INSERT INTO phptest (a, b) VALUES(?, 'a')");
$sth2 $dbh->prepare("INSERT INTO phptest (a,b) VALUES(?,?)");
$sth3 $dbh->prepare("INSERT INTO phptest (a,b,c) VALUES(?,?,&)");
print 
"sth1,sth2,sth3 created\n";

if ((
$res $dbh->execute($sth1, array(72))) == DB_OK) {
    print 
"sth1 executed\n";
}
if ((
$res $dbh->execute($sth2, array(72,'bing'))) == DB_OK) {
    print 
"sth2 executed\n";
}
if ((
$res $dbh->execute($sth3, array(72,'gazonk',$tmpfile))) == DB_OK) {
    print 
"sth3 executed\n";
}
print_results();

// 2) One prepared, multiple time executed
echo "\n------------2------------\n";

$dbh->query('DELETE FROM phptest');
$sth $dbh->prepare("INSERT INTO phptest (a,b,c) VALUES(?,?,&)");
$data = array(
    
=> array(72'set1'$tmpfile),
    
=> array(72'set2'$tmpfile),
    
=> array(72'set3'$tmpfile)
);
$dbh->executeMultiple($sth$data);
print_results();

// 3) freePrepared() test
echo "\n------------3------------\n";

if (
$dbh->freePrepared($sth)) {
    echo 
'TRUE';
} else {
    echo 
'FALSE';
}
echo 
"\n";
if (
$dbh->freePrepared(666)) {
    echo 
'TRUE';
} else {
    echo 
'FALSE';
}
echo 
"\n";

// 4) SELECTs tests
echo "\n------------4------------\n";

$sth1 $dbh->prepare("SELECT * FROM phptest WHERE a = ? ORDER BY b");
print_4($sth1'72');
print_4($sth1'71');
$sth2 $dbh->prepare("SELECT * FROM phptest WHERE b = ? ORDER BY b");
print_4($sth2'set1');
$sth3 $dbh->prepare("SELECT * FROM phptest WHERE c = & ORDER BY b");
print_4($sth3$tmpfile);

function 
my_shutdown() {
    global 
$tmpfile;
    
unlink($tmpfile);
}

function 
print_results() {
    global 
$dbh;
    print 
"results:\n";
    
$sth $dbh->query("SELECT * FROM phptest WHERE a = 72 ORDER BY b");
    while (
$row $sth->fetchRow(DB_FETCHMODE_ORDERED)) {
        print 
'|' implode(" - "$row) . "|\n";
    }
}

function 
print_4($sth$bind) {
    global 
$dbh;
    
$res $dbh->execute($sth$bind);
    while (
$row $res->fetchRow(DB_FETCHMODE_ORDERED)) {
        print 
'|' implode(" - "$row) . "|\n";
    }
    echo 
"~~\n";
}

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.015 ]--