scapy.contrib.nfs

class scapy.contrib.nfs.ACCESS_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
ACCESS_Call fields

filehandle

PacketField

<File_Object  |>

check_access

IntEnumField

1

class scapy.contrib.nfs.ACCESS_Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
ACCESS_Reply fields

status

IntEnumField

0

attributes_follow

IntField

0

attributes

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

access_rights

XIntField (Cond)

0

class scapy.contrib.nfs.COMMIT_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
COMMIT_Call fields

filehandle

PacketField

<File_Object  |>

offset

LongField

0

count

IntField

0

class scapy.contrib.nfs.COMMIT_Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
COMMIT_Reply fields

status

IntEnumField

0

af_before

IntField

0

attributes_before

PacketField (Cond)

<WCC_Attr  |>

af_after

IntField

0

attributes_after

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

verifier

XLongField (Cond)

0

class scapy.contrib.nfs.CREATE_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
CREATE_Call fields

dir

PacketField

<File_Object  |>

filename

PacketField

<Object_Name  |>

create_mode

IntEnumField

None

attributes

PacketField (Cond)

<Sattr3  |>

verifier

XLongField (Cond)

0

class scapy.contrib.nfs.CREATE_Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
CREATE_Reply fields

status

IntEnumField

0

handle_follows

IntField (Cond)

0

filehandle

PacketField (Cond)

<File_Object  |>

attributes_follow

IntField (Cond)

0

attributes

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

af_before

IntField

0

dir_attributes_before

PacketField (Cond)

<WCC_Attr  |>

af_after

IntField

0

dir_attributes_after

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

class scapy.contrib.nfs.FSINFO_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
FSINFO_Call fields

filehandle

PacketField

<File_Object  |>

class scapy.contrib.nfs.FSINFO_Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
FSINFO_Reply fields

status

IntEnumField

0

attributes_follow

IntField

0

attributes

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

rtmax

IntField (Cond)

0

rtpref

IntField (Cond)

0

rtmult

IntField (Cond)

0

wtmax

IntField (Cond)

0

wtpref

IntField (Cond)

0

wtmult

IntField (Cond)

0

dtpref

IntField (Cond)

0

maxfilesize

LongField (Cond)

0

timedelta_s

IntField (Cond)

0

timedelta_ns

IntField (Cond)

0

properties

XIntField (Cond)

0

class scapy.contrib.nfs.FSSTAT_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
FSSTAT_Call fields

filehandle

PacketField

<File_Object  |>

class scapy.contrib.nfs.FSSTAT_Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
FSSTAT_Reply fields

status

IntEnumField

0

attributes_follow

IntField

0

attributes

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

tbytes

LongField (Cond)

0

fbytes

LongField (Cond)

0

abytes

LongField (Cond)

0

tfiles

LongField (Cond)

0

ffiles

LongField (Cond)

0

afiles

LongField (Cond)

0

invarsec

IntField (Cond)

0

class scapy.contrib.nfs.Fattr3

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
Fattr3 fields

type

IntEnumField

0

mode

OIntField

0

nlink

IntField

0

uid

IntField

0

gid

IntField

0

size

LongField

0

used

LongField

0

rdev

FieldListField

[0, 0]

fsid

XLongField

0

fileid

XLongField

0

atime_s

IntField

0

atime_ns

IntField

0

mtime_s

IntField

0

mtime_ns

IntField

0

ctime_s

IntField

0

ctime_ns

IntField

0

class scapy.contrib.nfs.File_From_Dir

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
File_From_Dir fields

fileid

LongField

0

filename

PacketField

<Object_Name  |>

cookie

LongField

0

value_follows

IntField

0

class scapy.contrib.nfs.File_From_Dir_Plus

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
File_From_Dir_Plus fields

fileid

LongField

0

filename

PacketField

<Object_Name  |>

cookie

LongField

0

attributes_follow

IntField

0

attributes

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

handle_follows

IntField

0

filehandle

PacketField (Cond)

<File_Object  |>

value_follows

IntField

0

class scapy.contrib.nfs.File_Object

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
File_Object fields

length

IntField

0

fh

StrLenField

b''

fill

StrLenField

b''

set(new_filehandle, length=None, fill=None)
class scapy.contrib.nfs.GETATTR_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
GETATTR_Call fields

filehandle

PacketField

<File_Object  |>

class scapy.contrib.nfs.GETATTR_Reply

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
GETATTR_Reply fields

status

IntEnumField

0

attributes

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

Bases: scapy.packet.Packet

LINK_Call fields

filehandle

PacketField

<File_Object  |>

link_dir

PacketField

<File_Object  |>

link_name

PacketField

<Object_Name  |>

Bases: scapy.packet.Packet

LINK_Reply fields

status

IntEnumField

0

af_file

IntField

0

file_attributes

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

af_link_before

IntField

0

link_attributes_before

PacketField (Cond)

<WCC_Attr  |>

af_link_after

IntField

0

link_attributes_after

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

class scapy.contrib.nfs.LOOKUP_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
LOOKUP_Call fields

dir

PacketField

<File_Object  |>

filename

PacketField

<Object_Name  |>

class scapy.contrib.nfs.LOOKUP_Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
LOOKUP_Reply fields

status

IntEnumField

0

filehandle

PacketField (Cond)

<File_Object  |>

af_file

IntField (Cond)

0

file_attributes

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

af_dir

IntField

0

dir_attributes

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

class scapy.contrib.nfs.MKDIR_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
MKDIR_Call fields

dir

PacketField

<File_Object  |>

dir_name

PacketField

<Object_Name  |>

attributes

PacketField

<Sattr3  |>

class scapy.contrib.nfs.MKDIR_Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
MKDIR_Reply fields

status

IntEnumField

0

handle_follows

IntField (Cond)

0

filehandle

PacketField (Cond)

<File_Object  |>

attributes_follow

IntField (Cond)

0

attributes

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

af_before

IntField

0

dir_attributes_before

PacketField (Cond)

<WCC_Attr  |>

af_after

IntField

0

dir_attributes_after

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

class scapy.contrib.nfs.NULL_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
class scapy.contrib.nfs.NULL_Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
class scapy.contrib.nfs.OIntField(name, default)

Bases: scapy.fields.IntField

IntField child with octal representation

i2repr(pkt, x)
class scapy.contrib.nfs.PATHCONF_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
PATHCONF_Call fields

filehandle

PacketField

<File_Object  |>

class scapy.contrib.nfs.PATHCONF_Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
PATHCONF_Reply fields

status

IntEnumField

0

attributes_follow

IntField

0

attributes

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

linkmax

IntField (Cond)

0

name_max

IntField (Cond)

0

no_trunc

IntEnumField (Cond)

0

chown_restricted

IntEnumField (Cond)

0

case_insensitive

IntEnumField (Cond)

0

case_preserving

IntEnumField (Cond)

0

class scapy.contrib.nfs.READDIRPLUS_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
READDIRPLUS_Call fields

filehandle

PacketField

<File_Object  |>

cookie

LongField

0

verifier

LongField

0

dircount

IntField

512

maxcount

IntField

4096

class scapy.contrib.nfs.READDIRPLUS_Reply

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
READDIRPLUS_Reply fields

status

IntEnumField

0

attributes_follow

IntField

0

attributes

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

verifier

LongField (Cond)

0

value_follows

IntField (Cond)

0

files

PacketListField (Cond)

[]

eof

IntField (Cond)

0

class scapy.contrib.nfs.READDIR_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
READDIR_Call fields

filehandle

PacketField

<File_Object  |>

cookie

LongField

0

verifier

XLongField

0

count

IntField

0

class scapy.contrib.nfs.READDIR_Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
READDIR_Reply fields

status

IntEnumField

0

attributes_follow

IntField

0

attributes

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

verifier

XLongField (Cond)

0

value_follows

IntField (Cond)

0

files

PacketListField (Cond)

[]

eof

IntField (Cond)

0

Bases: scapy.packet.Packet

READLINK_Call fields

filehandle

PacketField

<File_Object  |>

Bases: scapy.packet.Packet

READLINK_Reply fields

status

IntEnumField

0

attributes_follow

IntField

0

attributes

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

filename

PacketField (Cond)

<Object_Name  |>

class scapy.contrib.nfs.READ_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
READ_Call fields

filehandle

PacketField

<File_Object  |>

offset

LongField

0

count

IntField

0

class scapy.contrib.nfs.READ_Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
READ_Reply fields

status

IntEnumField

0

attributes_follow

IntField

0

attributes

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

count

IntField (Cond)

0

eof

IntField (Cond)

0

data_length

IntField (Cond)

0

data

StrLenField (Cond)

b''

fill

StrLenField (Cond)

b''

class scapy.contrib.nfs.REMOVE_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
REMOVE_Call fields

dir

PacketField

<File_Object  |>

filename

PacketField

<Object_Name  |>

class scapy.contrib.nfs.REMOVE_Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
REMOVE_Reply fields

status

IntEnumField

0

af_before

IntField

0

attributes_before

PacketField (Cond)

<WCC_Attr  |>

af_after

IntField

0

attributes_after

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

class scapy.contrib.nfs.RENAME_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
RENAME_Call fields

dir_from

PacketField

<File_Object  |>

name_from

PacketField

<Object_Name  |>

dir_to

PacketField

<File_Object  |>

name_to

PacketField

<Object_Name  |>

class scapy.contrib.nfs.RENAME_Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
RENAME_Reply fields

status

IntEnumField

0

af_before_f

IntField

0

attributes_before_f

PacketField (Cond)

<WCC_Attr  |>

af_after_f

IntField

0

attributes_after_f

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

af_before_t

IntField

0

attributes_before_t

PacketField (Cond)

<WCC_Attr  |>

af_after_t

IntField

0

attributes_after_t

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

class scapy.contrib.nfs.RMDIR_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
RMDIR_Call fields

dir

PacketField

<File_Object  |>

filename

PacketField

<Object_Name  |>

class scapy.contrib.nfs.RMDIR_Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
RMDIR_Reply fields

status

IntEnumField

0

af_before

IntField

0

attributes_before

PacketField (Cond)

<WCC_Attr  |>

af_after

IntField

0

attributes_after

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

class scapy.contrib.nfs.SETATTR_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
SETATTR_Call fields

filehandle

PacketField

<File_Object  |>

attributes

PacketField

<Sattr3  |>

check

IntField

0

class scapy.contrib.nfs.SETATTR_Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
SETATTR_Reply fields

status

IntEnumField

0

af_before

IntField

0

attributes_before

PacketField (Cond)

<WCC_Attr  |>

af_after

IntField

0

attributes_after

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

Bases: scapy.packet.Packet

SYMLINK_Call fields

dir

PacketField

<File_Object  |>

dir_name

PacketField

<Object_Name  |>

attributes

PacketField

<Sattr3  |>

link_name

PacketField

<Object_Name  |>

Bases: scapy.packet.Packet

SYMLINK_Reply fields

status

IntEnumField

0

handle_follows

IntField (Cond)

0

filehandle

PacketField (Cond)

<File_Object  |>

attributes_follow

IntField (Cond)

0

attributes

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

af_before

IntField

0

dir_attributes_before

PacketField (Cond)

<WCC_Attr  |>

af_after

IntField

0

dir_attributes_after

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

class scapy.contrib.nfs.Sattr3

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
Sattr3 fields

set_mode

IntEnumField

0

mode

OIntField (Cond)

0

set_uid

IntEnumField

0

uid

IntField (Cond)

0

set_gid

IntEnumField

0

gid

IntField (Cond)

0

set_size

IntEnumField

0

size

LongField (Cond)

0

set_atime

IntEnumField

0

atime_s

IntField (Cond)

0

atime_ns

IntField (Cond)

0

set_mtime

IntEnumField

0

mtime_s

IntField (Cond)

0

mtime_ns

IntField (Cond)

0

class scapy.contrib.nfs.WCC_Attr

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
WCC_Attr fields

size

LongField

0

mtime_s

IntField

0

mtime_ns

IntField

0

ctime_s

IntField

0

ctime_ns

IntField

0

class scapy.contrib.nfs.WRITE_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
WRITE_Call fields

filehandle

PacketField

<File_Object  |>

offset

LongField

0

count

IntField

0

stable

IntEnumField

0

length

IntField

0

contents

StrLenField

b''

fill

StrLenField

b''

class scapy.contrib.nfs.WRITE_Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
WRITE_Reply fields

status

IntEnumField

0

af_before

IntField

0

attributes_before

PacketField (Cond)

<WCC_Attr  |>

af_after

IntField

0

attributes_after

PacketField (Cond)

<Fattr3  rdev=[0, 0] |>

count

IntField (Cond)

0

committed

IntEnumField (Cond)

0

verifier

XLongField (Cond)

0

scapy.contrib.nfs.loct(x)