Skip to content

Commit 3107d99

Browse files
author
Brent Cook
committed
Use the same URI that was registered when we deregister
The original URI is registered as '/foobar/' but is deregistered as '//foobar/', causing it to never get deregistered. Changing this fixes unregistration of the service handler for staged payloads, but stageless doesn't work properly if the URI actually gets deregistered.
1 parent 1822578 commit 3107d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/post/meterpreter/packet_dispatcher.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def initialize_passive_dispatcher
7979

8080
def shutdown_passive_dispatcher
8181
return if not self.passive_service
82-
self.passive_service.remove_resource("/" + self.conn_id + "/")
82+
self.passive_service.remove_resource(self.conn_id + "/")
8383

8484
# If there are no more resources registered on the service, stop it entirely
8585
if self.passive_service.resources.empty?

0 commit comments

Comments
 (0)