>lhzctf

Web12scandir和show_source

1.打开页面

显示Where is the flag?。 ctrl+u查看源代码后得到提示cmd=?

2.使用cmd

?cmd=print_r(scandir("."));  //查看所有目录文件 得到一个很长的PHP文件

3.用show_source()函数访问

得到flag(文件需用引号包裹,末尾需加;)。