use a better method for storing session_events
parent
ed74c3726f
commit
eb927663ff
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue