MCPcopy Create free account
hub / github.com/secdev/scapy / Parse

Class Parse

scapy/contrib/postgres.py:506–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504
505
506class Parse(_ZeroPadding):
507 name = "Parse Request"
508 fields_desc = [
509 ByteTagField(b"P"),
510 FieldLenField("len", None, fmt="I", adjust=lambda pkt, x: len(pkt) - 1),
511 StrNullField("destination", ""),
512 StrNullField("query", ""),
513 FieldLenField("num_param_dtypes", None, fmt="H", count_of="params"),
514 FieldListField(
515 "params",
516 [],
517 SignedIntField("param", None),
518 count_from=lambda pkt: pkt.num_param_dtypes,
519 ),
520 ]
521
522
523class Execute(_ZeroPadding):

Callers

nothing calls this directly

Calls 5

FieldLenFieldClass · 0.90
StrNullFieldClass · 0.90
FieldListFieldClass · 0.90
SignedIntFieldClass · 0.90
ByteTagFieldClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…