scapy.contrib.oncrpc

class scapy.contrib.oncrpc.Auth_Unix

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
Auth_Unix fields

stamp

XIntField

0

mname

PacketField

<Object_Name  |>

uid

IntField

0

gid

IntField

0

num_auxgids

IntField

0

auxgids

FieldListField

[]

class scapy.contrib.oncrpc.Object_Name

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
Object_Name fields

length

IntField

0

_name

StrLenField

b''

fill

StrLenField

b''

set(name, length=None, fill=None)
class scapy.contrib.oncrpc.RM_Header

Bases: scapy.packet.Packet

aliastypes
fields_desc
RM_Header fields

rm

XIntField

None

post_build(pkt, pay)

Override of post_build to set the rm header == len(payload)

class scapy.contrib.oncrpc.RPC

Bases: scapy.packet.Packet

aliastypes
fields_desc
RPC fields

xid

XIntField

0

mtype

IntEnumField

0

payload_guess

Possible sublayers: MOUNT_Call, MOUNT_Reply, NULL_Call, NULL_Reply, UNMOUNT_Call, UNMOUNT_Reply, ACCESS_Call, ACCESS_Reply, COMMIT_Call, COMMIT_Reply, CREATE_Call, CREATE_Reply, FSINFO_Call, FSINFO_Reply, FSSTAT_Call, FSSTAT_Reply, GETATTR_Call, GETATTR_Reply, LINK_Call, LINK_Reply, LOOKUP_Call, LOOKUP_Reply, MKDIR_Call, MKDIR_Reply, NULL_Call, NULL_Reply, PATHCONF_Call, PATHCONF_Reply, READDIRPLUS_Call, READDIRPLUS_Reply, READDIR_Call, READDIR_Reply, READLINK_Call, READLINK_Reply, READ_Call, READ_Reply, REMOVE_Call, REMOVE_Reply, RENAME_Call, RENAME_Reply, RMDIR_Call, RMDIR_Reply, SETATTR_Call, SETATTR_Reply, SYMLINK_Call, SYMLINK_Reply, WRITE_Call, WRITE_Reply, CANCEL_Call, CANCEL_Reply, GRANTED_MSG_Call, GRANTED_MSG_Reply, GRANTED_RES_Call, GRANTED_RES_Reply, LOCK_Call, LOCK_Reply, SHARE_Call, SHARE_Reply, TEST_Call, TEST_Reply, UNLOCK_Call, UNLOCK_Reply, UNSHARE_Call, UNSHARE_Reply, RPC_Call, RPC_Reply

class scapy.contrib.oncrpc.RPC_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
RPC_Call fields

version

IntField

2

program

IntField

100003

pversion

IntField

3

procedure

IntField

0

aflavor

IntEnumField

1

alength

IntField

None

a_unix

PacketField (Cond)

<Auth_Unix  mname=<Object_Name  |> |>

vflavor

IntEnumField

0

vlength

IntField

None

v_unix

PacketField (Cond)

<Auth_Unix  mname=<Object_Name  |> |>

payload_guess

Possible sublayers: MOUNT_Call, NULL_Call, UNMOUNT_Call, ACCESS_Call, COMMIT_Call, CREATE_Call, FSINFO_Call, FSSTAT_Call, GETATTR_Call, LINK_Call, LOOKUP_Call, MKDIR_Call, NULL_Call, PATHCONF_Call, READDIRPLUS_Call, READDIR_Call, READLINK_Call, READ_Call, REMOVE_Call, RENAME_Call, RMDIR_Call, SETATTR_Call, SYMLINK_Call, WRITE_Call, CANCEL_Call, GRANTED_MSG_Call, GRANTED_RES_Call, LOCK_Call, SHARE_Call, TEST_Call, UNLOCK_Call, UNSHARE_Call

post_build(pkt, pay)

Override of post_build to handle length fields

set_auth(**kwargs)

Used to easily set the fields in an a_unix packet

class scapy.contrib.oncrpc.RPC_Reply

Bases: scapy.packet.Packet

aliastypes
fields_desc
RPC_Reply fields

reply_stat

IntField

0

flavor

IntEnumField

0

a_unix

PacketField (Cond)

<Auth_Unix  mname=<Object_Name  |> |>

length

IntField

0

accept_stat

IntField

0

set_auth(**kwargs)

Used to easily set the fields in an a_unix packet