From 9a7c0eb7b6432c26cae86ed1f40a40a061eda391 Mon Sep 17 00:00:00 2001 From: Artem Date: Thu, 8 Dec 2016 21:28:39 +0300 Subject: [PATCH] Fix cloe file --- lib/rex/post/meterpreter/extensions/stdapi/fs/file.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rex/post/meterpreter/extensions/stdapi/fs/file.rb b/lib/rex/post/meterpreter/extensions/stdapi/fs/file.rb index 4c5da6f5e3..32eab353db 100644 --- a/lib/rex/post/meterpreter/extensions/stdapi/fs/file.rb +++ b/lib/rex/post/meterpreter/extensions/stdapi/fs/file.rb @@ -337,6 +337,7 @@ class File < Rex::Post::Meterpreter::Extensions::Stdapi::Fs::IO if ::File.exist?(dest_file) dst_stat = ::File.stat(dest_file) if src_stat.size == dst_stat.size && src_stat.mtime == dst_stat.mtime + src_fd.close return 'skipped' end end