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 65b9aa1 commit 186d8bdCopy full SHA for 186d8bd
lib/msf/core/post/windows/wmic.rb
@@ -27,7 +27,7 @@ def wmic_query(query, server=datastore['RHOST'])
27
result_text = ""
28
29
if datastore['SMBUser']
30
- if server.downcase == "localhost" || server.downcase.starts_with("127.")
+ if server.downcase == "localhost" || server.downcase.starts_with?('127.')
31
raise RuntimeError, "WMIC: User credentials cannot be used for local connections"
32
end
33
0 commit comments