Skip to content

I want to send my captcha images to GSA Captchabreaker in C#.

Hello,

I'm currently using C# to automate a website registration. I managed to get the captcha to be working 30% in gsa captchabreaker however I have no idea how to send my images to captchabreaker for it to break. I got the captcha images already ready to be sent but how can I send it to GSA Captchabreaker?

Sincerely,
Samed.

Comments

  • If in CB you enabled the "Run as server option" with address 127.0.0.1:80, and checked simulate... DeCaptcher, this should do the job:

    var imagefile = "captcha.jpg";
    var form = new MultipartFormDataContent
    {
    	{new StringContent("username"), "username"},
    	{new StringContent("password"), "password"},
    	{new StringContent("picture2"), "function"},
    	{new ByteArrayContent(File.ReadAllBytes(imagefile)), "pict", imagefile}
    };
    var client = new HttpClient();
    var response = client.PostAsync("http://127.0.0.1:80/", form).Result;
    var result = response.Content.ReadAsStringAsync().Result;


  • Hello, I totally forgot I made a topic here asking this... Yea I already figured it out and made it working already.. Sorry for wasting your time.
Sign In or Register to comment.