scapy.layers.netbios

NetBIOS over TCP/IP

[RFC 1001/1002]

class scapy.layers.netbios.NBNSNodeStatusResponse

Bases: scapy.packet.Packet

aliastypes
fields_desc
NBNSNodeStatusResponse fields

NAME_TRN_ID

ShortField

0

FLAGS

ShortField

34048

QDCOUNT

ShortField

0

ANCOUNT

ShortField

1

NSCOUNT

ShortField

0

ARCOUNT

ShortField

0

RR_NAME

NetBIOSNameField

b'windows'

SUFFIX

ShortEnumField

16705

NULL

ByteField

0

RR_TYPE

ShortEnumField

33

RR_CLASS

ShortEnumField

1

TTL

IntField

0

RDLENGTH

ShortField

83

NUM_NAMES

ByteField

1

payload_guess

Possible sublayers: NBNSNodeStatusResponseService

class scapy.layers.netbios.NBNSNodeStatusResponseEnd

Bases: scapy.packet.Packet

aliastypes
fields_desc
NBNSNodeStatusResponseEnd fields

MAC_ADDRESS

SourceMACField

None

STATISTICS

BitField (456 bits)

0

class scapy.layers.netbios.NBNSNodeStatusResponseService

Bases: scapy.packet.Packet

aliastypes
fields_desc
NBNSNodeStatusResponseService fields

NETBIOS_NAME

StrFixedLenField

b'WINDOWS         '

SUFFIX

ByteEnumField

0

NAME_FLAGS

ByteField

4

UNUSED

ByteEnumField

0

payload_guess

Possible sublayers: NBNSNodeStatusResponseEnd, NBNSNodeStatusResponseService

class scapy.layers.netbios.NBNSQueryRequest

Bases: scapy.packet.Packet

aliastypes
fields_desc
NBNSQueryRequest fields

NAME_TRN_ID

ShortField

0

FLAGS

ShortField

272

QDCOUNT

ShortField

1

ANCOUNT

ShortField

0

NSCOUNT

ShortField

0

ARCOUNT

ShortField

0

QUESTION_NAME

NetBIOSNameField

b'windows'

SUFFIX

ShortEnumField

16705

NULL

ByteField

0

QUESTION_TYPE

ShortEnumField

32

QUESTION_CLASS

ShortEnumField

1

class scapy.layers.netbios.NBNSQueryResponse

Bases: scapy.packet.Packet

aliastypes
fields_desc
NBNSQueryResponse fields

NAME_TRN_ID

ShortField

0

FLAGS

ShortField

34048

QDCOUNT

ShortField

0

ANCOUNT

ShortField

1

NSCOUNT

ShortField

0

ARCOUNT

ShortField

0

RR_NAME

NetBIOSNameField

b'windows'

SUFFIX

ShortEnumField

16705

NULL

ByteField

0

QUESTION_TYPE

ShortEnumField

32

QUESTION_CLASS

ShortEnumField

1

TTL

IntField

300000

RDLENGTH

ShortField

6

NB_FLAGS

ShortField

0

NB_ADDRESS

IPField

'127.0.0.1'

class scapy.layers.netbios.NBNSQueryResponseNegative

Bases: scapy.packet.Packet

aliastypes
fields_desc
NBNSQueryResponseNegative fields

NAME_TRN_ID

ShortField

0

FLAGS

ShortField

34054

QDCOUNT

ShortField

0

ANCOUNT

ShortField

1

NSCOUNT

ShortField

0

ARCOUNT

ShortField

0

RR_NAME

NetBIOSNameField

b'windows'

SUFFIX

ShortEnumField

16705

NULL

ByteField

0

RR_TYPE

ShortEnumField

32

RR_CLASS

ShortEnumField

1

TTL

IntField

0

RDLENGTH

ShortField

6

G

BitEnumField (1 bit)

0

OWNER_NODE_TYPE

BitEnumField (2 bits)

0

UNUSED

BitEnumField (13 bits)

0

NB_ADDRESS

IPField

'127.0.0.1'

class scapy.layers.netbios.NBNSRequest

Bases: scapy.packet.Packet

aliastypes
fields_desc
NBNSRequest fields

NAME_TRN_ID

ShortField

0

FLAGS

ShortField

10512

QDCOUNT

ShortField

1

ANCOUNT

ShortField

0

NSCOUNT

ShortField

0

ARCOUNT

ShortField

1

QUESTION_NAME

NetBIOSNameField

b'windows'

SUFFIX

ShortEnumField

16705

NULL

ByteField

0

QUESTION_TYPE

ShortEnumField

32

QUESTION_CLASS

ShortEnumField

1

RR_NAME

ShortEnumField

49164

RR_TYPE

ShortEnumField

32

RR_CLASS

ShortEnumField

1

TTL

IntField

0

RDLENGTH

ShortField

6

G

BitEnumField (1 bit)

0

OWNER_NODE_TYPE

BitEnumField (2 bits)

0

UNUSED

BitEnumField (13 bits)

0

NB_ADDRESS

IPField

'127.0.0.1'

class scapy.layers.netbios.NBNSWackResponse

Bases: scapy.packet.Packet

aliastypes
fields_desc
NBNSWackResponse fields

NAME_TRN_ID

ShortField

0

FLAGS

ShortField

48135

QDCOUNT

ShortField

0

ANCOUNT

ShortField

1

NSCOUNT

ShortField

0

ARCOUNT

ShortField

0

RR_NAME

NetBIOSNameField

b'windows'

SUFFIX

ShortEnumField

16705

NULL

ByteField

0

RR_TYPE

ShortEnumField

32

RR_CLASS

ShortEnumField

1

TTL

IntField

2

RDLENGTH

ShortField

2

RDATA

BitField (16 bits)

10512

class scapy.layers.netbios.NBTDatagram

Bases: scapy.packet.Packet

aliastypes
fields_desc
NBTDatagram fields

Type

ByteField

16

Flags

ByteField

2

ID

ShortField

0

SourceIP

IPField

'127.0.0.1'

SourcePort

ShortField

138

Length

ShortField

272

Offset

ShortField

0

SourceName

NetBIOSNameField

b'windows'

SUFFIX1

ShortEnumField

16705

NULL

ByteField

0

DestinationName

NetBIOSNameField

b'windows'

SUFFIX2

ShortEnumField

16705

NULL

ByteField

0

class scapy.layers.netbios.NBTSession

Bases: scapy.packet.Packet

aliastypes
fields_desc
NBTSession fields

TYPE

ByteEnumField

0

RESERVED

BitField (7 bits)

0

LENGTH

BitField (17 bits)

0

payload_guess

Possible sublayers: SMBNegociate_Protocol_Request_Header, SMBNegociate_Protocol_Response_Advanced_Security, SMBNegociate_Protocol_Response_No_Security_No_Key, SMBNegociate_Protocol_Response_No_Security, SMBSession_Setup_AndX_Request, SMBSession_Setup_AndX_Response

class scapy.layers.netbios.NetBIOS_DS

Bases: scapy.packet.Packet

aliastypes
fields_desc
NetBIOS_DS fields

type

ByteEnumField

17

flags

ByteField

0

id

XShortField

0

src

IPField

'127.0.0.1'

sport

ShortField

138

len

ShortField

None

ofs

ShortField

0

srcname

NetBIOSNameField

b''

dstname

NetBIOSNameField

b''

post_build(p, pay)