4
4
##
5
5
6
6
require 'rex/parser/fs/ntfs'
7
- require 'action_view/helpers/number_helper'
7
+
8
8
class Metasploit3 < Msf ::Post
9
9
include Msf ::Post ::Windows ::Priv
10
10
include Msf ::Post ::Windows ::Error
@@ -13,11 +13,10 @@ class Metasploit3 < Msf::Post
13
13
14
14
def initialize ( info = { } )
15
15
super ( update_info ( info ,
16
- 'Name' => 'Windows File Gathering In Raw NTFS' ,
16
+ 'Name' => 'Windows File Gather File from Raw NTFS' ,
17
17
'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.) ,
21
20
'License' => 'MSF_LICENSE' ,
22
21
'Platform' => [ 'win' ] ,
23
22
'SessionTypes' => [ 'meterpreter' ] ,
@@ -69,7 +68,7 @@ def run
69
68
'FILE_FLAG_WRITE_THROUGH' ,
70
69
0 )
71
70
72
- if r [ 'GetLastError' ] != 0
71
+ if r [ 'GetLastError' ] != ERROR :: SUCCESS
73
72
fail_with (
74
73
Exploit ::Failure ::Unknown ,
75
74
"Error opening #{ drive } . Windows Error Code: #{ r [ 'GetLastError' ] } - #{ r [ 'ErrorMessage' ] } " )
0 commit comments