Skip to content

Commit 186d8bd

Browse files
committed
Fix starts_with?
1 parent 65b9aa1 commit 186d8bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def wmic_query(query, server=datastore['RHOST'])
2727
result_text = ""
2828

2929
if datastore['SMBUser']
30-
if server.downcase == "localhost" || server.downcase.starts_with("127.")
30+
if server.downcase == "localhost" || server.downcase.starts_with?('127.')
3131
raise RuntimeError, "WMIC: User credentials cannot be used for local connections"
3232
end
3333
end

0 commit comments

Comments
 (0)