Skip to content

Commit 1cc44cf

Browse files
committed
An alternative for normalize_uri
normalize_uri doesn't seem to work very well in our case, so we do our own thing here.
1 parent 10982f0 commit 1cc44cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/metasploit/framework/login_scanner/jenkins.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ def set_sane_defaults
1717
self.uri = "/j_acegi_security_check" if self.uri.nil?
1818
self.method = "POST" if self.method.nil?
1919

20-
self.uri = normalize_uri(self.uri)
20+
if self.uri[0] != '/'
21+
self.uri = "/#{self.uri}"
22+
end
2123

2224
super
2325
end

0 commit comments

Comments
 (0)