Jump to content
UBot Underground

Recommended Posts

http://i.imgur.com/Agmei.jpg

Hello 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!

  • Like 20
Link to post
Share on other sites

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

Link to post
Share on other sites

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

Link to post
Share on other sites

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.

Link to post
Share on other sites

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

Link to post
Share on other sites

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

Link to post
Share on other sites

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...

Link to post
Share on other sites
  • 2 weeks later...
  • 2 weeks later...
  • 8 months later...
  • 1 month later...
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...