Two more java payloads that wanted to write RHOST
There are three total, and they're all copy-pasted from the original module from 2009. I suspect this idiom isn't used at all any more -- I can't detect a difference in the payload if I just declare a host being cli.peerhost, rather than rewriting RHOST to be cli.peerhost. [SeeRM #8498]
This commit is contained in:
parent
775b0de3c0
commit
0b2737da7c
|
@ -119,7 +119,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
print_status("Payload will be a Java reverse shell")
|
||||
else
|
||||
port = datastore['LPORT']
|
||||
datastore['RHOST'] = cli.peerhost
|
||||
host = cli.peerhost
|
||||
print_status("Payload will be a Java bind shell")
|
||||
end
|
||||
if jar
|
||||
|
|
|
@ -122,7 +122,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
vprint_status("Sending java reverse shell")
|
||||
else
|
||||
port = datastore['LPORT']
|
||||
datastore['RHOST'] = cli.peerhost
|
||||
host = cli.peerhost
|
||||
vprint_status( "Java bind shell" )
|
||||
end
|
||||
if jar
|
||||
|
|
Loading…
Reference in New Issue