1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Getting my feet wet

Discussion in 'General Programming Chat' started by Seuss, Jul 20, 2011.

  1. Seuss

    Seuss BANNED BANNED

    Joined:
    Jun 13, 2009
    Messages:
    56
    Likes Received:
    22
    So I've decided to dive into C# after having years of experience programming with PhP, Python, C++, Obj.-C, etc. etc.

    I thought a good first example was to try and create a digg bot for creating accounts, but have the user manually type in the captcha...

    I've basically got it all done but can not for the life of me get the post data to upload correctly...I've set all of the what I believe are necessary HTTP params correctly based off of the data I retrieved from Live HTTP Headers in FireFox. If I post to an ajax location from c# the receiver will accept my request correct? or is this my first problem?

    TIA!

    Seuss
     
  2. daymond

    daymond Junior Member Premium Member

    Joined:
    May 24, 2011
    Messages:
    185
    Likes Received:
    40
    Why not to make for start some easy bot for forums that do not have ajax, in this way you will see full process: registration, email confirmation, logging, writing content
    also use some captcha api service to bypass captchas
     
  3. Seuss

    Seuss BANNED BANNED

    Joined:
    Jun 13, 2009
    Messages:
    56
    Likes Received:
    22
    I can easily implement a decaptcha api into even this program. I just wanted to try at something...I have done a lot of web programming, so I'm familiar with JSON and what not, which is what the remote server is expecting and I'm sending in text/javascript form which the digg site sends...

    I guess that I feel I'm so close to finishing this one, I'd rather finish this before moving on. My next easy bot will be for as you say, some forum, etc.
     
  4. Bots_Do_it_Faster

    Bots_Do_it_Faster Registered Member

    Joined:
    Jun 28, 2010
    Messages:
    64
    Likes Received:
    77
    Occupation:
    Web Developer php and c#
    Location:
    South Florida
    Yes you should be able to post to an ajax location, but if you don't look real close there can be extra parameters being passed. When I get to a point like this I like to fire up Fiddler and watch the POST values doing it manually and then again with the bot and just make sure they are matching. Comparing the two will usually make it very obvious what you are missing. I've often had an ajax call checking my referrer to make sure I'm a real user that made it to the page they expect it to work from verse a bot just posting from anywhere.
     
  5. Seuss

    Seuss BANNED BANNED

    Joined:
    Jun 13, 2009
    Messages:
    56
    Likes Received:
    22
    Ok, I finally got it working correctly. It actually was really pretty easy. Not sure how difficult making other bots are, but this one wasn't too bad. Going to look into integrating a decaptcha api or even possibly an open source OCR and image manipulation tool to try and automate these captchas. A few more finishing touches on the program and I will have it ready to hand out here.
     
  6. kobokok

    kobokok Registered Member

    Joined:
    Dec 19, 2009
    Messages:
    54
    Likes Received:
    7
    What have you corrected? Did you missed a POST parameter?
     
  7. Seuss

    Seuss BANNED BANNED

    Joined:
    Jun 13, 2009
    Messages:
    56
    Likes Received:
    22
    I had an extra character in one of the POST params. Couldn't believe it when I saw it, but was an easy fix.