Skip to content

Commit ba1cb14

Browse files
committed
Land rapid7#6354, Add method peer for jenkins_java_deserialize.rb
2 parents b78f7b4 + ab3fe64 commit ba1cb14

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/exploits/linux/misc/jenkins_java_deserialize.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ def initialize(info = {})
5454
], self.class)
5555
end
5656

57+
def peer
58+
"#{rhost}:#{rport}"
59+
end
60+
5761
def exploit
5862
unless vulnerable?
5963
fail_with(Failure::Unknown, "#{peer} - Jenkins is not vulnerable, aborting...")

0 commit comments

Comments
 (0)