Commit Graph

7 Commits

Author SHA1 Message Date
Jeff Cody
2e67991362
SMB: Bounds check slice index before access
The smb library bounds checks for a message size that is too large, but
does not check for a message size that is way too small.  Error out if
the message size is not at least as large as the ProtocolID 4-byte
preamble.

This fixes slice out of bound panics when checking the buffer for the
protID string for certain hosts.

Signed-off-by: Jeff Cody <jcody@censys.io>
2019-06-04 22:26:27 -04:00
Justin Bastress
199fe5d8e5 PEP8 updates; fix NTLM typo 2018-03-16 14:39:06 -04:00
Justin Bastress
1024fb4619 break out early if !setup-session; make debug configurable 2018-03-16 14:34:15 -04:00
Justin Bastress
586992cb15 More comments; make old zgrab behavior the default 2018-03-16 14:00:12 -04:00
Justin Bastress
65d1789860 comments; update schema 2018-03-16 13:21:05 -04:00
Justin Bastress
c05c00a743 Pull in updated SMB library, modify it to take logs, use it in scanner 2018-03-16 12:08:59 -04:00
Justin Bastress
70314ce92b Port SMB (???) scanner from ZGrab 2018-03-15 16:58:57 -04:00