404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.144.40.81: ~ $
<?php
// $Rev: 174 $
error_reporting(E_ALL);
include_once('../simple_html_dom.php');

$dir = './html/';

$files = array(
    array('name'=>'empty.htm',          'url'=>''),
    array('name'=>'smarty_1.htm',       'url'=>'guestbook.tpl'),
    array('name'=>'smarty_2.htm',       'url'=>'guestbook_form.tpl'),
    
    array('name'=>'google.htm',         'url'=>'http://www.google.com/'),
    array('name'=>'senate.htm',         'url'=>'http://www.senate.gov/legislative/LIS/roll_call_lists/roll_call_vote_cfm.cfm?congress=101&session=2&vote=00317'),
    array('name'=>'cyberciti.htm',      'url'=>'http://www.cyberciti.biz/tips/configure-ubuntu-grub-to-load-freebsd.html'),
    array('name'=>'myspace.htm',        'url'=>'http://www.myspace.com/'),
    array('name'=>'mootools.htm',       'url'=>'http://www.mootools.net/'),
    array('name'=>'jquery.htm',         'url'=>'http://jquery.com/'),
    array('name'=>'scriptaculo.htm',    'url'=>'http://script.aculo.us/'),
    array('name'=>'apache.htm',         'url'=>'http://www.apache.org/'),
    array('name'=>'microsoft.htm',      'url'=>'http://www.microsoft.com/'),
    array('name'=>'slashdot.htm',       'url'=>'http://www.slashdot.org/'),
    array('name'=>'ror.htm',            'url'=>'http://www.rubyonrails.org/'),
    array('name'=>'yahoo.htm',          'url'=>'http://www.yahoo.com/'),
    array('name'=>'phpbb.htm',          'url'=>'http://www.phpbb.com/'),
    array('name'=>'python.htm',         'url'=>'http://www.python.org/'),
    array('name'=>'lua.htm',            'url'=>'http://www.lua.org/'),
    array('name'=>'php.htm',            'url'=>'http://www.php.net/'),
    array('name'=>'ibm.htm',            'url'=>'http://www.ibm.com/'),
    array('name'=>'java.htm',           'url'=>'http://java.sun.com/'),
    array('name'=>'flickr.htm',         'url'=>'http://www.flickr.com/tour/upload/'),
    array('name'=>'amazon.htm',         'url'=>'http://www.amazon.com/'),
    array('name'=>'youtube.htm',        'url'=>'http://www.youtube.com/watch?v=kib05Ip6GSo&feature=bz302'),
);


echo 'memory: '.memory_get_usage().'<br>';
$dom = new simple_html_dom;

foreach($files as $f) {
    // get file from url
    if($f['url']!='') file_put_contents($dir.$f['name'], file_get_contents($f['url']));
    else file_put_contents($dir.$f['name'], '');

    $start = microtime();
    $dom->load(file_get_contents($dir.$f['name']), false);
    list($eu, $es) = explode(' ', microtime());
    list($bu, $bs) = explode(' ', $start);
    echo sprintf('(%.1f)', ((float)$eu+(float)$es-(float)$bu-(float)$bs)*1000).'<br>';
    
    if (file_get_contents($dir.$f['name'])!=$dom->save()) {
        echo "[<font color='red'>failed</font>] ".$f['name']."<br>";
        $dom->save($dir.$f['name'].'.error');
    }
    else
        echo "[success] ".$f['name']."<br>";

    echo 'memory: '.memory_get_usage().'<br>';

    flush();
    set_time_limit(0);
}

$dom->clear();
unset($dom);
echo '<br>memory: '.memory_get_usage().'<br>';

?>

Filemanager

Name Type Size Permission Actions
.svn Folder 0755
html Folder 0755
reader Folder 0755
all_test.php File 745 B 0644
callback_testcase.php File 1.8 KB 0644
dom_testcase.php File 11.4 KB 0644
element_testcase.php File 8.21 KB 0644
invalid_testcase.php File 18.25 KB 0644
jquery-1.2.3.pack.js File 29.15 KB 0644
mass_test.php File 2.98 KB 0644
memory_test.php File 4.61 KB 0644
misc_testcase.php File 1.81 KB 0644
performance_test.php File 792 B 0644
selector_testcase.php File 21.33 KB 0644
slick_test.php File 892 B 0644
slickspeed.htm File 113.89 KB 0644
std_testcase.php File 6.67 KB 0644
strip_testcase.php File 4.34 KB 0644