本文介绍了如何在简单的数字验证码网页上使用OCR?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 [ ^ ]因为我已经被同事分配了一项任务,所以我需要你得到高度赞赏的支持,我需要删除或绕过下面屏幕截图中的简单验证码,该网站仅在埃及本地访问,它需要用户名和密码: 用户名:Mahmoud Abdelnaby 密码:tedata123 @ 此页面用于inq关于固定电话上ADSL服务的可用性,但它上面的验证码正在减慢这个过程,有没有办法在没有验证码验证的情况下实现自动化过程 page使用验证码: <!DOCTYPE html PUBLIC - // W3C // DTD XHTML 1.0 Transitional // ENhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> < meta charset =UTF-8> <! - [if IE 7]> <![endif] - > <! - [if IE 8]> <![endif] - > <! - [if IE 9]> <![结束] - > jQuery(document).ready (函数($){ $('。forms')。dcSlickForms(); }); $(document).ready(function(){ $(#showcase)。awShowcase( { content_width:900, content_height:400, auto:true, interval:3000, 连续:false, 箭头:true, 按钮:true, bnn_numbers:true, keybord_keys:true, mousetrace:false,/ *跟踪鼠标的x和y坐标* / pauseonover:true, stoponclick:false, 过渡:'淡出',/ * hslide / vslide / fade * / transition_delay:0, transition_speed :500, show_caption:'onload'/ * onload / onhover / show * / }); }); .style3 { 颜色: #70 2283; } .vb { 背景位置:中心-164px; } .gh { border:2px solid#702283; padding:10px 40px; 背景:#edic24; 宽度:800px; border-radius:25px; } .style433 { 背景:#702283; border:none; text-shadow:0 -1px 0 rgba(0,0,0,0.3); text-transform:大写; 颜色:#eee; 光标:指针; 字体大小:15px; 保证金:5px 0; 填充:5px 22px; -moz-border-radius:4px; border-radius:4px; -webkit-border-radius:4px; -webkit-box-shadow:0px 1px 2px rgba(0,0,0,0.3); -moz-box-shadow:0px 1px 2px rgba(0,0,0 ,0.3); box-shadow:0px 1px 2px rgba(0,0,0,0.3); } .p1 { font-family:Arial,Helvetica,sans-serif; font-size:medium; 颜色:#702283; font-style:normal; font-weight:bolder; text-decoration:underline; box- shadow:10px 10px 5px#888888; } * {保证金:0;填充:0; text-align:left; } b / b [^]Kindly I need your highly appreciated support as I've been assigned a task by a co-worker , where I need to remove or bypass the simple captcha in the below screenshot, the website is accessed locally only in Egypt, it requires a user name & password which are:User name: Mahmoud AbdelnabyPassword: tedata123@this page is used to inq about the availability of ADSL service on landlines, but the captcha on it is slowing up the process, is there any way to automate the process without the captcha verificationpage with the captcha :<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><meta charset="UTF-8"><!--[if IE 7]><![endif]--><!--[if IE 8]><![endif]--><!--[if IE 9]><![endif]--> jQuery(document).ready(function ($) { $('.forms').dcSlickForms(); }); $(document).ready(function () { $("#showcase").awShowcase({ content_width: 900, content_height: 400, auto: true, interval: 3000, continuous: false, arrows: true, buttons: true, btn_numbers: true, keybord_keys: true, mousetrace: false, /* Trace x and y coordinates for the mouse */ pauseonover: true, stoponclick: false, transition: 'fade', /* hslide/vslide/fade */ transition_delay: 0, transition_speed: 500, show_caption: 'onload' /* onload/onhover/show */}); });.style3 {color: #702283;}.vb {background-position: center -164px;} .gh { border: 2px solid #702283; padding: 10px 40px; background: #edic24; width: 800px; border-radius: 25px; } .style433 { background: #702283; border: none; text-shadow: 0 -1px 0 rgba(0,0,0,0.3); text-transform:uppercase; color: #eee; cursor: pointer; font-size: 15px; margin: 5px 0; padding: 5px 22px; -moz-border-radius: 4px; border-radius: 4px; -webkit-border-radius:4px; -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); -moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); box-shadow: 0px 1px 2px rgba(0,0,0,0.3); } .p1 { font-family: Arial, Helvetica, sans-serif; font-size: medium; color: #702283; font-style: normal; font-weight: bolder; text-decoration: underline; box-shadow: 10px 10px 5px #888888; } * {margin:0; padding:0; text-align: left; } //& lt;![CDATA [ var theForm = document.forms ['aspnetForm']; if(!theForm){ theForm = document.aspnetForm; } function __doPostBack(eventTarget,eventArgument){ if(!theForm.onsubmit ||(theForm.onsubmit()!= false)){ theForm .__ EVENTTARGET.value = eventTarget; theForm .__ EVENTARGUMENT .value = eventArgument; theForm.submit(); } } //]]> ; //& lt;![CDATA [ 函数WebForm_OnSubmit(){ if(typeof(ValidatorOnSubmit )==功能&& ValidatorOnSubmit()== false)返回false; 返回true; } //]]> //<![CDATA[var theForm = document.forms['aspnetForm'];if (!theForm) { theForm = document.aspnetForm;}function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); }}//]]>//<![CDATA[function WebForm_OnSubmit() {if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;return true;}//]]> <! - 全屏背景 - > <!-- Fullscreen backgrounds --> <! - 结束全屏背景 - > <! - 开始包装 - > <!-- End Fullscreen backgrounds --><!-- Begin Wrapper --> 欢迎e $> Mahmoud Abdelnaby 。 退出 更改密码 Welcome Mahmoud Abdelnaby . Logout Change Password <! - 开始菜单 - > 搜索 搜索电话 <!-- Begin Menu --> Search Search Telephone 取消 合同 Cancel Contracting ??????????????? <! - 开始4列 - > <!-- Begin 4 Columns --> <! - 分隔符 - > <!-- Divider --> <! - 分隔符 - > <!-- Divider --> <! - 最终容器 - > <!-- End Container --> 版权所有©2017 埃及电信 。版权所有。 <! - 结束包装 - > ; // & lt;![CDATA [ var Page_Validators = new Array(document.getElementById(ctl00_ContentPlaceHolderBody_RequiredFieldValidator1),document.getElementById(ctl00_ContentPlaceHolderBody_CustomValidator2)); / /]]> //& lt;![CDATA [ var ctl00_ContentPlaceHolderBody_RequiredFieldValidator1 = document.all?的document.all [ ctl00_ContentPlaceHolderBody_RequiredFieldValidator1]:的document.getElementById( ctl00_ContentPlaceHolderBody_RequiredFieldValidator1); ctl00_ContentPlaceHolderBody_RequiredFieldValidator1.controltovalidate = ctl00_ContentPlaceHolderBody_txtVerify; ctl00_ContentPlaceHolderBody_RequiredFieldValidator1.errormessage = *; ctl00_ContentPlaceHolderBody_RequiredFieldValidator1.validationGroup =A; ctl00_ContentPlaceHolderBody_RequiredFieldValidator1.evaluationfunction =RequiredFieldValidatorEvaluateIsValid; ctl00_ContentPlaceHolderBody_RequiredFieldValidator1.initialvalue =; var ctl00_ContentPlaceHolderBody_CustomValidator2 = document.all?的document.all [ ctl00_ContentPlaceHolderBody_CustomValidator2]:的document.getElementById( ctl00_ContentPlaceHolderBody_CustomValidator2); ctl00_ContentPlaceHolderBody_CustomValidator2.controltovalidate = ctl00_ContentPlaceHolderBody_txtVerify; ctl00_ContentPlaceHolderBody_CustomValidator2.errormessage =您输入错误的验证码!请重新输入!!!; ctl00_ContentPlaceHolderBody_CustomValidator2.isvalid =False; ctl00_ContentPlaceHolderBody_CustomValidator2.validationGroup =A; ctl00_ContentPlaceHolderBody_CustomValidator2.evaluationfunction =CustomValidatorEvaluateIsValid; //]]> //& lt;![CDATA [ var Page_ValidationActive = false; if(typeof(ValidatorOnLoad)==function){ ValidatorOnLoad(); } 函数ValidatorOnSubmit(){ if(Page_V alidationActive){ 返回ValidatorCommonOnSubmit(); } else { 返回true; } } theForm.oldSubmit = theForm.submit; theForm.submit = WebForm_SaveScrollPositionSubmit; theForm.oldOnSubmit = theForm.onsubmit; theForm.onsubmit = WebForm_SaveScrollPositionOnSubmit; theForm.oldOnLoad = window.onload; window.onload = WebForm_RestoreScrollPosition; //]]> 我的尝试: ocr与js但没有运气 使vb应用程序读取验证码与ocr但不能在网页上使用它在自动化过程中<!-- End Wrapper --> //<![CDATA[var Page_Validators = new Array(document.getElementById("ctl00_ContentPlaceHolderBody_RequiredFieldValidator1"), document.getElementById("ctl00_ContentPlaceHolderBody_CustomValidator2"));//]]>//<![CDATA[var ctl00_ContentPlaceHolderBody_RequiredFieldValidator1 = document.all ? document.all["ctl00_ContentPlaceHolderBody_RequiredFieldValidator1"] : document.getElementById("ctl00_ContentPlaceHolderBody_RequiredFieldValidator1");ctl00_ContentPlaceHolderBody_RequiredFieldValidator1.controltovalidate = "ctl00_ContentPlaceHolderBody_txtVerify";ctl00_ContentPlaceHolderBody_RequiredFieldValidator1.errormessage = "*";ctl00_ContentPlaceHolderBody_RequiredFieldValidator1.validationGroup = "A";ctl00_ContentPlaceHolderBody_RequiredFieldValidator1.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";ctl00_ContentPlaceHolderBody_RequiredFieldValidator1.initialvalue = "";var ctl00_ContentPlaceHolderBody_CustomValidator2 = document.all ? document.all["ctl00_ContentPlaceHolderBody_CustomValidator2"] : document.getElementById("ctl00_ContentPlaceHolderBody_CustomValidator2");ctl00_ContentPlaceHolderBody_CustomValidator2.controltovalidate = "ctl00_ContentPlaceHolderBody_txtVerify";ctl00_ContentPlaceHolderBody_CustomValidator2.errormessage = "You have Entered a Wrong Verification Code!Please Re-enter!!!";ctl00_ContentPlaceHolderBody_CustomValidator2.isvalid = "False";ctl00_ContentPlaceHolderBody_CustomValidator2.validationGroup = "A";ctl00_ContentPlaceHolderBody_CustomValidator2.evaluationfunction = "CustomValidatorEvaluateIsValid";//]]>//<![CDATA[var Page_ValidationActive = false;if (typeof(ValidatorOnLoad) == "function") { ValidatorOnLoad();}function ValidatorOnSubmit() { if (Page_ValidationActive) { return ValidatorCommonOnSubmit(); } else { return true; }} theForm.oldSubmit = theForm.submit;theForm.submit = WebForm_SaveScrollPositionSubmit;theForm.oldOnSubmit = theForm.onsubmit;theForm.onsubmit = WebForm_SaveScrollPositionOnSubmit;theForm.oldOnLoad = window.onload;window.onload = WebForm_RestoreScrollPosition;//]]>What I have tried:ocr with js but no luckmade vb app that reads captcha with ocr but can't use it on the web page in an automated process推荐答案 ){ ('。forms')。dcSlickForms(); }); ('.forms').dcSlickForms(); }); (document).ready(function(){ (document).ready(function () { 这篇关于如何在简单的数字验证码网页上使用OCR?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-21 19:02