Avoid trying to decode empty passwords
git-svn-id: file:///home/svn/framework3/trunk@13476 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
e231ac7681
commit
5db12c65eb
|
@ -111,7 +111,10 @@ class Metasploit3 < Msf::Post
|
||||||
return users
|
return users
|
||||||
end
|
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
|
counter = 0
|
||||||
password = ''
|
password = ''
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue