标签:row 笔记 none splay post border += mat UI
右键查看源码,发现有提示source.txt,打开链接
<?php
if ("POST" == $_SERVER[‘REQUEST_METHOD‘])
{
$password = $_POST[‘password‘];
if (0 >= preg_match(‘/^[[:graph:]]{12,}$/‘, $password))
{
echo ‘Wrong Format‘;
exit;
}
while (TRUE)
{
$reg = ‘/([[:punct:]]+|[[:digit:]]+|[[:upper:]]+|[[:lower:]]+)/‘;
if (6 > preg_match_all($reg, $password, $arr))
break;
$c = 0;
$ps = array(‘punct‘, ‘digit‘, ‘upper‘, ‘lower‘);
foreach ($ps as $pt)
{
if (preg_match("/[[:$pt:]]+/", $password))
$c += 1;
}
if ($c < 3) break;
if ("42" == $password)
require ‘flag鏂囦欢‘;
else echo ‘Wrong password‘;
exit;
}
}
a12SD+io8
可以分成a
12
SD
+
io
8
六段PHP在判断相等时做出的变化
var_dump("1" == "01"); // 1 == 1 -> true
var_dump("10" == "1e1"); // 10 == 10 -> true
var_dump(100 == "1e2"); // 100 == 100 -> true
<wiz_tmp_tag id="wiz-table-range-border" contenteditable="false" style="display: none;">
标签:row 笔记 none splay post border += mat UI
原文地址:http://www.cnblogs.com/name1ess/p/7956461.html