+ Reply to Thread + Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: decaptcher API example

  1. #1
    Noobie
    Join Date
    Apr 2008
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default decaptcher API example

    Hey anyone has a code with decaptcher API ?
    I'm trying to add decaptcher.com to my bot but dunno how

  2. Shorten URL    SEO Services    Buy Xrumer

    Sponsored Links

  3. #2
    Noobie
    Join Date
    Apr 2008
    Posts
    491
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    lol, I just posted a thread about the PHP API:
    http://www.blackhatworld.com/blackhat-seo/php-perl/179710-does-anyone-have-example-php-script-has-integrated-decaptcher-api.html

    Just been checking it out but looks a little bit confusing :S

  4. #3
    Noobie
    Join Date
    Apr 2008
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    voidale which one you are looking for . c# or vb

    EDIT: Thread posted in vb.net.

  5. #4
    Noobie
    Join Date
    Apr 2008
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yeah vb.net, I'm still looking for it
    @gimme4free yea it's I'm using vb.net for like 5 days only lol

  6. #5
    Noobie
    Join Date
    Apr 2008
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    if all they have is c# you can convert c#.net code to vb.net code. there are online converters.

  7. #6
    Noobie
    Join Date
    Apr 2008
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    is your intention to use their DLL that encompasses their API, or to use their HTTP API?

  8. #7
    Noobie
    Join Date
    Apr 2008
    Posts
    145
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I use C# which i can show you how to use the code (I didn't end up using the code they give you, just the DLL).

    Pro Tip : Download a .net reflector. I use "Red Gate's". But i cant remember where i got it from. From there, go to the downloads section and find a tool that is built in .net and has decaptcher support. Reflect/decompile the application and read their code to get an idea of how you're supposed to use it.

    I'm not saying completely rip their code, but I can remember when i first tried using Decaptcher it was absolute hell. And their coding is shonky as hell...

    Ontop of that, Dont use their HTTP api, Multi-Part forms and .net don't mix.

  9. #8
    Noobie
    Join Date
    Apr 2008
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    lol when i first started using it I was using their CLI executable in my program via shell commands

  10. #9
    Noobie
    Join Date
    Apr 2008
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Downloaded the net reflector checked 1 software source couldn't find the decaptcher part
    lol looking for more apps to see, seems hard to rip off their code too

    edit: I found 1 bot with the decaptcher code but i can't really understand how to use it ;/

  11. #10
    Noobie
    Join Date
    Apr 2008
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'd suggest just accessing it via http. Their dll is really rather poor and the comments/documentation were written by someone who clearly does not speak english as their first language...or they're from georgia. This isnt direct source or anything, it utilized my custom http class which has a fair amount of browser logic built into it. but it should give you a general idea of how to POST the picture to decaptcher. No, there isn't any reason for building the POST string the way I am instead of using stringbuilder...well, misguided laziness. But you get the picture. Anything else you need to know is available in decaptchers documentation.

    Code:
     * * *
    ** * *Dim http As New HTTPsession(SessionType.Standard)
    ** * *Dim resp As HttpResponse
    ** * *Dim bound As String = rndNum(15, False)
    ** * *Dim postData As String
    ** * *Dim sreq As New SearchRequisites
    ** * *Dim dRet As New DecaptcherReturn
    
    ** * *With http
    ** * * * .ConnectionTimeout = 15
    ** * * * .TransferTimeout = 90
    ** * * * .ContentType = "multipart/form-data; boundary=---------------------------" & bound
    ** * *End With
    
    ** * *With sreq
    ** * * * .AddAND("")
    ** * * * .AddAND("")
    ** * *End With
    
    ** * *bound = "-----------------------------" & bound
    
    ** * *postData = bound & vbNewLine & _
    ** * * * "Content-Disposition: form-data; name=""function""" & vbNewLine & vbNewLine & _
    ** * * * "picture2" & vbNewLine & bound & vbNewLine & _
    ** * * * "Content-Disposition: form-data; name=""username""" & vbNewLine & vbNewLine & _
    ** * * * name & vbNewLine & bound & vbNewLine & _
    ** * * * "Content-Disposition: form-data; name=""password""" & vbNewLine & vbNewLine & _
    ** * * * pw & vbNewLine & bound & vbNewLine & _
    ** * * * "Content-Disposition: form-data; name=""pict""; filename=""" & rndStr(10, True) & "." & fileExt & """" & vbNewLine & _
    ** * * * "Content-Type: " & fileType & vbNewLine & vbNewLine & _
    ** * * * img & vbNewLine & bound & vbNewLine & _
    ** * * * "Content-Disposition: form-data; name=""pict_to""" & vbNewLine & vbNewLine & _
    ** * * * "2" & vbNewLine & bound & vbNewLine & _
    ** * * * "Content-Disposition: form-data; name=""pict_type""" & vbNewLine & vbNewLine & _
    ** * * * PictType & vbNewLine & bound & "--"

+ Reply to Thread
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts