Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6997939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:20:50+00:00 2026-05-27T20:20:50+00:00

I have recently been messing with form submission and I was making a Python

  • 0

I have recently been messing with form submission and I was making a Python script to see if I could create Steam accounts through only entering the Captcha. For reference, the site I am submitting to is https://store.steampowered.com/join/. As shown by a mechanize request, the forms to fill are shown below:

<create_account POST https://store.steampowered.com/join/ application/x-www-form-urlencoded
<TextControl(accountname=)>
<SelectControl(choose_accountname=[*, , ])>
<PasswordControl(password=)>
<PasswordControl(reenter_password=)>
<TextControl(email=)>
<TextControl(reenter_email=)>
<HiddenControl(challenge_question=) (readonly)>
<TextControl(secret_answer=)>
<HiddenControl(captchagid=1009037421128850761) (readonly)>
<TextControl(captcha_text=)>
<HiddenControl(action=submit_agreement) (readonly)>
<CheckboxControl(i_agree_check=[on])>
<HiddenControl(ticket=) (readonly)>>

Almost everything seems to work, but I’m having a little trouble getting mechanize and urllib2 to properly submit the form. I’m sure that I’m just doing something small and simple wrong, but I have spent a long time trying to find this error. My current request is formulated in a few simple lines like so:

def submit_form(self, captcha_text):
    self.form["accountname"]=account_prefix+get_next_number()
    self.form["password"]=account_password
    self.form["reenter_password"]=account_password
    email = emails.pop()
    self.form["email"] = email
    self.form["reenter_email"] = email
    control = self.form.find_control("challenge_question")
    control.disabled = False
    control.readonly = False
    control.value = "NameOfSchool"
    self.form["secret_answer"] = secret_answer
    self.form["captcha_text"] = captcha_text
    self.form.find_control(id="i_agree_check").items[0].selected = True
    print urllib2.urlopen(self.form.click()).read()
    inc_account_number()
    resave_email_list(emails)

Most of this request is probably right and there are only a few lines I really deem suspicious. With mechanize I am trying to check the “I agree AND am 13 years of age or older” box with the line self.form.find_control(id="i_agree_check").items[0].selected = True. Based on some of my testing I think that that line might actually work, but the whole setting of the ReadOnly challenge_question portion is most likely bugged. For reference, that code segment is:

    control = self.form.find_control("challenge_question")
    control.disabled = False
    control.readonly = False
    control.value = "NameOfSchool"

The final possibility for failure of submission would be the submission method: urllib2.urlopen(self.form.click()).read()

If anyone has ANY ideas about what could be going wrong or even an alternative method to accomplish the task using Python, I would be very grateful. I have searched hard and failed. If you can, lend a hand!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:20:50+00:00Added an answer on May 27, 2026 at 8:20 pm

    Fetch page https://store.steampowered.com/join/ and search for regexp <input type="hidden" id="captchagid" name="captchagid" value="(.+)">.

    Captcha URL will be https://store.steampowered.com/public/captcha.php?gid=<gid>.

    Fetch https://store.steampowered.com/join/createaccount/ with POST data:

        accountname=<name>&password=<password>&email=<email>&challenge_question=<question>&secret_answer=<secretansewer>&captchagid=<gid>captcha_text=<captch_text>&i_agree=1&ticket=&count=4
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently been working with Python using Komodo Edit and other simpler editors
I have recently been web-researching quantum computing. Will we see these in our lifetimes
I've recently taken the plunge into DirectX and have been messing around a little
I have recently been messing around with SFML , a multimedia library. I use
I have recently been messing around with jQuery on my website, and I have
Recently I've been messing around a fair amount with OpenGL, and I have come
Have recently been given a project to complete which uses XML quite extensively.Am looking
I have recently been doing a bit of investigation into the different types of
I have recently been thinking about the difference between the two ways of defining
I have recently been exposed to naked objects. It looks like a pretty decent

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.