Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emulating click based event on a web page

Tags:

javascript

c#

This link goes to an implementation of the imagination captcha imagination

The authors have themselves requested for people to make algorithms to try its efficiency against AI attacks.

Essentially the first page is asking for a mouse click anywhere on the image... My problem is that my algorithm comes up with the point (x,y) on the image but I want to emulate it real time on this link...

Can some one tell me how can i send the point values on this link and get back the message whether i was successful or not....

Essentially I am asking how can i emulate a mouse click on this link at the points that my algorithm gives using C#...

I am asking this only for studying the features of this captcha and its accuracy.

Thanks a lot

like image 265
user671805 Avatar asked Nov 27 '11 10:11

user671805


1 Answers

If you are able to execute JavaScript on that page directly, this code will do:

submitClick(document.getElementById("img").value, x, y, "tiled");

Otherwise, hit this url, substituting your own values for id, x, and y:

http://goldbach.cse.psu.edu/s/captcha/captcha_controller.php?id=87170&x=66&y=149&source=tiled

Parse the response - If your coordinates are correct, the response will contain "step 2". If not, the response will contain "step 1" and it will have a <div id="error">.

like image 157
gilly3 Avatar answered Sep 21 '22 09:09

gilly3