Writeup 实验吧/WEB/Once More/1805 【PHP代码审计】

http://www.shiyanbar.com/ctf/1805
http://ctf5.shiyanbar.com/web/more.php

You password must be alphanumeric

'; } else if (strlen($_GET['password']) < 8 && $_GET['password'] > 9999999) { if (strpos ($_GET['password'], '*-*') !== FALSE) { die('Flag: ' . $flag); } else { echo('

*-* have not been found

'); } } else { echo '

Invalid password

'; } } ?>

科学计数法&ereg函数%00截断:
password=9e9%00-
TODO:为什么这里直接上传%00,而文件上传漏洞需要改hex改为0x00,不理解。

你可能感兴趣的:(Writeup 实验吧/WEB/Once More/1805 【PHP代码审计】)