diff options
author | Othmar Gsenger <otti@anytun.org> | 2007-08-13 10:59:39 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2007-08-13 10:59:39 +0000 |
commit | 0aaf4a9bac20a57220ff6d5e8ab7d8abdc167d84 (patch) | |
tree | 63b266c5a708e954f225dc6b16dde102e2acdfd3 | |
parent | pcap (diff) |
scapy satp
-rwxr-xr-x | satp.py | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -0,0 +1,25 @@ +#! /usr/bin/env python + +# Set log level to benefit from Scapy warnings +import logging +logging.getLogger("scapy").setLevel(1) + +from scapy import * + +class SATP(Packet): + name = "SATP" + fields_desc = [ + IntField("seq", None), + ShortField("id", None) + ] + +layer_bonds += [ ( UDP, SATP, { "sport" : 4444, "dport" : 4444 }) ] + +for l in layer_bonds: + bind_layers(*l) +del(l) + + +if __name__ == "__main__": + interact(mydict=globals(), mybanner="Test add-on v3.14") + |