没出现验证码就可以正常登录。出现验证码就登录不了,求帮忙, 带了源码,总的代码也就不到20行,
www.youxidian.com/login/oauth.html
密码多输错几次就会有验证码了。
用户名ie4488588
密码lai12345
窗口程序集名 | 保 留 | 保 留 | 备 注 | 窗口程序集_启动窗口 | | | | 登录 (编辑框1.内容, 编辑框2.内容 )变量名 | 类 型 | 静态 | 数组 | 备 注 | bin | 文本型 | | | state | 文本型 | | | client_id | 文本型 | | | data | 文本型 | | | 协yi头 | 文本型 | | | url | 文本型 | | | 验证码ID | 文本型 | | | 验证码网址 | 文本型 | | | 验证码 | 文本型 | | | 验证码图片字节集 | 字节集 | | | 输出的文本 | 文本型 | | | cookie | 文本型 | | | init () bin = 网页_访问_对象s (“https://www.youxidian.com/login/oauth.html”, , , cookie, , , , , , , , , , , , , )bin = 网页_访问_对象u (文本_取出中间文本 (bin, “location.href='”, “'”, , ), , , cookie, , , , , , , , , , , , , )state = 文本_取出中间文本 (bin, #常量_state, #引号, , ) client_id = 文本_取出中间文本 (bin, #常量_client_id, #引号, , ) 如果 (寻找文本 (bin, “captcha.do?captchaId=”, , 假) ≠ -1 ) 验证码ID = 文本_取出中间文本 (bin, “/ptlogin/captcha.do?captchaId=”, #引号, , ) 验证码网址 = “https://ptlogin.4399.com/ptlogin/captcha.do?captchaId=” + 验证码ID 验证码图片字节集 = 网页_访问 (验证码网址, , , cookie, , , , , , )验证码 = ocr (到字节集 (验证码图片字节集 ), 取字节集长度 (验证码图片字节集 )) 调试输出 (“验证码ID:” + 验证码ID )调试输出 (“验证码识别后是:” + 验证码 ) data = “isInputRealname=false&isValidRealname=false&sec=1&password=” + pwd + “&username=” + user + “+&captcha=” + 验证码 + “&captcha_id=” + 验证码ID + “&uid=&auth_action=LOGIN&scope=basic&show_close_button=&username_history=&redirect_uri=http%3A%2F%2Fwww.youxidian.com%2Flogin%2Foauth.html&show_4399=&show_back_button=&state=” + state + “&show_topbar=&autoCreateAccount=&aid=&_d=&password=&cid=®_mode=reg_phone&show_ext_login=false&expand_ext_login_list=&ref=&response_type=CODE&show_forget_password=&auto_scroll=&client_id=” + client_id + “&css=&access_token=”data = “isInputRealname=false&isValidRealname=false&sec=1&password=” + pwd + “&username=” + user + “&uid=&auth_action=LOGIN&scope=basic&show_close_button=&username_history=&redirect_uri=http%3A%2F%2Fwww.youxidian.com%2Flogin%2Foauth.html&show_4399=&show_back_button=&state=” + state + “&show_topbar=&autoCreateAccount=&aid=&_d=&password=&cid=®_mode=reg_phone&show_ext_login=false&expand_ext_login_list=&ref=&response_type=CODE&show_forget_password=&auto_scroll=&client_id=” + client_id + “&css=&access_token=”网页_访问_对象 (“https://ptlogin.4399.com/oauth2/loginAndAuthorize.do”, 1, data, cookie, , , 协yi头, , 真, , , , , , , , )url = 文本_取出中间文本 (协yi头, “Location: ”, #换行符, , )bin = 网页_访问_对象u (url, , , cookie, , #常量1, 协yi头, , 真, , , , , , , , )bin = 网页_访问u (“http://www.youxidian.com”, , , cookie, , , , , , )如果 (寻找文本 (bin, “安全退出”, , 假) ≠ -1 )标签3.标题 = “登录成功”标签3.标题 = “登录失败”
|