1
# NetBIOS - Network Basic Input Output System
2
# Pattern quality: marginal fast
4
# As mentioned in smb.pat:
6
# "This protocol is sometimes also referred to as the Common Internet File
7
# System (CIFS), LanManager or NetBIOS protocol." -- "man samba"
9
# Actually, SMB is a higher level protocol than NetBIOS. However, the
10
# NetBIOS header is only 4 bytes: not much to match on.
12
# http://www.ubiqx.org/cifs/SMB.html
14
# This pattern attempts to match the (Session layer) NetBIOS Session request.
15
# If sucessful, you may be able to match NetBIOS several packets earlier
16
# than if you just waited for the easier-to-match SMB header.
18
# This pattern is untested. If it does not
19
# work for you, or you believe it could be improved, please post to
20
# l7-filter-developers@lists.sf.net . This list may be subscribed to at
21
# http://lists.sourceforge.net/lists/listinfo/l7-filter-developers
24
# session request byte, three bytes of flags and length. Then
25
# there should be a big mess of letters between A and P which represent
26
# the NetBIOS names of the involved computers (with a null between them).
27
# (40ish here, damn this regexp implementation and its lack of {40,})
28
\x81.?.?.[A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P][A-P]