예제 #1
0
파일: main.py 프로젝트: zumb08/cintruder
 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
예제 #2
0
파일: main.py 프로젝트: qiezi168/cintruder
    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