Skip to content

Commit 86f5f3f

Browse files
committed
Fix AES key length in cachedump module, fix rapid7#8525
1 parent 9ce0bb9 commit 86f5f3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/windows/gather/cachedump.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def decrypt_hash(edata, nlkm, ch)
253253

254254
def decrypt_hash_vista(edata, nlkm, ch)
255255
aes = OpenSSL::Cipher.new('aes-128-cbc')
256-
aes.key = nlkm[16...-1]
256+
aes.key = nlkm[16...32]
257257
aes.padding = 0
258258
aes.decrypt
259259
aes.iv = ch

0 commit comments

Comments
 (0)