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 a30d8f7 commit 9529eedCopy full SHA for 9529eed
lib/msf/core/post/windows/mssql.rb
@@ -19,7 +19,7 @@ def check_for_sqlserver(instance=nil)
19
target_service = nil
20
each_service do |service|
21
unless instance.to_s.strip.empty?
22
- if service[:display].downcase.include?(instance.downcase) &&
+ if service[:display].downcase.include?("SQL Server (#{instance}".downcase) &&
23
service[:pid].to_i > 0
24
target_service = service
25
break
0 commit comments