From 1205c0045f296183e669d8ec521cd641ec61ca2a Mon Sep 17 00:00:00 2001 From: Bazin Danil Date: Sat, 31 Jan 2015 04:37:16 +0100 Subject: [PATCH] using r['ErrorMessage'] --- modules/post/windows/gather/file_in_raw_ntfs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/post/windows/gather/file_in_raw_ntfs.rb b/modules/post/windows/gather/file_in_raw_ntfs.rb index 765d114d72..1f85c83024 100644 --- a/modules/post/windows/gather/file_in_raw_ntfs.rb +++ b/modules/post/windows/gather/file_in_raw_ntfs.rb @@ -49,7 +49,7 @@ class Metasploit3 < Msf::Post nil, "OPEN_EXISTING", "FILE_FLAG_WRITE_THROUGH", 0) if r['GetLastError'] != 0 - print_error("Error opening #{drive} GetLastError=#{r['GetLastError']}") + print_error("Error opening #{drive} GetLastError=#{r['ErrorMessage']}") return nil end @handle = r['return']