def __init__(self, sleep_min, sleep_max, watchdog, platform='unknown', server='unknown', host='unknown', username='unknown', architecture='unknown', group='red', location='unknown', pid=0, ppid=0, trusted=True, executors=(), privilege='User', exe_name='unknown', contact='unknown', paw=None):
    super().__init__()
    self.paw = (paw if paw else self.generate_name(size=6))
    self.host = host
    self.username = username
    self.group = group
    self.architecture = architecture
    self.platform = platform
    url = urlparse(server)
    self.server = ('%s://%s:%s' % (url.scheme, url.hostname, url.port))
    self.location = location
    self.pid = pid
    self.ppid = ppid
    self.trusted = trusted
    self.created = datetime.now()
    self.last_seen = self.created
    self.last_trusted_seen = self.created
    self.executors = executors
    self.privilege = privilege
    self.exe_name = exe_name
    self.sleep_min = int(sleep_min)
    self.sleep_max = int(sleep_max)
    self.watchdog = int(watchdog)
    self.contact = contact
    self.links = []
    self.access = (self.Access.BLUE if (group == 'blue') else self.Access.RED)
def __init__(self, sleep_min, sleep_max, watchdog, platform='unknown', server='unknown', host='unknown', username='unknown', architecture='unknown', group='red', location='unknown', pid=0, ppid=0, trusted=True, executors=(), privilege='User', exe_name='unknown', contact='unknown', paw=None):
    super().__init__()
    self.paw = (paw if paw else self.generate_name(size=6))
    self.host = host
    self.username = username
    self.group = group
    self.architecture = architecture
    self.platform = platform
    url = urlparse(server)
    self.server = ('%s://%s:%s' % (url.scheme, url.hostname, url.port))
    self.location = location
    self.pid = pid
    self.ppid = ppid
    self.trusted = trusted
    self.created = datetime.now()
    self.last_seen = self.created
    self.last_trusted_seen = self.created
    self.executors = executors
    self.privilege = privilege
    self.exe_name = exe_name
    self.sleep_min = int(sleep_min)
    self.sleep_max = int(sleep_max)
    self.watchdog = int(watchdog)
    self.contact = contact
    self.links = []
    self.access = (self.Access.BLUE if (group == 'blue') else self.Access.RED)