Skip to content

Commit 6b37171

Browse files
committed
added to the end of the rc file, this will complete the exit if an exploit works
1 parent 9eaee79 commit 6b37171

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lib/exploitation/exploiter.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ def start_exploit(self, sep="*" * 10):
131131
"set rhost {rhost}\n"
132132
"set rhosts {rhosts}\n"
133133
"run -z\n"
134-
"exit\n"
134+
"exit -y\n"
135135
)
136136

137-
module_name=mod.strip()
138-
workspace=self.configuration[0]
139-
lhost=self.configuration[1]
140-
lport=self.configuration[2]
141-
rhost=host.strip()
137+
module_name = mod.strip()
138+
workspace = self.configuration[0]
139+
lhost = self.configuration[1]
140+
lport = self.configuration[2]
141+
rhost = host.strip()
142142

143143
current_rc_script_path = path.join(current_host_path, mod.replace("/", '-').strip())
144144
with open(current_rc_script_path, 'w') as f:

0 commit comments

Comments
 (0)