'uniquify mimikatz tuples based on the password
cred format- (credType, domain, username, password, hostname, sid)
Stolen from the Empire project.'

def uniquify_tuples(self, tuples):

    seen = set()
    return [item for item in tuples if (('{}{}{}{}'.format(item[0], item[1], item[2], item[3]) not in seen) and (not seen.add('{}{}{}{}'.format(item[0], item[1], item[2], item[3]))))]
