3
3
# Current source: https://github.com/rapid7/metasploit-framework
4
4
##
5
5
6
-
7
6
class MetasploitModule < Msf ::Auxiliary
8
7
9
- def initialize ( info = { } )
10
- super ( update_info ( info ,
11
- 'Name' => 'Auxilliary Parser Windows Unattend Passwords' ,
8
+ def initialize ( info = { } )
9
+ super (
10
+ update_info (
11
+ info ,
12
+ 'Name' => 'Auxiliary Parser Windows Unattend Passwords' ,
12
13
'Description' => %q{
13
- This module parses Unattend files in the target directory.
14
+ This module parses Windows answer files ( Unattend files) in the target directory.
14
15
15
- See also: post/windows/gather/enum_unattend
16
- } ,
17
- 'License' => MSF_LICENSE ,
18
- 'Author' =>
19
- [
16
+ See also: post/windows/gather/enum_unattend
17
+ } ,
18
+ 'License' => MSF_LICENSE ,
19
+ 'Author' => [
20
20
'Ben Campbell' ,
21
21
] ,
22
- 'References' =>
23
- [
22
+ 'References' => [
24
23
[ 'URL' , 'https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-8.1-and-8/ff715801(v=win.10)' ] ,
25
24
[ 'URL' , 'https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-vista/cc749415(v=ws.10)' ] ,
26
- [ 'URL' , 'https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc732280(v=ws.10)' ]
25
+ [ 'URL' , 'https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc732280(v=ws.10)' ] ,
26
+ [ 'URL' , 'https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/update-windows-settings-and-scripts-create-your-own-answer-file-sxs?view=windows-11' ] ,
27
27
] ,
28
- ) )
28
+ 'Notes' => {
29
+ 'Stability' => [ CRASH_SAFE ] ,
30
+ 'SideEffects' => [ ] ,
31
+ 'Reliability' => [ ]
32
+ }
33
+ )
34
+ )
29
35
30
36
register_options ( [
31
37
OptPath . new ( 'PATH' , [ true , 'Directory or file to parse.' ] ) ,
@@ -35,9 +41,9 @@ def initialize(info={})
35
41
36
42
def run
37
43
if datastore [ 'RECURSIVE' ]
38
- ext = " **/*.xml"
44
+ ext = ' **/*.xml'
39
45
else
40
- ext = " /*.xml"
46
+ ext = ' /*.xml'
41
47
end
42
48
43
49
if datastore [ 'PATH' ] . ends_with? ( '.xml' )
@@ -64,4 +70,3 @@ def run
64
70
end
65
71
end
66
72
end
67
-
0 commit comments