a2mateit 395 Posted November 12, 2012 Report Share Posted November 12, 2012 http://i.imgur.com/Agmei.jpgHello Fellow Botters, Have you ever spent precious hours of time automating flash sites with Image Recognition only to get stuck on the captcha? Are you tired of feeling like there are some sites that are just to hard to automate? Well I have good news for you then because those days are finally over! That's right, in this tutorial I am going to show you how to tackle the once thought impossible flash captcha such as the one found at pinger.com/tfw I originally though about selling this solution but decided that this community is just to awesome to try and charge for this information. So I am going to share it with you all for Free as my way of saying thank you to all who have helped me and the past, and presumably in the future as well. For this tutorial I am going to be using the site pinger.com/tfw for the example site. http://i.imgur.com/CecKF.jpg Step 1: The first thing we need to do is take a screenshot of the page that has the captcha we will be solving. So in this instance we will open our default internet browser and take a screenshot of the page with the captcha we are trying to solve. I will not go into details on how to do this, because I assume you already know how to do this. Next we will go to an online image editing website (still in your default internet browser). In this example we will use online-image-editor.com. Upload the screenshot and then click on crop. The point of this is to find exact co-ordinates of the captcha on the page. Crop in the captcha and take note of the height, width, x-offset, and y-offset. Write this down because we will need it later. Example Picture:http://i.imgur.com/SUKMx.jpg Step 2: Now what we will do is to create a define command called solve captcha. This can then be called later in your code when you need to solve a captcha. Next we will have Ubot create a folder on the desktop named captcha. You can name it whatever you want and place it wherever you want as well. But for the sake of this tutorial we will call it captcha and place it on the desktop. Example Code:define Solve Captcha {create folder($special folder("Desktop"), "Captcha")} Example Picture:http://i.imgur.com/Npmch.jpg Step 3: Now we need to save a browser image of the page you are currently on to the folder we created in the first step. If you are calling the captcha define you should already be on the page with the captcha you are needing solved. Example Code:define Solve Captcha {create folder($special folder("Desktop"), "Captcha")save browser image ("{$special folder("Desktop")}\\Captcha\\captcha.jpg")} Example Picture:http://i.imgur.com/fnUwy.jpg Step 4: Now we will use the in new browser command and navigate to online-image-editor.com. In this example we will clear the cookies and turn visibility to invisible. Example Code:define Solve Captcha {create folder($special folder("Desktop"), "Captcha")save browser image("{$special folder("Desktop")}\\Captcha\\captcha.jpg")in new browser { clear cookies set visibility("Invisible") navigate("http://www.online-image-editor.com/", "Wait")}} Example Picture:http://i.imgur.com/WRyHP.jpg Step 5: Now we will upload the screenshot to online-image-editor.com that we took in step 3. Use the change file field command to choose the captcha.jpg picture. Then click on upload to upload the picture. Next insert a wait for element to make sure the picture is fully loaded before proceeding. Example Code:define Solve Captcha { create folder($special folder("Desktop"), "Captcha") save browser image("{$special folder("Desktop")}\\Captcha\\captcha.jpg") in new browser { clear cookies set visibility("Invisible") navigate("http://www.online-image-editor.com/", "Wait") wait for element(, 300, "Appear") change file field(, "{$special folder("Desktop")}\\Captcha\\Captcha.jpg") click($element offset(, 1), "Left Click", "No") wait for element(, "", "Appear") }} Step 6: Now that the picture is upload to online-image-editor.com we will crop out the captcha using the heigth, width, x-offset, and y-offset that we gathered in step 1. Use the change attribute command to change the attribute of the heigth, width, x-offset, and y-offset that we gathered in step 1 and click on the crop button. Example Code:define Solve Captcha { create folder($special folder("Desktop"), "Captcha") save browser image("{$special folder("Desktop")}\\Captcha\\captcha.jpg") in new browser { clear cookies set visibility("Invisible") navigate("http://www.online-image-editor.com/", "Wait") wait for element(, 300, "Appear") change file field(, "{$special folder("Desktop")}\\Captcha\\Captcha.jpg") click($element offset(, 1), "Left Click", "No") wait for element(, "", "Appear") click(, "Left Click", "No") wait for element(, "", "Appear") change attribute(, "value", 190) change attribute(, "value", 61) change attribute(, "value", 377) change attribute(, "value", 499) click(, "Left Click", "No") wait for element(, "", "Appear") click(, "Left Click", "No") wait(3) wait for browser event("Everything Loaded", "") }} Step 7: Now the captcha has been singled out. It is the only picture remaining on the screen. We will now use the set variable to set the variable #captcha. Use the solve captcha button and select the picture. Now later when you go to enter your captcha, you will just use the #captcha variable. And voila... We have successfully solved a flash captcha! Full Code Example:define Captcha Command { create folder($special folder("Desktop"), "Captcha") save browser image("{$special folder("Desktop")}\\Captcha\\captcha.jpg") wait(3) in new browser { clear cookies set visibility("Invisible") navigate("http://www.online-image-editor.com/", "Wait") wait for element(, 300, "Appear") change file field(, "{$special folder("Desktop")}\\Captcha\\Captcha.jpg") click($element offset(, 1), "Left Click", "No") wait for element(, "", "Appear") click(, "Left Click", "No") wait for element(, "", "Appear") change attribute(, "value", 190) change attribute(, "value", 61) change attribute(, "value", 377) change attribute(, "value", 499) click(, "Left Click", "No") wait for element(, "", "Appear") click(, "Left Click", "No") wait(3) wait for browser event("Everything Loaded", "") set(#captcha, $solve captcha(), "Global") }} I really hope that many of you will find this guide useful as I spent quite a bit of time whipping it up for you guys. Thanks for all your help in the past, present, and future. Just my way of showing my appreciation to this awesome community! 20 Quote Link to post Share on other sites
a2mateit 395 Posted November 12, 2012 Author Report Share Posted November 12, 2012 Somehow my post got all messed up with the paragraph breaks. I will correct that shortly so it's easier to read. Gotta take a break now. Quote Link to post Share on other sites
a2mateit 395 Posted November 12, 2012 Author Report Share Posted November 12, 2012 Post fixed and I'll be attaching the .ubot source code shortly. Let me know if you guys have any questions and I'll do my best to answer them and help you get this working for you. I tried to make it as step by step easy as possible so that even a complete noob all the way to the ubot pros can learn something from this. So just remember... Sometimes you have to think outside of the box! Happy botting everyone and long live automation,Justin Quote Link to post Share on other sites
Legend 181 Posted November 12, 2012 Report Share Posted November 12, 2012 Very cool! Thanks for the share! Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted November 12, 2012 Report Share Posted November 12, 2012 Nice one justin! +1 Quote Link to post Share on other sites
rulez05 3 Posted November 12, 2012 Report Share Posted November 12, 2012 your the man Quote Link to post Share on other sites
rotem 4 Posted November 12, 2012 Report Share Posted November 12, 2012 Just make .net thingie to crop image and save all that slow navigation. Quote Link to post Share on other sites
Lord Of The North 11 Posted November 12, 2012 Report Share Posted November 12, 2012 Hey Justin this is a great share man !!! Many thanks for this +1 Quote Link to post Share on other sites
P0s3id0n 90 Posted November 12, 2012 Report Share Posted November 12, 2012 Great Share. Thanks a lot for this Quote Link to post Share on other sites
malefic 48 Posted November 12, 2012 Report Share Posted November 12, 2012 Brilliant - will be having a play with this later.....nice of you to show the rest of us how to do it! Quote Link to post Share on other sites
a2mateit 395 Posted November 12, 2012 Author Report Share Posted November 12, 2012 Here is the .ubot source code:flash captcha example.ubot Keep on botting guys. Justin 2 Quote Link to post Share on other sites
VaultBoss 310 Posted November 12, 2012 Report Share Posted November 12, 2012 +1 Justin... Quote Link to post Share on other sites
pftg4 102 Posted November 12, 2012 Report Share Posted November 12, 2012 Hi Justin Great Tutorial quick Question,Why are you using Save Browser Image and having to crop photo etc when you can use Save element image and just select captcha and it save the element image Did i miss something??????? fewer steps?????? Pftg4 Quote Link to post Share on other sites
a2mateit 395 Posted November 12, 2012 Author Report Share Posted November 12, 2012 Hi Justin Great Tutorial quick Question,Why are you using Save Browser Image and having to crop photo etc when you can use Save element image and just select captcha and it save the element image Did i miss something??????? fewer steps?????? Pftg4 Not sure what you mean. The captcha is part of the page. Meaning you cannot single it out with save element image. So in this case the cropping is neccesary. Unless you know something that I don't. Quote Link to post Share on other sites
pftg4 102 Posted November 12, 2012 Report Share Posted November 12, 2012 hey justin thought just the captcha was flash open mouth insert foot lol try this code and send it to the captcha companys without croping they can see it easy enough maybe they will solve it i don't have it or i would have tryed it myself define Captcha Command { create folder($special folder("Desktop"), "Captcha") navigate("http://www.pinger.com/tfw/", "Wait") click(<image="___IMAGE___0___IMAGE___">, "Left Click", "No") save element image(<id="flashContainer">, "{$special folder("Desktop")}\\captcha\\test.png") save to file("{$special folder("Desktop")}\\captcha\\test.html", "<img src=\"test.png\">") navigate("{$special folder("Desktop")}\\captcha\\test.html", "Wait") set(#captcha, $solve captcha(<src="test.png">), "Global")} pftg4 you will of course have to edit the click image Quote Link to post Share on other sites
a2mateit 395 Posted November 12, 2012 Author Report Share Posted November 12, 2012 Yeah that will sometimes solve the captcha. Maybe 1 out of 5. That's what I was doing at first was just sending the whole page to the captcha service. But I found that to be extremely unreliable. It was coming back as error or null... That's when I came up with this solution. So I wasn't wasting captcha's and time *hoping* they would know how to solve the captcha. Cheers,Justin Quote Link to post Share on other sites
a2mateit 395 Posted November 14, 2012 Author Report Share Posted November 14, 2012 Just make .net thingie to crop image and save all that slow navigation. Not really sure what you mean? This was meant to serve as a way to handle this type of captcha via Ubot without having to code in another language... Quote Link to post Share on other sites
a2mateit 395 Posted November 25, 2012 Author Report Share Posted November 25, 2012 Seems like this has been pretty helpful for everyone. Maybe it should be pinned in the tutorials section somewhere. 1 Quote Link to post Share on other sites
a2mateit 395 Posted December 4, 2012 Author Report Share Posted December 4, 2012 Nice one justin! +1 Glad you found it useful. A little off topic, but have you come up with a new workaround for the onload feature? Quote Link to post Share on other sites
a2mateit 395 Posted August 14, 2013 Author Report Share Posted August 14, 2013 Would be another cool feature to have something like this include in v5 to prevent having to use this work around. Quote Link to post Share on other sites
rocket976 62 Posted August 14, 2013 Report Share Posted August 14, 2013 Thank you this is a great work around. Quote Link to post Share on other sites
a2mateit 395 Posted August 14, 2013 Author Report Share Posted August 14, 2013 Glad it was useful rich Quote Link to post Share on other sites
UBot Marketer 7 Posted September 20, 2013 Report Share Posted September 20, 2013 Nice Share. Thanks Quote Link to post Share on other sites
a2mateit 395 Posted September 20, 2013 Author Report Share Posted September 20, 2013 Your welcome Quote Link to post Share on other sites
a2mateit 395 Posted April 19, 2015 Author Report Share Posted April 19, 2015 Anybody know if there has been something similar to this implemented in v5? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.