diff --git a/honssh/protocols/ssh.py b/honssh/protocols/ssh.py index ea023e3..c53372f 100644 --- a/honssh/protocols/ssh.py +++ b/honssh/protocols/ssh.py @@ -248,7 +248,7 @@ def parse_packet(self, parent, message_num, payload): self.out.channel_opened(the_uuid, channel['name']) channel['session'] = term.Term(self.out, the_uuid, channel['name'], self, channel['clientID']) elif channel_type == 'exec': - if self.cfg.get(['hp-restrict', 'disable_exec']): + if self.cfg.getboolean(['hp-restrict', 'disable_exec']): log.msg(log.LPURPLE, '[SSH]', 'Detected EXEC Channel Request - Disabling!') self.sendOn = False self.send_back(parent, 100, self.int_to_hex(channel['serverID']))