fgthhhh Posted June 3, 2010 Share Posted June 3, 2010 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 Link to comment Share on other sites More sharing options...
fgthhhh Posted June 4, 2010 Author Share Posted June 4, 2010 bump Link to comment Share on other sites More sharing options...
FuryCell Posted June 4, 2010 Share Posted June 4, 2010 (edited) This whole deathbycaptcha smells fishy. What legimate use do you have for bypassing captchas? Edited June 4, 2010 by FuryCell HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
fgthhhh Posted June 4, 2010 Author Share Posted June 4, 2010 it just want to use it in my program, isn't it allowed here? Link to comment Share on other sites More sharing options...
GEOSoft Posted June 4, 2010 Share Posted June 4, 2010 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!" Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 4, 2010 Moderators Share Posted June 4, 2010 (edited) 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 June 4, 2010 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. Link to comment Share on other sites More sharing options...
Recommended Posts