Remove null bytes from passwords returned

git-svn-id: file:///home/svn/framework3/trunk@13478 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Carlos Perez 2011-08-03 00:48:35 +00:00
parent 1373d1043d
commit dca3aa9d6a
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class Metasploit3 < Msf::Post
aes.padding = 0
aes.decrypt
aes.key = "hdfzpysvpzimorhk"
password = aes.update(cipher) + aes.final
password = (aes.update(cipher) + aes.final).gsub(/\x00/,'')
return password
end
end