def crack_captcha(self, captcha): """ Crack mode: bruteforcing... """ options = self.options if options.name: print("[Info] Loading module: [" + str(options.name) + "] \n") try: sys.path.append('mods/%s/' % (options.name)) exec("from " + options.name + "_crack" + " import CIntruderCrack") except Exception: print("\n[Error] '" + options.name + "' module not found!\n") return #sys.exit(2) self.optionCrack = CIntruderCrack(captcha) w = self.optionCrack.crack(options) self.word_sug = w else: self.optionCrack = CIntruderCrack(captcha) w = self.optionCrack.crack(options) self.word_sug = w
def crack_captcha(self, captcha): """ Crack mode: bruteforcing... """ options = self.options if options.name: print "Loading module:", options.name print "===============" try: sys.path.append('core/mods/%s/' % (options.name)) exec("from " + options.name + "_crack" + " import CIntruderCrack") except Exception: print "This module: '", options.name, "' exists?. Try --list to view available modules\n" sys.exit(2) self.optionCrack = CIntruderCrack(captcha) w = self.optionCrack.crack(options) self.word_sug = w else: from core.crack import CIntruderCrack self.optionCrack = CIntruderCrack(captcha) w = self.optionCrack.crack(options) self.word_sug = w