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
104
104
return Exploit ::CheckCode ::Safe
105
105
end
106
106
107
- connect ( true , { 'RPORT ' => mbean_server [ :address ] , 'RPORT' => mbean_server [ :port ] } )
107
+ connect ( true , { 'RHOST ' => mbean_server [ :address ] , 'RPORT' => mbean_server [ :port ] } )
108
108
unless is_rmi?
109
109
return Exploit ::CheckCode ::Unknown
110
110
end
@@ -136,7 +136,7 @@ def exploit
136
136
print_good ( "#{ peer } - JMXRMI endpoint on #{ mbean_server [ :address ] } :#{ mbean_server [ :port ] } " )
137
137
end
138
138
139
- connect ( true , { 'RPORT ' => mbean_server [ :address ] , 'RPORT' => mbean_server [ :port ] } )
139
+ connect ( true , { 'RHOST ' => mbean_server [ :address ] , 'RPORT' => mbean_server [ :port ] } )
140
140
unless is_rmi?
141
141
fail_with ( Failure ::NoTarget , "#{ peer } - Failed to negotiate RMI protocol with the MBean server" )
142
142
end
You can’t perform that action at this time.
0 commit comments