伪装黑客入侵页面

伪装黑客入侵页面

代码已开源 原创 小枫网络

html代码

<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>黑客入侵</title>
    <link rel="shortcut icon" href="https://mscar.oss-cn-chengdu.aliyuncs.com/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="style.css">
</head>

<body>
    <main>
        <section>
            <img src="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dec470b0-fed6-46e5-be53-ec85fadc01be/8ddcea11-b149-47ec-aa71-8efc00ebdd40.jpg" alt="picture">
            <div>
                <h2>【蚩梦博客】</h2>
                <h3>你的网站已被蚩梦博客入侵</h3>
                <p style="color: skyblue; font-weight: bold;">请联系 <a href="http://wpa.qq.com/msgrd?v=3&uin=换成你的QQ号&site=qq&menu=yes" target="_blank" rel="noopener noreferrer" style="color: pink;">@蚩梦博客管理员</a> 解除控制</p>
                <p>官方群:<a href="https://jq.qq.com/?_wv=1027&k=4289F0Hd" target="_blank" rel="noopener noreferrer">chimengblog.com</a></p>
                <p>官方网站:<a href="https://chimengblog.com" target="_blank" rel="noopener noreferrer">蚩梦博客</a></p>
                <p>我热爱你所热爱的一切.</p>
            </div>
        </section>
        <ul>
            <li>入侵三字经</li>
            <li><span><a href="#!">进谷歌</a></span> <a href="#!">找注入</a></span></li>
            <li><span><a href="#!">没注入</a></span> <a href="#!">就旁注</a></span></li>
            <li><span><a href="#!">没旁注</a></span> <a href="#!">用0day</a></span></li>
            <li><span><a href="#!">没0day</a></span> <a href="#!">猜目录</a></span></li>
            <li><span><a href="#!">没目录</a></span> <a href="#!">就嗅探</a></span></li>
            <li><span><a href="#!">爆账户</a></span> <a href="#!">找后台</a></span></li>
            <li><span><a href="#!">传小马</a></span> <a href="#!">放大马</a></span></li>
            <li><span><a href="#!">拿权限</a></span> <a href="#!">挂页面</a></span></li>
        </ul>
    </main>
    <canvas id="xf_dmy"></canvas>
    <script src="引入文件名称"></script>
</body>

</html>

CSS代码

* {
    padding: 0;
    margin: 0;
}

#xf_dmy {
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: -1;
    opacity: 1;
}

main {
    position: absolute;
    color: #fff;
    width: 100%;
    height: 100%;
}

section {
    padding: 3rem 0;
    text-align: center;
}

section img {
    width: 50%;
    border-radius: .8rem;
    opacity: .7;
}

section div {
    margin: 1.8rem auto;
    width: 85%;
}

section div h2 {
    font-size: 3rem;
    color: #00ffff;
}

section div h3 {
    font-size: 2rem;
    color: red;
}

section div p,
section div h3 {
    letter-spacing: .2rem;
    margin-top: 1.2rem;
}

section div p {
    font-size: 1.1rem;
}

section div p a {
    transition: color .5s;
    color: bisque;
}

section div a:hover {
    color: darkviolet;
}

ul {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    background-color: rgba(0, 0, 0, .5);
    border: 1px solid green;
    padding: 1rem;
}

ul li {
    list-style: none;
    text-align: center;
    line-height: 2.2rem;
}

ul li:first-child {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: .4rem;
}

ul li a {
    color: #b8b8b8;
    text-decoration: none;
    transition: color .5s;
}

ul li a:hover {
    color: #00ffff;
}

@media only screen and (min-width: 0)and (max-width: 500px) {
    section div h2 {
        font-size: 2rem;
    }

    section div h3 {
        font-size: 1.5rem;
    }

    ul li {
        line-height: 1.5rem;
        font-size: .7rem;
    }

    section img {
        width: 80%;
        border-radius: .5rem;
    }
}

JavaScript代码

document.oncontextmenu = new Function("event.returnValue=false;");
document.onselectstart = new Function("event.returnValue=false;");
window.onload = function () {
    var canvas = document.getElementById("xf_dmy");
    var context = canvas.getContext("2d");
    var W = window.innerWidth;
    var H = window.innerHeight;
    canvas.width = W;
    canvas.height = H;
    var fontSize = 16;
    var colunms = Math.floor(W / fontSize);
    var drops = [];
    for (var i = 0; i < colunms; i++) {
        drops.push(0);
    }
    var str = "01";
    function draw() {
        context.fillStyle = "rgba(0,0,0,0.05)";
        context.fillRect(0, 0, W, H);
        context.font = fontSize + 'px 微软雅黑';
        context.fillStyle = randColor();
        for (var i = 0; i < colunms; i++) {
            var index = Math.floor(Math.random() * str.length);
            var x = i * fontSize;
            var y = drops[i] * fontSize;
            context.fillText(str[index], x, y);
            if (y >= canvas.height && Math.random() > 0.92) {
                drops[i] = 0;
            }
            drops[i]++;
        }
    };
    function randColor() {
        var r = Math.floor(Math.random() * 256);
        var g = Math.floor(Math.random() * 256);
        var b = Math.floor(Math.random() * 256);
        return "rgb(" + r + "," + g + "," + b + ")";
    }
    draw();
    setInterval(draw, 33);
};
© 版权声明
THE END
喜欢就支持一下吧
点赞10赞赏 分享
评论 共3条

请登录后发表评论