Skip to content

Commit fd9c747

Browse files
authored
Update Windows TARGETFILE matching
1 parent b98e0b8 commit fd9c747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/gather/solarwinds_servu_fileread_cve_2024_28995.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def run
9595
native_path_sep = '/'
9696
target_path_sep = '\\'
9797
target_filepath = datastore['TARGETFILE']
98-
elsif datastore['TARGETFILE'].downcase.start_with? 'c:\\\\'
98+
elsif datastore['TARGETFILE'][1,3] == ':\\\\'
9999
native_path_sep = '\\'
100100
target_path_sep = '/'
101101
target_filepath = datastore['TARGETFILE'][3..]

0 commit comments

Comments
 (0)