File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/exploits/multi/misc Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ def check
104104 return Exploit ::CheckCode ::Safe
105105 end
106106
107- connect ( true , { 'RPORT ' => mbean_server [ :address ] , 'RPORT' => mbean_server [ :port ] } )
107+ connect ( true , { 'RHOST ' => mbean_server [ :address ] , 'RPORT' => mbean_server [ :port ] } )
108108 unless is_rmi?
109109 return Exploit ::CheckCode ::Unknown
110110 end
@@ -136,7 +136,7 @@ def exploit
136136 print_good ( "#{ peer } - JMXRMI endpoint on #{ mbean_server [ :address ] } :#{ mbean_server [ :port ] } " )
137137 end
138138
139- connect ( true , { 'RPORT ' => mbean_server [ :address ] , 'RPORT' => mbean_server [ :port ] } )
139+ connect ( true , { 'RHOST ' => mbean_server [ :address ] , 'RPORT' => mbean_server [ :port ] } )
140140 unless is_rmi?
141141 fail_with ( Failure ::NoTarget , "#{ peer } - Failed to negotiate RMI protocol with the MBean server" )
142142 end
You can’t perform that action at this time.
0 commit comments