首页 > 其他 > 详细

xss

时间:2017-12-09 18:52:02      阅读:164      评论:0      收藏:0      [点我收藏+]
<?php
header("X-XSS-Protection: 0; mode=block");
?>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>XSS利用输出的环境来构造代码</title>
</head>
<body>
<center>
    <h6>把我们输入的字符串 输出到input里的value属性里</h6>
    <form action="" method="get">
        <h6>请输入你想显现的字符串</h6>
        <input type="text" name="xss_input_value" value=""><br>
        <input type="submit">

<!--        输入  1231"><script scr=1.js"></script>-->
    </form>
    <hr>
    <?php
    $xss = $_GET[‘xss_input_value‘];
    if(isset($xss)){
        echo ‘<input type="text" value="‘.$xss.‘">‘;
    }else{
        echo ‘<input type="type" value="test" >‘;
    }
    ?>
</center>
</body>
</html>

  

xss

原文:http://www.cnblogs.com/php-linux/p/8012072.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!