1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-02 11:36:22 +01:00

Return true in EOF when tell() > stat.st_size

This commit is contained in:
Spencer McIntyre 2014-02-27 20:45:38 -05:00
parent 8ab4190fc7
commit 02d0595e6d

View File

@ -330,7 +330,7 @@ class PythonMeterpreter(object):
channel = self.channels[channel_id]
result = False
if isinstance(channel, file):
result = channel.tell() == os.fstat(channel.fileno()).st_size
result = channel.tell() >= os.fstat(channel.fileno()).st_size
response += tlv_pack(TLV_TYPE_BOOL, result)
return ERROR_SUCCESS, response