I'm working with a website that uses a simple CAPTCHA and I'm looking to try and submit data into the CAPTCHA's entry field and then see what the response is. Eventually, I plan on trying to see if I can do a Padding Oracle attack. After some digging on the website's source I'm fairly sure that the line in the form I need to be dealing with is:
<input type="text" name="login_captcha" size="12" maxlength="6" /> </p>
So I did some digging on StackOverflow to learn how to do this and so far I've made:
Send = "The data I want to submit"
url = 'www.website.com'
values = {'login_captcha' : Send}
data = urllib.urlencode(values)
req = urllib2.Request(url, data)
response = urllib2.urlopen(req)
the_page = response.read()
print the_page
But it doesn't seem to work. Everything I've read so far seems to say this is the way to do it but it doesn't seem to be doing anything. Does anything seem out of order here?