We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cefe63 commit cc4fc1aCopy full SHA for cc4fc1a
modules/post/windows/gather/file_in_raw_ntfs.rb
@@ -38,7 +38,7 @@ def run
38
39
file_path = datastore['FILE_PATH']
40
41
- r = client.railgun.kernel32.GetFileAttributesA(file_path)
+ r = client.railgun.kernel32.GetFileAttributesW(file_path)
42
43
if r['GetLastError'] != 0
44
fail_with(
@@ -49,7 +49,7 @@ def run
49
50
drive = file_path[0, 2]
51
52
- r = client.railgun.kernel32.CreateFileA("\\\\.\\#{drive}",
+ r = client.railgun.kernel32.CreateFileW("\\\\.\\#{drive}",
53
'GENERIC_READ',
54
'FILE_SHARE_DELETE|FILE_SHARE_READ|FILE_SHARE_WRITE',
55
nil,
0 commit comments