use a better method for storing session_events

GSoC/Meterpreter_Web_Console
James Barnett 2017-09-29 14:59:08 -05:00
parent ed74c3726f
commit eb927663ff
No known key found for this signature in database
GPG Key ID: 647983861A4EC5EA
2 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,10 @@ module RemoteSessionEventDataService
SESSION_EVENT_PATH = '/api/1/msf/session_event'
SESSION_EVENT_SEARCH_PATH = SESSION_EVENT_PATH + "/search"
def session_events(opts = {})
json_to_open_struct_object(self.get_data(SESSION_EVENT_PATH, opts), [])
end
def report_session_event(opts)
self.post_data_async(SESSION_EVENT_PATH, opts)
end

View File

@ -14,7 +14,6 @@ module Msf
return host if defined?(::Mdm) && host.kind_of?(::Mdm::Host)
norm_host = nil
puts "in normalize host. host is #{host}"
if (host.kind_of? String)
if Rex::Socket.is_ipv4?(host)