Skip to content

Commit 878f3d1

Browse files
author
HD Moore
committed
Remove kind_of? per @trosen-r7
1 parent 77efa7c commit 878f3d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/auxiliary/server/browser_autopwn.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -833,11 +833,11 @@ def build_script_response(cli, request)
833833
def client_matches_module_spec?(client_str, module_spec)
834834

835835
case module_spec
836-
when kind_of? ::String
836+
when ::String
837837
return !! (client_str == module_spec)
838-
when kind_of? ::Regexp
838+
when ::Regexp
839839
return !! client_str.match(module_spec)
840-
when kind_of? ::Array
840+
when ::Array
841841
return !! exploit_spec.map{ |spec|
842842
client_matches_module_spec?(client_str, spec)
843843
}.include?(true)

0 commit comments

Comments
 (0)