title: How do I create a brute force password finder using python?
body: <p>I want to create a brute force password finder using python for ethical reasons, I looked up tutorials on how to do this and all the tutorials I found have variables that contain the password. I want to find the password but I don't know what it is.</p>
  <p>So what I want for the code to do is to get the password text-box of any website and take passwords from a list I have and try using them in the text box. I am not sure how to do that, but here is some sample code of what I have so far. Also, I am a somewhat beginner when it comes to coding python, I have a somewhat good grasp of the fundamentals of the language. So depending on how you word your response I might not understand what to do.</p>
  <p>Code:</p>
  <pre class="lang-py prettyprint-override"><code>import random
  char_list = './password.txt'
  password = 'lakers'
  def main():
      with open('./password.txt') as f:
          for line in f:
              guess_password = random.choices(char_list)
  
  if __name__ == '__main__':
      main()
  </code></pre>