Avoid trying to decode empty passwords

git-svn-id: file:///home/svn/framework3/trunk@13476 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Wei Chen 2011-08-02 21:46:51 +00:00
parent e231ac7681
commit 5db12c65eb
1 changed files with 4 additions and 1 deletions

View File

@ -111,7 +111,10 @@ class Metasploit3 < Msf::Post
return users
end
def decode_password(username, enc_password)
def decode_password(username='', enc_password='')
#No point trying to decode if there's no username or password
return "" if username.empty? or enc_password.empty?
counter = 0
password = ''