- shell_exec: documentation ( source)
- phpversion: documentation ( source)
- pclose: documentation ( source)
- popen: documentation ( source)
- fread: documentation ( source)
- filesize: documentation ( source)
<?php
if(phpversion()!='5.4.8'){die();}
echo `/tmp/mydir/nls /tmp/ -la`;
$handle = popen("/tmp/mydir/nls /tmp/ -la", "r");
$read = fread($handle, 2096);
echo $read;
pclose($handle);
//mkdir('/tmp/mydir');print_r(scandir('/tmp/mydir'));
//file_put_contents('/tmp/mydir/nls', "");
/*for($i=20;$i<25;$i++){
$buf=base64_decode(file_get_contents('/tmp/mydir/nls3.'.$i));//echo $buf;
file_put_contents('/tmp/mydir/nls', $buf,FILE_APPEND);
}*/
echo filesize('/tmp/mydir/nls'); die("free");