Skip to content

Commit

Permalink
Only randomize the URI once
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroSteiner committed Oct 12, 2023
1 parent 5577413 commit de8e392
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/msf/core/exploit/remote/java/http/class_loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ def start_service(opts = {})
end

def resource_uri
return @resource_uri if @resource_uri
# the resource URI must end in / for the class loading to work
path = super
path += '/' unless path.end_with?('/')
path
@resource_uri = path
end

def on_request_uri(cli, request)
Expand Down

0 comments on commit de8e392

Please sign in to comment.