Skip to content

Commit 69e53a4

Browse files
committed
Final tidyups, description etc
1 parent 9518090 commit 69e53a4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

modules/post/windows/gather/file_in_raw_ntfs.rb renamed to modules/post/windows/gather/file_from_raw_ntfs.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
##
55

66
require 'rex/parser/fs/ntfs'
7-
require 'action_view/helpers/number_helper'
7+
88
class Metasploit3 < Msf::Post
99
include Msf::Post::Windows::Priv
1010
include Msf::Post::Windows::Error
@@ -13,11 +13,10 @@ class Metasploit3 < Msf::Post
1313

1414
def initialize(info = {})
1515
super(update_info(info,
16-
'Name' => 'Windows File Gathering In Raw NTFS',
16+
'Name' => 'Windows File Gather File from Raw NTFS',
1717
'Description' => %q(
18-
This module gather file using the raw NTFS device, bypassing some Windows restriction.
19-
Gather file from disk bypassing restriction like already open file with write right lock.
20-
Can be used to retreive file like NTDS.DIT),
18+
This module gathers a file using the raw NTFS device, bypassing some Windows restrictions
19+
such as open file with write lock. Can be used to retrieve files such as NTDS.dit.),
2120
'License' => 'MSF_LICENSE',
2221
'Platform' => ['win'],
2322
'SessionTypes' => ['meterpreter'],
@@ -69,7 +68,7 @@ def run
6968
'FILE_FLAG_WRITE_THROUGH',
7069
0)
7170

72-
if r['GetLastError'] != 0
71+
if r['GetLastError'] != ERROR::SUCCESS
7372
fail_with(
7473
Exploit::Failure::Unknown,
7574
"Error opening #{drive}. Windows Error Code: #{r['GetLastError']} - #{r['ErrorMessage']}")

0 commit comments

Comments
 (0)