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.
2 parents cdf3c63 + 343f401 commit fec2301Copy full SHA for fec2301
lib/msf/core/db_export.rb
@@ -125,15 +125,15 @@ def extract_host_entries
125
@owned_hosts = []
126
@hosts = myworkspace.hosts
127
@hosts.each do |host|
128
- if host.notes.find :first, :conditions => { :ntype => 'pro.system.compromise' }
+ if host.notes.where(ntype: 'pro.system.compromise').first
129
@owned_hosts << host
130
end
131
132
133
134
# Extracts all events from a project, storing them in @events
135
def extract_event_entries
136
- @events = myworkspace.events.find :all, :order => 'created_at ASC'
+ @events = myworkspace.events.order('created_at ASC')
137
138
139
# Extracts all services from a project, storing them in @services
0 commit comments