scapy.contrib.oncrpc

class scapy.contrib.oncrpc.Auth_Unix

Bases: scapy.packet.Packet

aliastypes
extract_padding(s)
fields_desc
Auth_Unix字段

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字段

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字段

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栏位

xid

XIntField

0

mtype

IntEnumField

0

payload_guess

可能的子层: MOUNT_CallMOUNT_ReplyNULL_CallNULL_ReplyUNMOUNT_CallUNMOUNT_ReplyACCESS_CallACCESS_ReplyCOMMIT_CallCOMMIT_ReplyCREATE_CallCREATE_ReplyFSINFO_CallFSINFO_ReplyFSSTAT_CallFSSTAT_ReplyGETATTR_CallGETATTR_ReplyLINK_CallLINK_ReplyLOOKUP_CallLOOKUP_ReplyMKDIR_CallMKDIR_ReplyNULL_CallNULL_ReplyPATHCONF_CallPATHCONF_ReplyREADDIRPLUS_CallREADDIRPLUS_ReplyREADDIR_CallREADDIR_ReplyREADLINK_CallREADLINK_ReplyREAD_CallREAD_ReplyREMOVE_CallREMOVE_ReplyRENAME_CallRENAME_ReplyRMDIR_CallRMDIR_ReplySETATTR_CallSETATTR_ReplySYMLINK_CallSYMLINK_ReplyWRITE_CallWRITE_ReplyCANCEL_CallCANCEL_ReplyGRANTED_MSG_CallGRANTED_MSG_ReplyGRANTED_RES_CallGRANTED_RES_ReplyLOCK_CallLOCK_ReplySHARE_CallSHARE_ReplyTEST_CallTEST_ReplyUNLOCK_CallUNLOCK_ReplyUNSHARE_CallUNSHARE_ReplyRPC_CallRPC_Reply

class scapy.contrib.oncrpc.RPC_Call

Bases: scapy.packet.Packet

aliastypes
fields_desc
RPC_Call字段

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

可能的子层: MOUNT_CallNULL_CallUNMOUNT_CallACCESS_CallCOMMIT_CallCREATE_CallFSINFO_CallFSSTAT_CallGETATTR_CallLINK_CallLOOKUP_CallMKDIR_CallNULL_CallPATHCONF_CallREADDIRPLUS_CallREADDIR_CallREADLINK_CallREAD_CallREMOVE_CallRENAME_CallRMDIR_CallSETATTR_CallSYMLINK_CallWRITE_CallCANCEL_CallGRANTED_MSG_CallGRANTED_RES_CallLOCK_CallSHARE_CallTEST_CallUNLOCK_CallUNSHARE_Call

post_build(pkt, pay)

覆盖post_build以处理长度字段

set_auth(**kwargs)

用于轻松设置a_unix数据包中的字段

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)

用于轻松设置a_unix数据包中的字段