Formatting

This commit is contained in:
Takah1ro
2024-07-26 21:14:51 +09:00
parent b5c4fd0e32
commit 393aed445d
@@ -351,7 +351,7 @@ class MetasploitModule < Msf::Exploit::Remote
sha256_digest = OpenSSL::Digest.new('sha256')
expected = OpenSSL::HMAC.digest(sha256_digest, key, data[..-11])[..9]
unless OpenSSL::HMAC.digest(sha256_digest, key, mac) == OpenSSL::HMAC.digest(sha256_digest, key, expected)
raise "Invalid ciphertext received."
raise "Invalid ciphertext received."
end
size = key.length * 8