Skip to content

Commit a9df55c

Browse files
committed
Add Windows 2012 to regex matching
1 parent 8e83f0e commit a9df55c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/windows/gather/smart_hashdump.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def smart_hash_dump(migrate_system, pwdfile)
447447
rescue::Exception => e
448448
print_error("Failed to dump hashes as SYSTEM, trying to migrate to another process")
449449

450-
if sysinfo['OS'] =~ /Windows 2008/i
450+
if sysinfo['OS'] =~ /Windows (2008|2012)/i
451451
move_to_sys
452452
file_local_write(pwdfile,inject_hashdump)
453453
else

0 commit comments

Comments
 (0)