Fix an errant bitwise-and used as bool

Squashed commit of the following:

commit 748ab76d71422e5909dc29403fd24ceb025504b5
Author: Rob Fuller <jd.mubix@gmail.com>
Date:   Fri Jul 20 02:50:50 2012 -0400

    fixes dir/file check

[Closes #626]
unstable
Rob Fuller 2012-07-20 16:29:53 -06:00 committed by James Lee
parent cccd3754a4
commit df7af9df40
1 changed files with 1 additions and 1 deletions

View File

@ -1878,7 +1878,7 @@ NTLM_UTILS = Rex::Proto::NTLM::Utils
name = resp_data[didx + 70 + 24, info[15]].sub!(/\x00+$/, '')
files[name] =
{
'type' => (info[14] & 0x10) ? 'D' : 'F',
'type' => ((info[14] & 0x10)==0x10) ? 'D' : 'F',
'attr' => info[14],
'info' => info
}