XCTF disabled_button

题目描述:X老师今天上课讲了前端知识,然后给了大家一个不能按的按钮,小宁惊奇地发现这个按钮按不下去,到底怎么才能按下去呢?

发现确实点不开,尝试修改代码,使用F12

<html><head>
    <meta charset="UTF-8">
    <title>一个不能按的按钮</title>
    <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body{
            margin-left:auto;
            margin-right:auto;
            margin-TOP:200PX;
            width:20em;
        }
    </style>
</head>
<body>
<h3>一个不能按的按钮</h3>

<form action="" method="post">
<input disabled="" class="btn btn-default" style="height:50px;200px;" type="submit" value="flag" name="auth">
</form>

发现其中button的元素中有 disabled="" 将其删除发现可以点击按钮了,点击即可获得flag:

cyberpeace{ed2dbcd8e872960a6a1a67fa62ab6187}

原文地址:https://www.cnblogs.com/thismelongaotian/p/11161874.html