Add method peer for jenkins_java_deserialize.rb
parent
b78f7b4d55
commit
ab3fe64b6e
|
@ -54,6 +54,10 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
], self.class)
|
], self.class)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def peer
|
||||||
|
"#{rhost}:#{rport}"
|
||||||
|
end
|
||||||
|
|
||||||
def exploit
|
def exploit
|
||||||
unless vulnerable?
|
unless vulnerable?
|
||||||
fail_with(Failure::Unknown, "#{peer} - Jenkins is not vulnerable, aborting...")
|
fail_with(Failure::Unknown, "#{peer} - Jenkins is not vulnerable, aborting...")
|
||||||
|
|
Loading…
Reference in New Issue