'checksec()
Prints a helpful message about the remote system.
Arguments:
banner(bool): Whether to print the path to the ELF binary.'

def checksec(self, banner=True):

    cached = self._checksec_cache()
    if cached:
        return cached
    red = text.red
    green = text.green
    yellow = text.yellow
    res = [('%s@%s:' % (self.user, self.host)), ('Distro'.ljust(10) + '    '.join(self.distro)), ('OS:'.ljust(10) + self.os), ('Arch:'.ljust(10) + self.arch), ('Version:'.ljust(10) + '.'.join(map(str, self.version))), ('ASLR:'.ljust(10) + {True: green('Enabled'), False: red('Disabled')}[self.aslr])]
    if self.aslr_ulimit:
        res += [('Note:'.ljust(10) + red('Susceptible    to    ASLR    ulimit    trick    (CVE-2016-3672)'))]
    cached = '\n'.join(res)
    self._checksec_cache(cached)
    return cached
