awsomnick1
BANNED
- Feb 8, 2010
- 539
- 155
Have Any Of you had success in grabbing the yahoo captcha?
are you talking about solving the yahoo captcha in registration page of yahoo mail? If yes then I might say I do. My process is copying the image save it to my pc and send it to imagetyper (service offered here in BHW). Took about 5 secs. in process.
Yeah I did. It's quite easy.
What method are you using to communicate with the registration page / server ? Are you using WebBrowser, WebRequest or Sockets ?
And what programming language are you using ?
foreach (HtmlElement bob in webBrowser1.Document.Images)
{
string imgSrc = bob.GetAttribute("src");
if (imgSrc.Contains("https://c5.ah.yahoo.com/img/"))
{
pictureBox1.Load(bob.GetAttribute("src"));
break;
}
}
Yeah I did. It's quite easy.
What method are you using to communicate with the registration page / server ? Are you using WebBrowser, WebRequest or Sockets ?
And what programming language are you using ?
This.
Not everyone uses the same language or methods, gotta be more specific.![]()
Heres the code to grab the captcha from the Yahoo Mail registration page. Its in C#, but you can always use a converter to transfer it to Visual Basic:
Code:foreach (HtmlElement bob in webBrowser1.Document.Images) { string imgSrc = bob.GetAttribute("src"); if (imgSrc.Contains("https://c5.ah.yahoo.com/img/")) { pictureBox1.Load(bob.GetAttribute("src")); break; } }
Yea im talking about the yahoo mail registration page
You copy it manually? Or In a program?
I do it with a program, actually in a macro.
nope macro recorder that is indeed turn into .exe file.
Here's a thread about it... Not sure if it helps.
http://www.viprasys.org/vb/f33/yahoo-register-captcha-767384/
https://edit.yahoo.com/captcha/CaptchaWSProxyService.php?cid=V5&lang=en-US&intl=us&action=createlazy&initial_view=visual&u=THIS_VALUE&t=THIS_VALUE
<input type="hidden" id="u" name="u" value="d1vif6d7f3qoo">
<input type="hidden" id="t" name="t" value="AFTwSvojdifQ3mGExwcHbbF6qOJgMnANVOyTHhh9XpHYoQikS_jgyUFJSvkVB1GTHNCjvawd.lKFB5WKGlxo_s58FXCLP.gEUK9ZqlLFH7yG_sPMBH0srObgaLcexogAn7uTRTpzVmqoBq2Dg.sPu.fonD80J92QtyesyU6gikc8VyPUUy45S4s1PGsQ49S6ht6NEwByRwClBiSiYUA4JXLfRZnSmd876jXFpeH1jdGBJL7vY9FGeZkSqyk4_1KIUrtO_pSHQvpfM1RTRxtVIjrlrT5WjkU3gd9k9FiGNt4bwSTNsszgx9SLXIc3FJyWq7Z8hOBOE9P38F1tyFHBhmuV0JuNcPhpQrYji5Lz2mreksk6gnrKrEYteArFBn4zRPEkAa8OJmggeh7cxt8di2w8~B">
<img id="captchaV5ClassicCaptchaImg" alt="CAPTCHA Image" title="Enter the characters displayed" src="https://c5.ah.yahoo.com:443/img/ws_eVNJ7_B0rbNpe3hbrcpLiHxLpAoKf4nIaCyL_N5qqtVtPfe2oqVMW5JxDtlzLu7JwB3wVN8z2fArZw5iTVwQRPEXY_TEJZHR.IJOjM9ksxRHaZ0fniTeSvE-.jpg">
Okay, to get catpcha via WebRequest (HttpWebRequest) you have to parse some values which you will use later to build the actually URL to the captcha image document. Those values are randomly generated on run-time, when you load the http://edit.yahoo.com/registration page. You don't get the actual link, like I mentioned earlier you have to parse some values from the variables that contain them, format the url and then GetResponse from the actual page. The link should look something like this:
Note: The reason why I've put THIS_VALUE instead of actually value is because t is usually really long and you probably wouldn't notice u.Code:https://edit.yahoo.com/captcha/CaptchaWSProxyService.php?cid=V5&lang=en-US&intl=us&action=createlazy&initial_view=visual&u=THIS_VALUE&t=THIS_VALUE
So as you can see, you have to extract value from the variable u and variable t. They're both located on http://edit.yahoo.com/registration page and can be extracted when you load that page.
Example:
Code:<input type="hidden" id="u" name="u" value="d1vif6d7f3qoo">Now, captcha page does not only contain link image, but actually whole array of different variables. It is XML folder, from which you have to parse some Captcha related values, like captchaV5Visual, captchaV5Audio (To understand more download the FireFox plugin called HttpFox which will tell you all the data that is being when Browser is communicating with the Web Server). There is big difference between WebBrowser and HttpWebRequest / manual request/response handling because you basically have to simulate the whole process manually, and plus there are some values which are generated via javascript funcs (methods) which I find quite difficult to grab, because you have to simulate the function yourself - like I mentioned before.Code:<input type="hidden" id="t" name="t" value="AFTwSvojdifQ3mGExwcHbbF6qOJgMnANVOyTHhh9XpHYoQikS_jgyUFJSvkVB1GTHNCjvawd.lKFB5WKGlxo_s58FXCLP.gEUK9ZqlLFH7yG_sPMBH0srObgaLcexogAn7uTRTpzVmqoBq2Dg.sPu.fonD80J92QtyesyU6gikc8VyPUUy45S4s1PGsQ49S6ht6NEwByRwClBiSiYUA4JXLfRZnSmd876jXFpeH1jdGBJL7vY9FGeZkSqyk4_1KIUrtO_pSHQvpfM1RTRxtVIjrlrT5WjkU3gd9k9FiGNt4bwSTNsszgx9SLXIc3FJyWq7Z8hOBOE9P38F1tyFHBhmuV0JuNcPhpQrYji5Lz2mreksk6gnrKrEYteArFBn4zRPEkAa8OJmggeh7cxt8di2w8~B">
Anyway, to get image value / URL to the captcha image you have to parse value from the:
Now keep in mind that you have to make sure that all values matches the values from the documents, because otherwise it will return error and it'll just reload the page. I find it quite difficult to acomplish this via WebRequest, so if you don't know a lot about internet protocols don't bother to do it manually, just download some good Browser library (Awesomium for instance, I believe that ZennoPoster & UBot uses it, and I tried it myself and I Must say that it is quite good and easy to use. It handles all the scripts for you, events, funcs etc.)Code:<img id="captchaV5ClassicCaptchaImg" alt="CAPTCHA Image" title="Enter the characters displayed" src="https://c5.ah.yahoo.com:443/img/ws_eVNJ7_B0rbNpe3hbrcpLiHxLpAoKf4nIaCyL_N5qqtVtPfe2oqVMW5JxDtlzLu7JwB3wVN8z2fArZw5iTVwQRPEXY_TEJZHR.IJOjM9ksxRHaZ0fniTeSvE-.jpg">
Hope I helped and good luck!