Skip to content

Commit 02aac59

Browse files
atucomEkultek
authored andcommitted
Fixed exploit_gathered_hosts() to read the hosts (#107)
1 parent 9a8a672 commit 02aac59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/term/terminal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def exploit_gathered_hosts(self, loaded_mods, hosts=None):
170170
ruby_exec = False
171171
msf_path = None
172172
if hosts is None:
173-
host_file = self.host_path
173+
host_file = open(self.host_path).readlines()
174174
else:
175175
host_file = open(hosts).readlines()
176176
if not lib.settings.check_for_msf():

0 commit comments

Comments
 (0)