'This function sets the shellcode.'

def set_shells(self):

    print '[*]    Looking    for    and    setting    selected    shellcode'
    if (self.check_shells() is False):
        return False
    self.flItms['shells'] = self.flItms['bintype'](self.HOST, self.PORT, self.SUPPLIED_SHELLCODE)
    self.flItms['allshells'] = getattr(self.flItms['shells'], self.SHELL)(self.flItms, self.flItms['CavesPicked'])
    self.flItms['shellcode'] = self.flItms['shells'].returnshellcode()
    return True
