Skip to content

Commit eb92766

Browse files
committed
use a better method for storing session_events
1 parent ed74c37 commit eb92766

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/metasploit/framework/data_service/remote/http/remote_session_event_data_service.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ module RemoteSessionEventDataService
66
SESSION_EVENT_PATH = '/api/1/msf/session_event'
77
SESSION_EVENT_SEARCH_PATH = SESSION_EVENT_PATH + "/search"
88

9+
def session_events(opts = {})
10+
json_to_open_struct_object(self.get_data(SESSION_EVENT_PATH, opts), [])
11+
end
12+
913
def report_session_event(opts)
1014
self.post_data_async(SESSION_EVENT_PATH, opts)
1115
end

lib/msf/util/host.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def self.normalize_host(host)
1414
return host if defined?(::Mdm) && host.kind_of?(::Mdm::Host)
1515
norm_host = nil
1616

17-
puts "in normalize host. host is #{host}"
1817
if (host.kind_of? String)
1918

2019
if Rex::Socket.is_ipv4?(host)

0 commit comments

Comments
 (0)