Jump to content
Sign in to follow this  
fgthhhh

DeathByCaptcha API

Recommended Posts

fgthhhh

i need to insert this api to my program but i can't make it work.

any1 similar with this can help me?

Func _postdata()
    $IMAGE_PATH = @ScriptDir & '/captcha.jpg'
    $STR_SEND = GETITEMSTR("username", $USERNAME, $BOUNDARY)
    $STR_SEND = $STR_SEND & GETITEMSTR("password", $PASSWORD, $BOUNDARY)
    $STR_SEND = $STR_SEND & GETITEMSTR("is_hashed", 0, $BOUNDARY)
    $STR_SEND = $STR_SEND & "--" & $BOUNDARY & @CRLF & 'Content-Disposition: form-data; name="captchafile";'& @CRLF & 'filename=captcha.jpg' & @CRLF & "Content-Type: application/octet-stream" & @CRLF 
    $XFILE = FileOpen($IMAGE_PATH, 16)
    $IMAGE_DATA = FileRead($XFILE)

    $FOOTER = @CRLF & "--" & $BOUNDARY & "--" & @CRLF
    $TO_SEND = $STR_SEND & $IMAGE_DATA & $FOOTER
    With $oHTTP
        .Open('POST', 'http://deathbycaptcha.com/api/captcha', False)
        .SetRequestHeader('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8')
        .setRequestHeader ("Content-Type", "multipart/form-data; boundary=" & $BOUNDARY)
        .Send($TO_SEND)
    EndWith 
    $RESPONSE = $oHTTP.ResponseText
    $k = $oHTTP.getAllResponseHeaders()
ConsoleWrite("___"&$k&@CRLF&"___"&$RESPONSE)
EndFunc 
Func GETITEMSTR($NAME, $VALUE, $BOUNDARY)
    $STRING = "--" & $BOUNDARY & @CRLF & 'Content-Disposition: form-data; name="' & $NAME & '"' & @CRLF & @CRLF & $VALUE & @CRLF & @CRLF
    Return $STRING
EndFunc

Share this post


Link to post
Share on other sites
fgthhhh

bump

Share this post


Link to post
Share on other sites
FuryCell

This whole deathbycaptcha smells fishy. :mellow:

What legimate use do you have for bypassing captchas?

Edited by FuryCell

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

Share this post


Link to post
Share on other sites
fgthhhh

it just want to use it in my program, isn't it allowed here?

Share this post


Link to post
Share on other sites
GEOSoft

You are trying to bypass a protection method put in place for a reason. Lets turn the tables a bit, you put a lot of time into building a site that you don't want attacked by bots so you put a captcha in there, now do you think it's fair that someone shows the world how to get past it with a bot?


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites
SmOke_N

it just want to use it in my program, isn't it allowed here?

With an answer like that, the answer would be No Edited by SmOke_N
< DeathByModerator >

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×