Skip to content

Commit 65b7415

Browse files
Update modules/exploits/linux/http/xorcom_completepbx_scheduler.rb
Co-authored-by: jheysel-r7 <[email protected]>
1 parent 82d558b commit 65b7415

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/exploits/linux/http/xorcom_completepbx_scheduler.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ def exploit
240240
task_desc = create_task(sid_cookie)
241241
task_id = get_latest_task_id(sid_cookie, task_desc)
242242
run_task(sid_cookie, task_id)
243-
delete_task(sid_cookie, task_id)
243+
ensure
244+
delete_task(sid_cookie, task_id) if task_id
244245
end
245246
end

0 commit comments

Comments
 (0)