Jump to content

  •  

  • iBotModz CBox


    derekchrisp

    Member Since 31 Dec 2009
    Offline Last Active Jan 17 2010 11:23 PM
    -----

    Posts I've Made

    In Topic: C# Loading reCaptcha into a imagebox

    09 January 2010 - 11:54 AM

    Hey iBotPeaches do you know how to post form data through multipart/form-data without messing boundaryes . Not trying to upload file just post fields values.

    In Topic: C# Loading reCaptcha into a imagebox

    07 January 2010 - 11:11 AM

    I can easily crack it through noscript solution with php . Thats not problem . But im trying to do it without noscript. Let's take Twitter https://twitter.com/signup . As you can see they don't offer noscript access so this is what makes me some headache.
    Hey i added you in msn im kaidoristm@

    In Topic: C# Loading reCaptcha into a imagebox

    07 January 2010 - 10:46 AM

    So ok i tested following tell me what a heck im doing wrong like i said im really new with this so it makes me bit headache :)

    Testing with mixx registration page https://www.mixx.com/register

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    
    namespace test2
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }
    
            private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
            {
                foreach (HtmlElement images in webBrowser1.Document.Images)
                {
                    if (images.GetAttribute("src").Contains("http://api.recaptcha.net/image?c="))
                    {
                        string url = images.GetAttribute("src");
                        pictureBox1.ImageLocation = url;
                        break;
                    }
                }
            }
    
            private void goButton_Click(object sender, EventArgs e)
            {
                webBrowser1.Navigate(txtUrl.Text);
            }
    
            private void pictureBox1_Click(object sender, EventArgs e)
            {
    
            }
    
            private void txtUrl_TextChanged_1(object sender, EventArgs e)
            {
    
            }
        }
    }
    

    In Topic: C# Loading reCaptcha into a imagebox

    07 January 2010 - 07:49 AM

    I think it's probably because captcha is generated dynamically it's src is not actually in html source. To get captchas location you have to get access to DOM and grab images src from there.

    In Topic: C# Loading reCaptcha into a imagebox

    07 January 2010 - 06:56 AM

    I was talking about your first post. Maybe i am doing something wrong ( im still learning all that c# stuff)

    but tried like this


                foreach (HtmlElement images in webBrowser1.Document.Images)
                {
                    if (images.GetAttribute("src").Contains("http://api.recaptcha.net/image?c="))
                    {
                        string url = images.GetAttribute("src");
                        pictureBox1.ImageLocation = url;
                        break;
                    }
                }
    

    Picture box stays empty. Not sure what im doing wrong