pypacker.layer567 package¶
Submodules¶
pypacker.layer567.bgp module¶
Border Gateway Protocol.
-
class
pypacker.layer567.bgp.
BGP
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
class
Keepalive
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
class
BGP.
Notification
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('code', 'B', 0), ('subcode', 'B', 0))¶
-
code
¶ Unpack field ondemand
-
subcode
¶ Unpack field ondemand
-
-
class
BGP.
Open
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
class
Parameter
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('type', 'B', 0), ('len', 'B', 0))¶
-
len
¶ Unpack field ondemand
-
type
¶ Unpack field ondemand
-
-
BGP.Open.
__hdr__
= (('v', 'B', 4), ('asn', 'H', 0), ('holdtime', 'H', 0), ('identifier', 'I', 0), ('param_len', 'B', 0), ('params', None, <class 'pypacker.triggerlist.TriggerList'>))¶
-
BGP.Open.
asn
¶ Unpack field ondemand
-
BGP.Open.
holdtime
¶ Unpack field ondemand
-
BGP.Open.
identifier
¶ Unpack field ondemand
-
BGP.Open.
param_len
¶ Unpack field ondemand
-
BGP.Open.
params
¶
-
BGP.Open.
v
¶ Unpack field ondemand
-
class
-
class
BGP.
RouteRefresh
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('afi', 'H', 1), ('rsvd', 'B', 0), ('safi', 'B', 1))¶
-
afi
¶ Unpack field ondemand
-
rsvd
¶ Unpack field ondemand
-
safi
¶ Unpack field ondemand
-
-
class
BGP.
Update
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
class
Attribute
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
class
ASPath
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
class
ASPathSegment
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('type', 'B', 0), ('len', 'B', 0))¶
-
len
¶ Unpack field ondemand
-
type
¶ Unpack field ondemand
-
-
BGP.Update.Attribute.ASPath.
__hdr__
= (('segments', None, <class 'pypacker.triggerlist.TriggerList'>),)¶
-
BGP.Update.Attribute.ASPath.
segments
¶
-
class
-
class
BGP.Update.Attribute.
Aggregator
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('asn', 'H', 0), ('ip', 'I', 0))¶
-
asn
¶ Unpack field ondemand
-
ip
¶ Unpack field ondemand
-
-
class
BGP.Update.Attribute.
AtomicAggregate
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
class
BGP.Update.Attribute.
ClusterList
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
class
BGP.Update.Attribute.
Communitie
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
class
BGP.Update.Attribute.
LocalPref
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('value', 'I', 0),)¶
-
value
¶ Unpack field ondemand
-
-
class
BGP.Update.Attribute.
MPReachNLRI
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('afi', 'H', 1), ('safi', 'B', 1))¶
-
afi
¶ Unpack field ondemand
-
safi
¶ Unpack field ondemand
-
-
class
BGP.Update.Attribute.
MPUnreachNLRI
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('afi', 'H', 1), ('safi', 'B', 1))¶
-
afi
¶ Unpack field ondemand
-
safi
¶ Unpack field ondemand
-
-
class
BGP.Update.Attribute.
MultiExitDisc
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('value', 'I', 0),)¶
-
value
¶ Unpack field ondemand
-
-
class
BGP.Update.Attribute.
NextHop
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('ip', 'I', 0),)¶
-
ip
¶ Unpack field ondemand
-
-
class
BGP.Update.Attribute.
Origin
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('type', 'B', 0),)¶
-
type
¶ Unpack field ondemand
-
-
class
BGP.Update.Attribute.
OriginatorID
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('value', 'I', 0),)¶
-
value
¶ Unpack field ondemand
-
-
BGP.Update.Attribute.
__hdr__
= (('flags', 'B', 0), ('type', 'B', 0), ('len', 'B', 0))¶
-
BGP.Update.Attribute.
extended_length
¶
-
BGP.Update.Attribute.
flags
¶ Unpack field ondemand
-
BGP.Update.Attribute.
len
¶ Unpack field ondemand
-
BGP.Update.Attribute.
optional
¶
-
BGP.Update.Attribute.
partial
¶
-
BGP.Update.Attribute.
transitive
¶
-
BGP.Update.Attribute.
type
¶ Unpack field ondemand
-
class
-
BGP.Update.
__hdr__
= (('withdrawnlen', 'H', 0), ('pathlen', 'H', 0), ('wroutes', None, <class 'pypacker.triggerlist.TriggerList'>), ('pathattrs', None, <class 'pypacker.triggerlist.TriggerList'>), ('anncroutes', None, <class 'pypacker.triggerlist.TriggerList'>))¶
-
BGP.Update.
anncroutes
¶
-
BGP.Update.
pathattrs
¶
-
BGP.Update.
pathlen
¶ Unpack field ondemand
-
BGP.Update.
withdrawnlen
¶ Unpack field ondemand
-
BGP.Update.
wroutes
¶
-
class
-
BGP.
__hdr__
= (('marker', '16s', b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff'), ('len', 'H', 0), ('type', 'B', 1))¶
-
BGP.
len
¶ Unpack field ondemand
-
BGP.
marker
¶ Unpack field ondemand
-
BGP.
type
¶ Unpack field ondemand
-
class
-
class
pypacker.layer567.bgp.
Route
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('len', 'B', 0),)¶
-
len
¶ Unpack field ondemand
-
-
pypacker.layer567.bgp.
unpack_H
()¶ S.unpack(buffer) -> (v1, v2, ...)
Return a tuple containing values unpacked according to the format string S.format. Requires len(buffer) == S.size. See help(struct) for more on format strings.
pypacker.layer567.dhcp module¶
Dynamic Host Configuration Protocol.
-
class
pypacker.layer567.dhcp.
DHCP
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('op', 'B', 1), ('hrd', 'B', 1), ('hln', 'B', 6), ('hops', 'B', 0), ('xid', 'I', 3735928559), ('secs', 'H', 0), ('flags', 'H', 0), ('ciaddr', 'I', 0), ('yiaddr', 'I', 0), ('siaddr', 'I', 0), ('giaddr', 'I', 0), ('chaddr', '16s', b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), ('sname', '64s', b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), ('file', '128s', b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), ('magic', 'I', 1669485411), ('opts', None, <class 'pypacker.triggerlist.TriggerList'>))¶
-
chaddr
¶ Unpack field ondemand
-
ciaddr
¶ Unpack field ondemand
-
file
¶ Unpack field ondemand
-
flags
¶ Unpack field ondemand
-
giaddr
¶ Unpack field ondemand
-
hln
¶ Unpack field ondemand
-
hops
¶ Unpack field ondemand
-
hrd
¶ Unpack field ondemand
-
magic
¶ Unpack field ondemand
-
op
¶ Unpack field ondemand
-
opts
¶
-
secs
¶ Unpack field ondemand
-
siaddr
¶ Unpack field ondemand
-
sname
¶ Unpack field ondemand
-
xid
¶ Unpack field ondemand
-
yiaddr
¶ Unpack field ondemand
-
-
class
pypacker.layer567.dhcp.
DHCPOpt
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('type', 'B', 0), ('len', 'B', 0))¶
-
len
¶ Unpack field ondemand
-
type
¶ Unpack field ondemand
-
-
class
pypacker.layer567.dhcp.
Padding
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
pypacker.layer567.diameter module¶
Diameter.
-
class
pypacker.layer567.diameter.
AVP
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('code', 'I', 0), ('flags', 'B', 0), ('len', '3s', b''))¶
-
code
¶ Unpack field ondemand
-
flags
¶ Unpack field ondemand
-
len
¶ Unpack field ondemand
-
mandatory_flag
¶
-
protected_flag
¶
-
vendor_flag
¶
-
-
class
pypacker.layer567.diameter.
Diameter
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('v', 'B', 1), ('len', '3s', b'\x00\x00\x00'), ('flags', 'B', 0), ('cmd', '3s', b'\x00\x00\x00'), ('app_id', 'I', 0), ('hop_id', 'I', 0), ('end_id', 'I', 0), ('avps', None, <class 'pypacker.triggerlist.TriggerList'>))¶
-
app_id
¶ Unpack field ondemand
-
avps
¶
-
cmd
¶ Unpack field ondemand
-
end_id
¶ Unpack field ondemand
-
error_flag
¶
-
flags
¶ Unpack field ondemand
-
hop_id
¶ Unpack field ondemand
-
len
¶ Unpack field ondemand
-
proxiable_flag
¶
-
request_flag
¶
-
retransmit_flag
¶
-
v
¶ Unpack field ondemand
-
pypacker.layer567.dns module¶
Domain Name System.
-
class
pypacker.layer567.dns.
DNS
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
class
AddRecord
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
DNS additional records.
-
__hdr__
= (('name', 'H', 0), ('type', 'H', 1), ('clz', 'H', 1), ('ts', 'I', 0), ('dlen', 'H', 0), ('addr', None, b'\x01\x02\x03\x04'))¶
-
addr
¶ Unpack field ondemand
-
clz
¶ Unpack field ondemand
-
dlen
¶ Unpack field ondemand
-
name
¶ Unpack field ondemand
-
ts
¶ Unpack field ondemand
-
type
¶ Unpack field ondemand
-
-
class
DNS.
AddRecordRoot
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
DNS additional records.
-
__hdr__
= (('name', 'B', 0), ('type', 'H', 1), ('udpsize', 'H', 1), ('rcode', 'B', 0), ('v', 'B', 0), ('z', 'H', 0), ('dlen', 'H', 0))¶
-
dlen
¶ Unpack field ondemand
-
name
¶ Unpack field ondemand
-
rcode
¶ Unpack field ondemand
-
type
¶ Unpack field ondemand
-
udpsize
¶ Unpack field ondemand
-
v
¶ Unpack field ondemand
-
z
¶ Unpack field ondemand
-
-
class
DNS.
Answer
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
DNS resource record.
-
__hdr__
= (('name', 'H', 49164), ('type', 'H', 1), ('cls', 'H', 1), ('ttl', 'I', 180), ('dlen', 'H', 4), ('address', None, b'1234'))¶
-
address
¶ Unpack field ondemand
-
cls
¶ Unpack field ondemand
-
dlen
¶ Unpack field ondemand
-
name
¶ Unpack field ondemand
-
ttl
¶ Unpack field ondemand
-
type
¶ Unpack field ondemand
-
-
class
DNS.
Auth
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
Auth, generic type.
-
__hdr__
= (('name', 'H', 0), ('type', 'H', 0), ('cls', 'H', 0), ('ttl', 'I', 0), ('dlen', 'H', 0), ('server', None, b'\x03www\x04test\x03com\x00'))¶
-
cls
¶ Unpack field ondemand
-
dlen
¶ Unpack field ondemand
-
name
¶ Unpack field ondemand
-
server
¶ Unpack field ondemand
-
server_s
¶
-
ttl
¶ Unpack field ondemand
-
type
¶ Unpack field ondemand
-
-
class
DNS.
AuthSOA
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
Auth type SOA. Not used atm
-
__hdr__
= (('name', 'H', 0), ('type', 'H', 0), ('cls', 'H', 0), ('ttl', 'I', 0), ('dlen', 'H', 0), ('name2', None, b'\x03www\x04test\x03com\x00'), ('mailbox', None, b'\x03www\x04test\x03com\x00'), ('pserver', 'H', 0), ('mbox', 'H', 0), ('serial', 'H', 0), ('refresh', 'H', 0), ('retry', 'H', 0), ('expire', 'H', 0), ('minttl', 'H', 0))¶
-
cls
¶ Unpack field ondemand
-
dlen
¶ Unpack field ondemand
-
expire
¶ Unpack field ondemand
-
mailbox
¶ Unpack field ondemand
-
mailbox_s
¶
-
mbox
¶ Unpack field ondemand
-
minttl
¶ Unpack field ondemand
-
name
¶ Unpack field ondemand
-
name2
¶ Unpack field ondemand
-
name_s
¶
-
pserver
¶ Unpack field ondemand
-
refresh
¶ Unpack field ondemand
-
retry
¶ Unpack field ondemand
-
serial
¶ Unpack field ondemand
-
ttl
¶ Unpack field ondemand
-
type
¶ Unpack field ondemand
-
-
class
DNS.
Query
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
DNS question.
-
__hdr__
= (('name', None, b'\x03www\x04test\x03com\x00'), ('type', 'H', 1), ('cls', 'H', 1))¶
-
cls
¶ Unpack field ondemand
-
name
¶ Unpack field ondemand
-
name_s
¶
-
type
¶ Unpack field ondemand
-
-
DNS.
__hdr__
= (('id', 'H', 4660), ('flags', 'H', 288), ('questions_amount', 'H', 0, True), ('answers_amount', 'H', 0, True), ('authrr_amount', 'H', 0, True), ('addrr_amount', 'H', 0, True), ('queries', None, <class 'pypacker.triggerlist.TriggerList'>), ('answers', None, <class 'pypacker.triggerlist.TriggerList'>), ('auths', None, <class 'pypacker.triggerlist.TriggerList'>), ('addrecords', None, <class 'pypacker.triggerlist.TriggerList'>))¶
-
DNS.
addrecords
¶
-
DNS.
addrr_amount
¶ Unpack field ondemand
-
DNS.
addrr_amount_au_active
= True¶
-
DNS.
answers
¶
-
DNS.
answers_amount
¶ Unpack field ondemand
-
DNS.
answers_amount_au_active
= True¶
-
DNS.
authrr_amount
¶ Unpack field ondemand
-
DNS.
authrr_amount_au_active
= True¶
-
DNS.
auths
¶
-
DNS.
bin
(update_auto_fields=True)¶
-
DNS.
flags
¶ Unpack field ondemand
-
DNS.
id
¶ Unpack field ondemand
-
DNS.
queries
¶
-
DNS.
questions_amount
¶ Unpack field ondemand
-
DNS.
questions_amount_au_active
= True¶
-
class
-
pypacker.layer567.dns.
unpack_H
()¶ S.unpack(buffer) -> (v1, v2, ...)
Return a tuple containing values unpacked according to the format string S.format. Requires len(buffer) == S.size. See help(struct) for more on format strings.
-
pypacker.layer567.dns.
unpack_HHHH
()¶ S.unpack(buffer) -> (v1, v2, ...)
Return a tuple containing values unpacked according to the format string S.format. Requires len(buffer) == S.size. See help(struct) for more on format strings.
pypacker.layer567.hsrp module¶
Cisco Hot Standby Router Protocol.
-
class
pypacker.layer567.hsrp.
HSRP
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('version', 'B', 0), ('opcode', 'B', 0), ('state', 'B', 0), ('hello', 'B', 0), ('hold', 'B', 0), ('priority', 'B', 0), ('group', 'B', 0), ('rsvd', 'B', 0), ('auth', '8s', b'cisco'), ('vip', '4s', b''))¶
-
auth
¶ Unpack field ondemand
-
group
¶ Unpack field ondemand
-
hello
¶ Unpack field ondemand
-
hold
¶ Unpack field ondemand
-
opcode
¶ Unpack field ondemand
-
priority
¶ Unpack field ondemand
-
rsvd
¶ Unpack field ondemand
-
state
¶ Unpack field ondemand
-
version
¶ Unpack field ondemand
-
vip
¶ Unpack field ondemand
-
pypacker.layer567.http module¶
Hypertext Transfer Protocol.
-
class
pypacker.layer567.http.
HTTP
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('startline', None, None), ('hdr', None, <class 'pypacker.layer567.http.HTTPHeader'>), ('sep', '2s', b'\r\n'))¶
-
hdr
¶
-
sep
¶ Unpack field ondemand
-
startline
¶ Unpack field ondemand
-
-
class
pypacker.layer567.http.
HTTPHeader
(packet, dissect_callback=None, buffer=b'')¶
-
pypacker.layer567.http.
split_headbody
()¶ split(string[, maxsplit = 0]) -> list. Split string by the occurrences of pattern.
-
pypacker.layer567.http.
split_header
()¶ split(string[, maxsplit = 0]) -> list. Split string by the occurrences of pattern.
-
pypacker.layer567.http.
split_keyval
()¶ split(string[, maxsplit = 0]) -> list. Split string by the occurrences of pattern.
pypacker.layer567.ntp module¶
Network Time Protocol.
-
class
pypacker.layer567.ntp.
NTP
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('flags', 'B', 28), ('stratum', 'B', 2), ('interval', 'B', 4), ('precision', 'B', 233), ('delay', 'I', 0), ('dispersion', 'I', 0), ('id', '4s', b'\x00\x01\x02\x03'), ('update_time', '8s', b'\x00\x00\x00\x00\x00\x00\x00\x00'), ('originate_time', '8s', b''), ('receive_time', '8s', b''), ('transmit_time', '8s', b''))¶
-
delay
¶ Unpack field ondemand
-
dispersion
¶ Unpack field ondemand
-
flags
¶ Unpack field ondemand
-
id
¶ Unpack field ondemand
-
interval
¶ Unpack field ondemand
-
li
¶
-
mode
¶
-
originate_time
¶ Unpack field ondemand
-
precision
¶ Unpack field ondemand
-
receive_time
¶ Unpack field ondemand
-
stratum
¶ Unpack field ondemand
-
transmit_time
¶ Unpack field ondemand
-
update_time
¶ Unpack field ondemand
-
v
¶
-
pypacker.layer567.pmap module¶
Portmap / rpcbind.
pypacker.layer567.radius module¶
Remote Authentication Dial-In User Service.
-
class
pypacker.layer567.radius.
Radius
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('code', 'B', 0), ('id', 'B', 0), ('len', 'H', 4), ('auth', '16s', b''))¶
-
auth
¶ Unpack field ondemand
-
code
¶ Unpack field ondemand
-
id
¶ Unpack field ondemand
-
len
¶ Unpack field ondemand
-
static
parse_attrs
(buf)¶ Parse attributes buffer into a list of (type, data) tuples.
-
pypacker.layer567.rfb module¶
Remote Framebuffer Protocol.
-
class
pypacker.layer567.rfb.
CutText
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('pad', '3s', b''), ('length', 'I', 0))¶
-
length
¶ Unpack field ondemand
-
pad
¶ Unpack field ondemand
-
-
class
pypacker.layer567.rfb.
FramebufferUpdate
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('pad', '1s', b''), ('num_rects', 'H', 0))¶
-
num_rects
¶ Unpack field ondemand
-
pad
¶ Unpack field ondemand
-
-
class
pypacker.layer567.rfb.
FramebufferUpdateRequest
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('incremental', 'B', 0), ('x_position', 'H', 0), ('y_position', 'H', 0), ('width', 'H', 0), ('height', 'H', 0))¶
-
height
¶ Unpack field ondemand
-
incremental
¶ Unpack field ondemand
-
width
¶ Unpack field ondemand
-
x_position
¶ Unpack field ondemand
-
y_position
¶ Unpack field ondemand
-
-
class
pypacker.layer567.rfb.
KeyEvent
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('down_flag', 'B', 0), ('pad', '2s', b''), ('key', 'I', 0))¶
-
down_flag
¶ Unpack field ondemand
-
key
¶ Unpack field ondemand
-
pad
¶ Unpack field ondemand
-
-
class
pypacker.layer567.rfb.
PointerEvent
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('button_mask', 'B', 0), ('x_position', 'H', 0), ('y_position', 'H', 0))¶
Unpack field ondemand
-
x_position
¶ Unpack field ondemand
-
y_position
¶ Unpack field ondemand
-
-
class
pypacker.layer567.rfb.
RFB
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('type', 'B', 0),)¶
-
type
¶ Unpack field ondemand
-
-
class
pypacker.layer567.rfb.
SetColourMapEntries
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('pad', '1s', b''), ('first_colour', 'H', 0), ('num_colours', 'H', 0))¶
-
first_colour
¶ Unpack field ondemand
-
num_colours
¶ Unpack field ondemand
-
pad
¶ Unpack field ondemand
-
-
class
pypacker.layer567.rfb.
SetEncodings
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('pad', '1s', b''), ('num_encodings', 'H', 0))¶
-
num_encodings
¶ Unpack field ondemand
-
pad
¶ Unpack field ondemand
-
-
class
pypacker.layer567.rfb.
SetPixelFormat
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('pad', '3s', b''), ('pixel_fmt', '16s', b''))¶
-
pad
¶ Unpack field ondemand
-
pixel_fmt
¶ Unpack field ondemand
-
pypacker.layer567.rip module¶
Routing Information Protocol.
-
class
pypacker.layer567.rip.
Auth
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('rsvd', 'H', 65535), ('type', 'H', 2), ('auth', '16s', b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'))¶
-
auth
¶ Unpack field ondemand
-
rsvd
¶ Unpack field ondemand
-
type
¶ Unpack field ondemand
-
-
class
pypacker.layer567.rip.
RIP
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('cmd', 'B', 1), ('v', 'B', 2), ('rsvd', 'H', 0), ('rte_auth', None, <class 'pypacker.triggerlist.TriggerList'>))¶
-
cmd
¶ Unpack field ondemand
-
rsvd
¶ Unpack field ondemand
-
rte_auth
¶
-
v
¶ Unpack field ondemand
-
-
class
pypacker.layer567.rip.
RTE
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('family', 'H', 2), ('route_tag', 'H', 0), ('addr', 'I', 0), ('subnet', 'I', 0), ('next_hop', 'I', 0), ('metric', 'I', 1))¶
-
addr
¶ Unpack field ondemand
-
family
¶ Unpack field ondemand
-
metric
¶ Unpack field ondemand
-
next_hop
¶ Unpack field ondemand
-
route_tag
¶ Unpack field ondemand
-
subnet
¶ Unpack field ondemand
-
pypacker.layer567.rtp module¶
Real-Time Transport Protocol
-
class
pypacker.layer567.rtp.
RTP
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('type', 'H', 32768), ('seq', 'H', 0), ('ts', 'I', 0), ('ssrc', 'I', 0))¶
-
cc
¶
-
getcc
()¶
-
getm
()¶
-
getp
()¶
-
getpt
()¶
-
getversion
()¶
-
getx
()¶
-
m
¶
-
p
¶
-
pt
¶
-
seq
¶ Unpack field ondemand
-
setcc
(value)¶
-
setm
(value)¶
-
setp
(value)¶
-
setpt
(value)¶
-
setversion
(value)¶
-
setx
(value)¶
-
ssrc
¶ Unpack field ondemand
-
ts
¶ Unpack field ondemand
-
type
¶ Unpack field ondemand
-
version
¶
-
x
¶
-
pypacker.layer567.sip module¶
Session Initiation Protocol.
-
class
pypacker.layer567.sip.
SIP
(*args, **kwargs)¶ Bases:
pypacker.layer567.http.HTTP
-
hdr
¶
-
sep
¶ Unpack field ondemand
-
startline
¶ Unpack field ondemand
-
pypacker.layer567.smb module¶
Server Message Block.
-
class
pypacker.layer567.smb.
SMB
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= [('proto', '4s', b''), ('cmd', 'B', 0), ('err', 'I', 0), ('flags1', 'B', 0), ('flags2', 'B', 0), ('pad', '6s', b''), ('tid', 'H', 0), ('pid', 'H', 0), ('uid', 'H', 0), ('mid', 'H', 0)]¶
-
cmd
¶ Unpack field ondemand
-
err
¶ Unpack field ondemand
-
flags1
¶ Unpack field ondemand
-
flags2
¶ Unpack field ondemand
-
mid
¶ Unpack field ondemand
-
pad
¶ Unpack field ondemand
-
pid
¶ Unpack field ondemand
-
proto
¶ Unpack field ondemand
-
tid
¶ Unpack field ondemand
-
uid
¶ Unpack field ondemand
-
pypacker.layer567.telnet module¶
Telnet.
-
class
pypacker.layer567.telnet.
Telnet
(*args, **kwargs)¶ Bases:
pypacker.pypacker.Packet
-
__hdr__
= (('telnet_data', None, <class 'pypacker.triggerlist.TriggerList'>),)¶
-
telnet_data
¶
-
-
pypacker.layer567.telnet.
strip_options
(buf)¶ Return a list of lines and dict of options from telnet data.
pypacker.layer567.tpkt module¶
ISO Transport Service on top of the TCP (TPKT).