原生类文件读取

Posted on 2020-06-05,1 min read
$a=new DirectoryIterator('/');foreach($a as $b){echo $a->getFilename();};
$a=new FilesystemIterator('/');foreach($a as $b){echo $a->getFilename();};
new finfo(0,'/flaggggg');
$a=new GlobIterator('*.php');foreach($a as $b){echo($a->key());};
$a=new SplFileObject ('/etc/passwd','r');echo $a->fgets();


echo new SplFileObject('1.php')
echo new FilesystemIterator('./')

下一篇: [Zer0pts2020]phpNantokaAdmin(sqlite)→