mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-30 22:19:17 +02:00
Return an error if channel id is not valid
This commit is contained in:
parent
28794127c9
commit
63eefdaa3f
@ -2564,4 +2564,6 @@ def stdapi_set_term_size(request, response):
|
|||||||
proc_h = meterpreter.channels[channel_id].proc_h
|
proc_h = meterpreter.channels[channel_id].proc_h
|
||||||
winsize = struct.pack("HHHH", rows, columns, 0, 0)
|
winsize = struct.pack("HHHH", rows, columns, 0, 0)
|
||||||
fcntl.ioctl(proc_h.stdin, termios.TIOCSWINSZ, winsize)
|
fcntl.ioctl(proc_h.stdin, termios.TIOCSWINSZ, winsize)
|
||||||
|
else:
|
||||||
|
return ERROR_FAILURE, response
|
||||||
return ERROR_SUCCESS, response
|
return ERROR_SUCCESS, response
|
||||||
|
Loading…
x
Reference in New Issue
Block a user