[CTF题库] 【每周一题】Web:爆破

[复制链接]
查看7371 | 回复3 | 2017-6-26 21:19:46 | 显示全部楼层 |阅读模式
出题思路:
>>index.php
[mw_shl_code=php,true]<?php
error_reporting(0);
$password = "13579"; // 这里是密码
$p = "";
if(isset($_COOKIE["isview"]) and $_COOKIE["isview"] == $password){
$isview = true;
}else{
if(isset($_POST["pwd"])){
if($_POST["pwd"] == $password){
setcookie("isview",$_POST["pwd"],time()+3600*3);
$isview = true;
}else{
$p = (empty($_POST["pwd"])) ? "需要密码才能查看,请输入密码。" : "密码不正确,请重新输入。";
}
}else{
$isview = false;
$p = "请输入密码查看,获取密码可联系我。";
}
}
if($isview){ ?>
yitctf{2017/5/16}
<?php }else{ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<title>请输入密码</title>
<!--[if lt IE 6]>
<style type="text/css">
.z3_ie_fix{
float:left;
}
</style>
<![endif]-->
<style type="text/css">
<!--
body{
background:none;
}
.passport{
border:1px solid red;
background-color:#FFFFCC;
width:400px;
height:100px;
position:absolute;
left:49.9%;
top:49.9%;
margin-left:-200px;
margin-top:-55px;
font-size:14px;
text-align:center;
line-height:30px;
color:#746A6A;
}
-->
</style>
<div class="passport">
<div style="padding-top:20px;">
<form action="?yes" method="post" style="margin:0px;">输入查看密码
<input type="password" name="pwd" /> <input type="submit" value="查看" />
</form>
<?php echo $p; ?>
</div>
</div>
<?php
} ?>
</body>
</html>[/mw_shl_code]
解题思路:
一个简单的纯数字密码爆破,利用BurpSuite工具爆破密码即可
1494940787500588.jpg
作者:se7en

有人的地方就有江湖。
回复

使用道具 举报

Jesen | 2017-6-28 15:59:09 | 显示全部楼层
666
有人的地方就有我。
回复

使用道具 举报

匿名 Taylearn | 2017-6-28 17:05:16 | 显示全部楼层
mark!!!!
回复

使用道具 举报

匿名 圣乱X无心 | 2017-7-1 20:46:17 | 显示全部楼层
恩   这个比较简单  
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

匿名

93

主题

224

帖子

3157

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3157