Пример #1
0
    def tryUsernameLikePassword(self):
        '''
		Try to connect to the DB with each Oracle username using the username like the password
		if lowerAndUpper == True, the username in upper case and lower case format will be tested
		Otherwise identical to username only
		'''
        accounts = []
        self.__loadAllUsernames__()
        passwordGuesser = PasswordGuesser(self.args,
                                          "",
                                          timeSleep=self.args['timeSleep'])
        for usern in self.allUsernames:
            if self.lowerAndUpper == True:
                logging.debug(
                    "Password identical (upper case and lower case) to username will be tested for '{0}'"
                    .format(usern))
                accounts.append([usern, usern.upper()])
                accounts.append([usern, usern.lower()])
            else:
                logging.debug(
                    "Password identical to username will be tested ONLY for '{0}' (option enabled)"
                    .format(usern))
                accounts.append([usern, usern])
        passwordGuesser.accounts = accounts
        passwordGuesser.searchValideAccounts()
        self.validAccountsList = passwordGuesser.valideAccounts
Пример #2
0
	def tryUsernameLikePassword(self):
		'''
		Try to connect to the DB with each Oracle username using the username like the password
		'''
		accounts = []
		self.__loadAllUsernames__()
		passwordGuesser = PasswordGuesser(self.args,"",timeSleep=self.args['timeSleep'])
		for usern in self.allUsernames: accounts.append([usern,usern])
		passwordGuesser.accounts = accounts
		passwordGuesser.searchValideAccounts()
		self.validAccountsList = passwordGuesser.valideAccounts	
Пример #3
0
    def tryUsernameLikePassword(self):
        '''
		Try to connect to the DB with each Oracle username using the username like the password
		'''
        accounts = []
        self.__loadAllUsernames__()
        passwordGuesser = PasswordGuesser(self.args,
                                          "",
                                          timeSleep=self.args['timeSleep'])
        for usern in self.allUsernames:
            accounts.append([usern, usern])
        passwordGuesser.accounts = accounts
        passwordGuesser.searchValideAccounts()
        self.validAccountsList = passwordGuesser.valideAccounts
Пример #4
0
	def tryUsernameLikePassword(self):
		'''
		Try to connect to the DB with each Oracle username using the username like the password
		if lowerAndUpper == True, the username in upper case and lower case format will be tested
		Otherwise identical to username only
		'''
		accounts = []
		self.__loadAllUsernames__()
		passwordGuesser = PasswordGuesser(self.args,accountsFile="",loginFile=None,passwordFile=None,loginAsPwd=False,timeSleep=self.args['timeSleep'])
		for usern in self.allUsernames:
			if self.lowerAndUpper == True:
				logging.debug("Password identical (upper case and lower case) to username will be tested for '{0}'".format(usern))
				accounts.append([usern,usern.upper()])
				accounts.append([usern,usern.lower()])
			else:
				logging.debug("Password identical to username will be tested ONLY for '{0}' (option enabled)".format(usern))
				accounts.append([usern,usern])
		passwordGuesser.accounts = accounts
		passwordGuesser.searchValideAccounts()
		self.validAccountsList = passwordGuesser.valideAccounts