Skip to content

Commit 5a24dc8

Browse files
committed
Enable the transport command for java
1 parent d9b6e46 commit 5a24dc8

File tree

1 file changed

+2
-2
lines changed
  • lib/rex/post/meterpreter/ui/console/command_dispatcher

1 file changed

+2
-2
lines changed

lib/rex/post/meterpreter/ui/console/command_dispatcher/core.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ def commands
8080
if client.platform =~ /win/ || client.platform =~ /linux/
8181
# Migration only supported on windows and linux
8282
c["migrate"] = "Migrate the server to another process"
83+
end
8384

84-
85+
if client.platform =~ /win/ || client.platform =~ /linux/ || client.platform =~ /java/
8586
# Yet to implement transport hopping for other meterpreters.
86-
# Works for posix and native windows though.
8787
c["transport"] = "Change the current transport mechanism"
8888

8989
# sleep functionality relies on the transport features, so only

0 commit comments

Comments
 (0)