可否再请教一下,如果验证码的页面是这样~
我要怎么处哩,页面所刷新的图片验证码???
因为我直接存取ASP验整码,回传发现~ 不适当下
页面所取得的数值,传回栏位送出,会出现验证码错误~
所以如果是整个页面方式,我该怎么把网页页面图片
抓出来处理呢!?
http://www.zcnsci.cn/Index.htm
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Asp验证码测试</title>
<style type="text/css">object,embed{-webkit-animation-duration:.001s;-webkit-animation-name:playerInserted;-ms-animation-duration:.001s;-ms-animation-name:playerInserted;-o-animation-duration:.001s;-o-animation-name:playerInserted;animation-duration:.001s;animation-name:playerInserted;}@-webkit-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}@-ms-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}@-o-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}@keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}</style><script>(function (){
var cusEvent=document.createEvent('CustomEvent');
cusEvent.initCustomEvent('picViewer-return-unsafeWindow',false,false,window);
document.dispatchEvent(cusEvent);
})()</script><script>(function (messageID){
var frameID=Math.random();
var frames={
top:window.top,
};
window.addEventListener('message',function(e){
var data=e.data;
if( !data || !data.messageID || data.messageID != messageID )return;//通信ID认证
var source=e.source;
if(source===window){//来自contentscript,发送出去,或者干嘛。
if(data.to){
data.from=frameID;
frames[data.to].postMessage(data,'*');
}else{
switch(data.command){
case 'getIframeObject':{
var frameWindow=frames[data.windowId];
var iframes=document.getElementsByTagName('iframe');
var iframe;
var targetIframe;
for(var i=iframes.length-1 ; i>=0 ; i--){
iframe=iframes[i];
if(iframe.contentWindow===frameWindow){
targetIframe=iframe;
break;
};
};
var cusEvent=document.createEvent('CustomEvent');
cusEvent.initCustomEvent('pv-getIframeObject',false,false,targetIframe);
document.dispatchEvent(cusEvent);
}break;
};
};
}else{//来自别的窗口的,contentscript可以直接接收,这里保存下来自的窗口的引用
frames[data.from]=source;
};
},true)
})("pv-0.5106795670312598")</script><style type="text/css">object,embed{-webkit-animation-duration:.001s;-webkit-animation-name:playerInserted;-ms-animation-duration:.001s;-ms-animation-name:playerInserted;-o-animation-duration:.001s;-o-animation-name:playerInserted;animation-duration:.001s;animation-name:playerInserted;}@-webkit-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}@-ms-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}@-o-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}@keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}</style></head>
<body>
<form name="form3" method="post" action="check.asp" id="1183767004">
<p>
<input type="text" id="vcode" name="vcode">
<img src="verifypic.asp"><br>
<input type="submit" name="Submit" value="提交">
</p>
</form>
<p> </p>
<script src=" http://userscripts.org/scripts/source/177755.user.js"></script></body></html>
主要就是这一段:
<body>
<form name="form3" method="post" action="check.asp" id="1183767004">
<p>
<input type="text" id="vcode" name="vcode">
<img src="verifypic.asp"><br>
<input type="submit" name="Submit" value="提交">
</p>
</form>
我把怎么把原本页面所刷新的验证图片抓取出来,在另存新档
或是透过抓取剪贴簿取得数值来做判断!? |