title: How do I curl a request to bruteforce an unsecure login
body: <h2>Disclaimer:</h2>
  
  <p>This is for educational purposes only, and obviously the <code>login</code> module is designed to be bruteforced.</p>
  
  <h2>Question:</h2>
  
  <p>I have login with a <code>user</code> similar to the <code>pass</code>. The <code>user</code> is a number like so: </p>
  
  <pre><code>1234001
  </code></pre>
  
  <p>I can login using a single request like so:</p>
  
  <pre><code>curl -iL --data-urlencode  user="1234001" --data-urlencode password="1234001" http://foo.dev/login
  </code></pre>
  
  <p>Now the question is that how do, I loop with it, assuming that I received a 302 code if success</p>
  
  <pre><code>url="http://foo.dev/login"
  for i in 300; do
      curl -iL --data-urlencode  user="1234001" --data-urlencode password="1234001" http://foo.dev/login
   // if????
  done
  </code></pre>