Skip to content

Commit 70f2cbe

Browse files
committed
simplified cleaning procedure
1 parent 4b52708 commit 70f2cbe

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

modules/exploits/linux/http/pandora_itsm_auth_rce_cve_2025_4653.rb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -246,21 +246,6 @@ def clean_rce_payload(payload)
246246
end
247247
end
248248

249-
# add the session subscriber to hook the session
250-
def setup
251-
super
252-
framework.events.add_session_subscriber(self)
253-
end
254-
255-
# try to remove the payload from the backup list to cover our tracks
256-
# The current attack entry can only be removed when the session is terminated
257-
# because after termination of the session, the backup list entry gets updated
258-
def on_session_close(session, _reason = '')
259-
vprint_status("Hooked session #{session.sid} is shutting down and ready for cleaning.")
260-
framework.events.remove_session_subscriber(self)
261-
clean_rce_payload(@rce_payload)
262-
end
263-
264249
# try to remove the payload from the backup list to cover our tracks
265250
def cleanup
266251
super

0 commit comments

Comments
 (0)