Skip to content

Commit 9cb05ef

Browse files
committed
TeamCity: use random padding bytes
1 parent cba8962 commit 9cb05ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/rex/proto/teamcity/rsa.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ def self.pkcs1pad2(text, n)
2323

2424
while n > 2
2525
n -= 1
26-
# TODO: Random
27-
r[n] = 0xff
26+
r[n] = rand(1..255) # Can't be a null byte.
2827
end
2928

3029
n -= 1

0 commit comments

Comments
 (0)