From 780af57d028436c289348f7ba55ee4107f049bea Mon Sep 17 00:00:00 2001 From: atucom <466817+atucom@users.noreply.github.com> Date: Tue, 27 Mar 2018 10:07:29 -0500 Subject: [PATCH] Fixed exploit_gathered_hosts() to read the hosts --- lib/term/terminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/term/terminal.py b/lib/term/terminal.py index b3c5e40..f8766bc 100644 --- a/lib/term/terminal.py +++ b/lib/term/terminal.py @@ -170,7 +170,7 @@ def exploit_gathered_hosts(self, loaded_mods, hosts=None): ruby_exec = False msf_path = None if hosts is None: - host_file = self.host_path + host_file = open(self.host_path).readlines() else: host_file = open(hosts).readlines() if not lib.settings.check_for_msf():