Jump to content

  •  

  • iBotModz CBox


    derekchrisp's Content

    There have been 6 items by derekchrisp (Search limited from 28-June 23)


    Sort by                Order  

    #111688 C# Loading reCaptcha into a imagebox

    Posted by derekchrisp on 09 January 2010 - 11:54 AM in Coding / Development

    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.



    #111613 C# Loading reCaptcha into a imagebox

    Posted by derekchrisp on 07 January 2010 - 11:11 AM in Coding / Development

    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@



    #111611 C# Loading reCaptcha into a imagebox

    Posted by derekchrisp on 07 January 2010 - 10:46 AM in Coding / Development

    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)
            {
    
            }
        }
    }
    



    #111607 C# Loading reCaptcha into a imagebox

    Posted by derekchrisp on 07 January 2010 - 07:49 AM in Coding / Development

    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.



    #111606 C# Loading reCaptcha into a imagebox

    Posted by derekchrisp on 07 January 2010 - 06:56 AM in Coding / Development

    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



    #111573 C# Loading reCaptcha into a imagebox

    Posted by derekchrisp on 06 January 2010 - 07:17 AM in Coding / Development

    For me your code wont work throws an exeption :(