Add method peer for jenkins_java_deserialize.rb

bug/bundler_fix
wchen-r7 2015-12-15 01:18:27 -06:00
parent b78f7b4d55
commit ab3fe64b6e
1 changed files with 4 additions and 0 deletions

View File

@ -54,6 +54,10 @@ class Metasploit3 < Msf::Exploit::Remote
], self.class)
end
def peer
"#{rhost}:#{rport}"
end
def exploit
unless vulnerable?
fail_with(Failure::Unknown, "#{peer} - Jenkins is not vulnerable, aborting...")