Exemple #1
0
def btrar(run):
    try:
        global defaultarch, defaultdicc
        if run != 1:
            actions = raw_input(d.prompt("fle/bruterar"))
        else:
            actions = "run"
        if actions == "show options" or actions == "sop":
            d.option()
            d.descrip("file", "yes", "file with pass", defaultarch)
            d.descrip("dict", "yes", "Dictionary pass", defaultdicc)
            print ""
            btrar(0)
        elif actions[0:8] == "set file":
            defaultarch = ping.update(defaultarch, actions, "file")
            d.change("file", defaultarch)
        elif actions[0:8] == "set dict":
            defaultdicc = ping.update(defaultdicc, actions, "dict")
            d.change("dict", defaultdicc)
        elif actions == "exit" or actions == "x":
            d.goodbye()
            exit()
        elif actions == "help" or actions == "h":
            help.help()
        elif actions == "back" or actions == "b":
            pass
        elif actions == "run" or actions == "r":
            d.run()
            try:
                d.loading_file()
                Arch = open(defaultdicc, "r")
                if True:
                    leeArchivo = Arch.readlines()
                    try:
                        RARarch = RarFile(defaultarch)
                        if True:
                            for palabra in leeArchivo:
                                palabraLlegada = palabra.split("\n")
                                try:
                                    RARarch.extractall(
                                        pwd=str(palabraLlegada[0]))
                                    if True:
                                        ping.savetwo("BruteForceRAR",
                                                     defaultarch,
                                                     palabraLlegada[0])
                                        print "\n-" + Suf + " file Cracked with =", str(
                                            palabraLlegada[0]) + "\n"
                                        return 1
                                except:
                                    print " " + Alr + " Checking with ", str(
                                        palabraLlegada[0])
                    except:
                        Errors.Errors(event=sys.exc_info(), info=defaultarch)
            except:
                Errors.Errors(event=sys.exc_info(), info=defaultdicc)
        else:
            d.No_actions()
    except:
        Errors.Errors(event=sys.exc_info(), info=sys.exc_traceback.tb_lineno)
    btrar(0)
Exemple #2
0
def btzip(run):
	try:
		global defaultarch,defaultdicc
		if run!=1:
			actions=raw_input(d.prompt("fle/zip"))
		else:
			actions="run"
		if actions == "show options" or actions == "sop":
			d.option()
			d.descrip("file","yes","file with pass",defaultarch)
 			d.descrip("dict_1","yes","Dictionary pass",defaultdicc)
			print ""
			btzip(0)
		elif actions[0:8] == "set file":
			defaultarch = actions[11:]
			d.change("file",defaultarch)
			btzip(0)
		elif actions[0:10] == "set dict_1":
			defaultdicc = actions[11:]
			d.change("dict_1",defaultdicc)
			btzip(0)
		elif actions=="exit" or actions=="x":
			d.goodbye()
			exit()
		elif actions=="help" or actions=="h":
			help.help()
		elif actions=="back" or actions=="b":
			pass
		elif actions=="run"  or actions=="r":
			d.run()
			try:
				d.loading()
				Arch = open(defaultdicc,"r")
				if True:
					leeArchivo = Arch.readlines()
					for palabra in leeArchivo:
						palabraLlegada = palabra.split("\n")
						try:
							ZIParch = zipfile.ZipFile(defaultarch)
							try:
								ZIParch.extractall(pwd=str(palabraLlegada[0]))
								if True:
									ping.savetwo("BruteForceZIP",defaultarch,palabraLlegada[0])
									print "\n-"+Suf+" file Cracked with =",str(palabraLlegada[0])+"\n"
									return 1
							except:
								print " "+Alr+" Checking with ",str(palabraLlegada[0])
						except:
							d.arcnot(defaultarch)
							btzip(0)
			except:
				d.filenot(defaultdicc)
				btzip(0)
		else:
			d.nocommand()
	except:
		d.kbi()
		exit()
	btzip(0)
Exemple #3
0
def btzip(run):
	try:
		global defaultarch,defaultdicc
		if run!=1:
			actions=raw_input(d.prompt("fle/zip"))
		else:
			actions="run"
		if actions == "show options" or actions == "sop":
			d.option()
			d.descrip("file","yes","file with pass",defaultarch)
 			d.descrip("dict","yes","Dictionary pass",defaultdicc)
			print ""
			btzip(0)
		elif actions[0:8] == "set file":
			defaultarch=ping.update(defaultarch,actions,"file")
			d.change("file",defaultarch)
		elif actions[0:8] == "set dict":
			defaultdicc=ping.update(defaultdicc,actions,"dict")
			d.change("dict",defaultdicc)
		elif actions=="exit" or actions=="x":
			d.goodbye()
			exit()
		elif actions=="help" or actions=="h":
			help.help()
		elif actions=="back" or actions=="b":
			pass
		elif actions=="run"  or actions=="r":
			d.run()
			try:
				d.loading_file()
				Arch = open(defaultdicc,"r")
				if True:
					leeArchivo = Arch.readlines()
					try:
						ZIParch = zipfile.ZipFile(defaultarch)
						if True:
							for palabra in leeArchivo:
								palabraLlegada = palabra.split("\n")
								try:
									ZIParch.extractall(pwd=str(palabraLlegada[0]))
									if True:
										ping.savetwo("BruteForceZIP",defaultarch,palabraLlegada[0])
										print "\n-"+Suf+" file Cracked with =",str(palabraLlegada[0])+"\n"
										return 1
								except:
									print " "+Alr+" Checking with ",str(palabraLlegada[0])
					except:
						Errors.Errors(event=sys.exc_info(), info=defaultarch)
			except:
				Errors.Errors(event=sys.exc_info(), info=defaultdicc)
		else:
			d.No_actions()
	except:
		Errors.Errors(event=sys.exc_info(), info=False)
	btzip(0)
Exemple #4
0
def btrar(run):
    try:
        global defaultarch, defaultdicc
        if run != 1:
            actions = raw_input(d.prompt("fle/rar"))
        else:
            actions = "run"
        if actions == "show options" or actions == "sop":
            d.option()
            d.descrip("file", "yes", "file with pass", defaultarch)
            d.descrip("dict_1", "yes", "Dictionary pass", defaultdicc)
            print ""
            btrar(0)
        elif actions[0:8] == "set file":
            defaultarch = actions[11:]
            d.change("file", defaultarch)
            btrar(0)
        elif actions[0:10] == "set dict_1":
            defaultdicc = actions[11:]
            d.change("dict_1", defaultdicc)
            btrar(0)
        elif actions == "exit" or actions == "x":
            d.goodbye()
            exit()
        elif actions == "help" or actions == "h":
            help.help()
        elif actions == "back" or actions == "b":
            pass
        elif actions == "run" or actions == "r":
            d.run()
            try:
                d.loading()
                Arch = open(defaultdicc, "r")
                if True:
                    leeArchivo = Arch.readlines()
                    for palabra in leeArchivo:
                        palabraLlegada = palabra.split("\n")
                        try:
                            RARarch = RARfile.RARFile(defaultarch)
                            try:
                                RARarch.extractall(pwd=str(palabraLlegada[0]))
                                if True:
                                    ping.savetwo("BruteForceRAR", defaultarch,
                                                 palabraLlegada[0])
                                    print "\n-" + Suf + " file Cracked with =", str(
                                        palabraLlegada[0]) + "\n"
                                    return 1
                            except:
                                print " " + Alr + " Checking with ", str(
                                    palabraLlegada[0])
                        except:
                            d.arcnot(defaultarch)
                            btrar(0)
            except:
                d.filenot(defaultdicc)
                btrar(0)
        else:
            d.nocommand()
    except:
        d.kbi()
        exit()
    btrar(0)