學習js之百度網盤動態獲取郵箱驗證碼(完整原始碼)
阿新 • • 發佈:2020-12-24
今天使用某多多購買百度網盤SVIP會員,由於登入需要郵箱驗證碼驗證,故學習該網頁原始碼。
即將分段學習 (js完整原始碼)
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>郵箱監控</title>
<style type="text/css">
#Text1
{
width: 190px;
height:32;
}
</style>
<script language="javascript" type="text/javascript">
function Submit1_onclick() {
var a= document.getElementById('Text1');
var b=document.getElementById('Submit1');
window.location.href='http://172.27.123.14:80/index.htm?d='+a.value;
}
</script>
<script type="text/javascript">
function replaceSpace(obj)
{
obj.value = obj.value.replace(/\s/gi,'')
}
function copyLink ()
{
var Url2=document.getElementById("m1").innerText;
var oInput = document.createElement('input');
oInput.value = Url2.match(/\d{6}/);
document.body.appendChild(oInput);
oInput.select(); // 選擇物件
document.execCommand("Copy"); // 執行瀏覽器複製命令
oInput.className = 'oInput';
oInput.style.display='none';
alert('複製成功');
}
s=10;
function showtime()
{
var str,time;
time=new Date();
str=s.toString()+"秒後自動獲取驗證碼";
document.getElementById("time").innerHTML="<a style='width:100%;font-size:36px'>"+str+"</a>";
s--;
if(s<=0)
{
clearInterval(myvar);
document.getElementById("time").display="none";
location.reload(true);
}
}
var myvar;
if(s>0){
myvar=setInterval("showtime()",1000);}
</script>
</head>
<body style="text-align: center">
<form id="form1" method="post" action="/">
<div style="top: 100px; position: static; font-size: x-large; color: #FF0000; height: 135px;">
公告:所有客戶進來,一定要低版本,在下面連結有,不下的話,你會出現申訴狀態</div>
<p>
<input id="Text1" name="d" type="text" placeholder="請在這裡輸入百度號" onBlur="replaceSpace(this)" />
<input id="Submit1" style="background-color: #009999;height:32" type="submit" value="獲取驗證碼" onclick="showtime()" />
<input id="Submit2" style="background-color: #009999;height:32" type="button" value="複製驗證碼" onclick="copyLink()" />
<input name="action" type="hidden" value="search" />
</p>
<table border = 1; style="width:360px; position: relative; text-align: center;border-collapse:collapse;"
align="center">
<tr><td id='m1' style="border-style: 2;">
親愛的使用者:
您好!感謝您使用百度服務,您的賬號(nhbb89)正在進行郵箱驗證,本次請求的驗證碼為:
922047(為了保障您帳號的安全性,請在1小時內完成驗證。)
百度帳號團隊
2020年12月23日
繫結百度帳號管家,收取驗證碼不再等待!
趕緊掃描下載吧
</td><td>2020-12-23 09:45:00</td></tr><tr><td id='m2' style="border-style: 2;">
親愛的使用者:
您好!感謝您使用百度服務,您的賬號(nh***89)正在進行郵箱驗證,本次請求的驗證碼為:
922047(為了保障您帳號的安全性,請在1小時內完成驗證。)
百度帳號團隊
2020年12月23日
繫結百度帳號管家,收取驗證碼不再等待!
趕緊掃描下載吧
</td><td>2020-12-23 09:42:13</td></tr>
</table>
</form>
<div style="margin-top:10px">
<button type="button" class="yongyin" style="width:300px; height:30px; background-color: #f37b1d;" onclick="location='https://wwx.lanzoux.com/b00bj7zeh'">電腦出現申訴:點我下載低版本</button>
</div>
<div style="margin-top:10px">
<button type="button" class="yongyin" style="width:300px; height:30px; background-color: #f37b1d;" onclick="location='http://note.youdao.com/noteshare?id=e1673b1e1f1a176fb97a0f95651fc9b9'">手機出現申訴:點我下載低版本</button>
</div>
<div style="margin-top:10px">
<button type="button" class="yongyin" style="width:300px; height:30px; background-color: #f37b1d;" onclick="location='https://wwx.lanzoux.com/b0ceqdbcj'">限速的話點我:下載KD配合超級會員</button>
</div>
<div style="margin-top:10px">
<button type="button" class="yongyin" style="width:300px; height:30px; background-color: #f37b1d;" onclick="location='http://119.45.48.43:8889/ck'">查詢COOKIE:配合KD的</button>
</div>
<div style="margin-top:10px">
<button type="button" class="yongyin" style="width:300px; height:30px; background-color: #f37b1d;" onclick="location='http://8.131.78.226/index3.html'">KD下載:點我下載KD</button>
</div>
</body>
</html>
head部分
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>郵箱監控</title>
<style type="text/css">
#Text1
{
width: 190px;
height:32;
}
</style>
<script language="javascript" type="text/javascript">
function Submit1_onclick() {
var a=document.getElementById('Text1');
var b=document.getElementById('Submit1');
window.location.href='http://172.27.123.14:80/index.htm?d='+a.value;
}
</script>
<script type="text/javascript">
function replaceSpace(obj)
{
obj.value = obj.value.replace(/\s/gi,'')
}
function copyLink()
{
var Url2=document.getElementById("m1").innerText;
var oInput = document.createElement('input');
oInput.value = Url2.match(/\d{6}/);
document.body.appendChild(oInput);
oInput.select(); // 選擇物件
document.execCommand("Copy"); // 執行瀏覽器複製命令
oInput.className = 'oInput';
oInput.style.display='none';
alert('複製成功');
}
s=10;
function showtime()
{
var str,time;
time=new Date();
str=s.toString()+"秒後自動獲取驗證碼";
document.getElementById("time").innerHTML="<a style='width:100%;font-size:36px'>"+str+"</a>";
s--;
if(s<=0)
{
clearInterval(myvar);
document.getElementById("time").display="none";
location.reload(true);
}
}
var myvar;
if(s>0){
myvar=setInterval("showtime()",1000);}
</script>
</head>
body部分
<body style="text-align: center">
<form id="form1" method="post" action="/">
<div style="top: 100px; position: static; font-size: x-large; color: #FF0000; height: 135px;">
公告:所有客戶進來,一定要低版本,在下面連結有,不下的話,你會出現申訴狀態</div>
<p>
<input id="Text1" name="d" type="text" placeholder="請在這裡輸入百度號" onblur="replaceSpace(this)">
<input id="Submit1" style="background-color: #009999;height:32" type="submit" value="獲取驗證碼" onclick="showtime()">
<input id="Submit2" style="background-color: #009999;height:32" type="button" value="複製驗證碼" onclick="copyLink()">
<input name="action" type="hidden" value="search">
</p>
<table border="1;" style="width:360px; position: relative; text-align: center;border-collapse:collapse;" align="center">
<tbody><tr><td id="m1" style="border-style: 2;">
親愛的使用者:
您好!感謝您使用百度服務,您的賬號(nhbb89)正在進行郵箱驗證,本次請求的驗證碼為:
922047(為了保障您帳號的安全性,請在1小時內完成驗證。)
百度帳號團隊
2020年12月23日
繫結百度帳號管家,收取驗證碼不再等待!
趕緊掃描下載吧
</td><td>2020-12-23 09:45:00</td></tr><tr><td id="m2" style="border-style: 2;">
親愛的使用者:
您好!感謝您使用百度服務,您的賬號(nh***89)正在進行郵箱驗證,本次請求的驗證碼為:
922047(為了保障您帳號的安全性,請在1小時內完成驗證。)
百度帳號團隊
2020年12月23日
繫結百度帳號管家,收取驗證碼不再等待!
趕緊掃描下載吧
</td><td>2020-12-23 09:42:13</td></tr>
</tbody></table>
</form>
<div style="margin-top:10px">
<button type="button" class="yongyin" style="width:300px; height:30px; background-color: #f37b1d;" onclick="location='https://wwx.lanzoux.com/b00bj7zeh'">電腦出現申訴:點我下載低版本</button>
</div>
<div style="margin-top:10px">
<button type="button" class="yongyin" style="width:300px; height:30px; background-color: #f37b1d;" onclick="location='http://note.youdao.com/noteshare?id=e1673b1e1f1a176fb97a0f95651fc9b9'">手機出現申訴:點我下載低版本</button>
</div>
<div style="margin-top:10px">
<button type="button" class="yongyin" style="width:300px; height:30px; background-color: #f37b1d;" onclick="location='https://wwx.lanzoux.com/b0ceqdbcj'">限速的話點我:下載KD配合超級會員</button>
</div>
<div style="margin-top:10px">
<button type="button" class="yongyin" style="width:300px; height:30px; background-color: #f37b1d;" onclick="location='http://119.45.48.43:8889/ck'">查詢COOKIE:配合KD的</button>
</div>
<div style="margin-top:10px">
<button type="button" class="yongyin" style="width:300px; height:30px; background-color: #f37b1d;" onclick="location='http://8.131.78.226/index3.html'">KD下載:點我下載KD</button>
</div>
</body>