Skip to content

Commit

Permalink
Add additional classes for payload loading
Browse files Browse the repository at this point in the history
This fixes the java/shell_reverse_tcp payload
  • Loading branch information
zeroSteiner committed Oct 11, 2023
1 parent 9a98253 commit 2975be6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/msf/core/exploit/remote/java/http/class_loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ def on_request_uri(cli, request)
vprint_good('Sending payload config')
# This tells the target how to address the payload; this is the magic!
res = payload_instance.stager_config
# (Optional) Stage 4 data for unstaged payloads such as java/shell_reverse_tcp
when /^javapayload\/stage\/(Shell|Stage|StreamForwarder)\.class$/
res = MetasploitPayloads.read("java/#{resource}")
else
vprint_error('Sending 404')
return send_not_found(cli)
Expand Down

0 comments on commit 2975be6

Please sign in to comment.