Skip to content

Commit 9529eed

Browse files
committed
More specific matching
1 parent a30d8f7 commit 9529eed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/post/windows/mssql.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def check_for_sqlserver(instance=nil)
1919
target_service = nil
2020
each_service do |service|
2121
unless instance.to_s.strip.empty?
22-
if service[:display].downcase.include?(instance.downcase) &&
22+
if service[:display].downcase.include?("SQL Server (#{instance}".downcase) &&
2323
service[:pid].to_i > 0
2424
target_service = service
2525
break

0 commit comments

Comments
 (0)