python read last line !
<p>My problem is in this code:</p>

<pre><code>try:
    PassL = open(sys.argv[3], "r").readlines()
    print "[+] Passwords:",len(PassL),"\n"
except(IOError): 
    print "[-] Error: Check your wordlist path\n"
    sys.exit(1)
    for word in PassL:
        word = word.replace("\r","").replace("\n","")
    login_form_seq = [
    ('log', sys.argv[2]),
    ('pwd', word),
    ('rememberme', 'forever'),
    ('wp-submit', 'Login &gt;&gt;'),
    ('redirect_to', 'wp-admin/')]
    try:
         login_form_data = urllib.urlencode(login_form_seq)
         opener = urllib2.build_opener()
    except:
         print'Unknown ERROR'
    try:
             OP = opener.open(host, login_form_data).read()
    except(urllib2.URLError), msg:
         print msg
         OP = ""
    else:
         'wrong?'
    if re.search("WordPress requires Cookies",OP):
            print "[-] Failed: WordPress has cookies enabled\n"
            sys.exit(1)
        #Change this response if different. (language)
    if re.search("&lt;strong&gt;ERROR&lt;/strong&gt;",OP):
         print "[-] Login Failed :",word
    else:
             print "\n[!] Login Successfull:",'[#]The Information:',sys.argv[2],':',word
</code></pre>

<p>So the problem is, I provide <code>sys.argv[2]</code> and that gets the <code>txt</code> file. For example:</p>

<pre><code>www.py wow.txt
</code></pre>

<p>Then in my python script I try to login to a web site with the password in wow.txt. The problem is, I put 15 passwords in <code>wow.txt</code> and my <code>www.py</code> script reads the last line!</p>

<p>The purpose of the script is because I forget a lot of my Wordpress accounts (around six accounts), and actually am thinking of trying 25 passwords for each. So make it easy for me -- don't say "go and try it manually", just give me the code or the right way.</p>
