Permalink
Browse files

added finder for multiple services

  • Loading branch information...
1 parent 5f43a2b commit e0e135e14f22000acf3ed665fed78cc38035c1e2 Jens Färber committed Jun 17, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/evasion-db/knowledge.rb
@@ -52,6 +52,15 @@ def self.get_packet(pid)
Packet.find(pid)
end
+ # returns all exploits for the given services
+ #
+ #@param [array] ports_list
+ def self.find_exploits_for_services(ports_list)
+ exploits = []
+ ports_list.each { |port| exploits.concat(find_exploits_for_service(port)) }
+ exploits
+ end
+
# returns all exploits for the given service
#
#@param [integer] port

0 comments on commit e0e135e

Please sign in to comment.