Example #1
0
    def saveTicket(self, ticket, sessionKey):
        logging.info('Saving ticket in %s' % (self.__user + '.ccache'))
        from impacket.krb5.ccache import CCache
        ccache = CCache()

        ccache.fromTGT(ticket, sessionKey, sessionKey)
        ccache.saveFile(self.__user + '.ccache')
Example #2
0
    def _report_good_password(self, user, password, tgt, user_key):
        with self.report_lock:
            if user not in self.good_users:
                self.good_users[user] = True

            if user in self.good_credentials:
                return

            self.good_credentials[user] = password

            logging.info('Stupendous => %s:%s' % (user, password))

            if self.out_creds_file:
                self.out_creds_file.write("%s:%s\n" % (user, password))
                self.out_creds_file.flush()
            if self.out_users_file:
                self.out_users_file.write("%s\n" % user)
                self.out_users_file.flush()

            if self.save_ticket:
                ccache = CCache()
                ccache.fromTGT(tgt, user_key, user_key)

                ccache_file = user + '.ccache'
                ccache.saveFile(ccache_file)
                logging.info('Saved TGT in %s' % ccache_file)
Example #3
0
 def saveTicket(self, tgt, sessionKey):
     logging.info('Saving ticket in %s' %
                  (self.__target.replace('/', '.') + '.ccache'))
     from impacket.krb5.ccache import CCache
     ccache = CCache()
     ccache.fromTGT(tgt, sessionKey, sessionKey)
     ccache.saveFile(self.__target.replace('/', '.') + '.ccache')
Example #4
0
    def saveTicket(self, ticket, sessionKey):
        logging.info('Saving ticket in %s' % (self.__user + '.ccache'))
        from impacket.krb5.ccache import CCache
        ccache = CCache()

        ccache.fromTGT(ticket, sessionKey, sessionKey)
        ccache.saveFile(self.__user + '.ccache')
Example #5
0
    def saveTicket(self, ticket, sessionKey):
        logging.info('Saving ticket in %s' % (self.__target.replace('/', '.') + '.ccache'))
        from impacket.krb5.ccache import CCache
        ccache = CCache()

        if self.__server == self.__domain:
            ccache.fromTGT(ticket, sessionKey, sessionKey)
        else:
            ccache.fromTGS(ticket, sessionKey, sessionKey)
        ccache.saveFile(self.__target.replace('/','.') + '.ccache')
Example #6
0
    def saveTicket(self, ticket, sessionKey):
        logging.info('Saving ticket in %s' % (self.__target.replace('/', '.') + '.ccache'))
        from impacket.krb5.ccache import CCache
        ccache = CCache()

        if self.__server == self.__domain:
            ccache.fromTGT(ticket, sessionKey, sessionKey)
        else:
            ccache.fromTGS(ticket, sessionKey, sessionKey)
        ccache.saveFile(self.__target.replace('/','.') + '.ccache')
Example #7
0
 def saveTicket(self, tgt, sessionKey):
     logging.info('Saving ticket in %s' % (self.__target.replace('/', '.') + '.ccache'))
     from impacket.krb5.ccache import CCache
     ccache = CCache()
     ccache.fromTGT(tgt, sessionKey, sessionKey)
     ccache.saveFile(self.__target.replace('/','.') + '.ccache')