Module: Msf::DBManager::ExploitedHost

Included in:
Msf::DBManager
Defined in:
lib/msf/core/db_manager/exploited_host.rb

Instance Method Summary collapse

Instance Method Details

#each_exploited_host(wspace = framework.db.workspace, &block) ⇒ Object


2
3
4
5
6
7
8
# File 'lib/msf/core/db_manager/exploited_host.rb', line 2

def each_exploited_host(wspace=framework.db.workspace,&block)
::ApplicationRecord.connection_pool.with_connection {
  wspace.exploited_hosts.each do |eh|
    block.call(eh)
  end
}
end

#exploited_hosts(wspace = framework.db.workspace) ⇒ Object

This method returns a list of all exploited hosts in the database.


11
12
13
14
15
# File 'lib/msf/core/db_manager/exploited_host.rb', line 11

def exploited_hosts(wspace=framework.db.workspace)
::ApplicationRecord.connection_pool.with_connection {
  wspace.exploited_hosts
}
end