Python : Please help me about script python auto login.
#!/usr/bin/python
import urllib.request
from urllib.request import urlopen
users = ("admin","administrator","root")
passwords =("admin","password","passw0rd","1234","5678")
for user in users:
for password in passwords:
url = ('http://localhost/wp-login.php')
reg = urllib.request.Request(url)
reg.add_header("Cookie", "PHPSESSID=enter cookied here;security=low")
response = urlopen(reg)
html = response.read()
#How to coding method print show success user and password or fail login.
print("administrator's username and password --- %s : %s" %(user,password))
How to coding method print show success user and password or fail login. So sorry my grammar and Thank you.