diff --git a/scapy/contrib/HomePlugAV.py b/scapy/contrib/HomePlugAV.py index 76ebb95e467a529472f645f7eaa819817a60f3c0..7248d694a8a8e01b8d0257e7adab852470272499 100644 --- a/scapy/contrib/HomePlugAV.py +++ b/scapy/contrib/HomePlugAV.py @@ -1,3 +1,22 @@ +#! /usr/bin/env python + +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. + +# scapy.contrib.description = HomePlugAV Layer +# scapy.contrib.status = loads + from scapy.packet import * from scapy.fields import * from scapy.layers.l2 import Ether diff --git a/scapy/contrib/avs.py b/scapy/contrib/avs.py index 8f40aff1ec9c37bf69664ca0572bb62590398388..0188deb9d56b697e81ba0176582000d6e7f7fd4e 100644 --- a/scapy/contrib/avs.py +++ b/scapy/contrib/avs.py @@ -1,9 +1,21 @@ #! /usr/bin/env python -# http://trac.secdev.org/scapy/ticket/82 +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. # scapy.contrib.description = AVS WLAN Monitor Header -# scapy.contrib.status = loads +# scapy.contrib.status = untested from scapy.packet import * from scapy.fields import * diff --git a/scapy/contrib/bgp.py b/scapy/contrib/bgp.py index d24dd58eea3ca1d70b03382d923d5c90461e562e..c67a4db9d7dc3a8478f373142e34a49e19913091 100644 --- a/scapy/contrib/bgp.py +++ b/scapy/contrib/bgp.py @@ -1,7 +1,16 @@ # This file is part of Scapy -# See http://www.secdev.org/projects/scapy for more information -# Copyright (C) Philippe Biondi <phil@secdev.org> -# This program is published under a GPLv2 license +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. # scapy.contrib.description = BGP v0.1 # scapy.contrib.status = loads diff --git a/scapy/contrib/carp.py b/scapy/contrib/carp.py index 17fc37dfad9deab27f75785b7a266a2fc05a9f25..dc27b903f95fcd08c0793e0650ac27355428e667 100644 --- a/scapy/contrib/carp.py +++ b/scapy/contrib/carp.py @@ -1,6 +1,19 @@ +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. # scapy.contrib.description = CARP -# scapy.contrib.status = loads +# scapy.contrib.status = untested import struct, hmac, hashlib diff --git a/scapy/contrib/cdp.py b/scapy/contrib/cdp.py index 93d1ed868507ca6b49a4860ef659328e3e4d43df..aebc16b64d62081018901a095fec699d7ba34799 100644 --- a/scapy/contrib/cdp.py +++ b/scapy/contrib/cdp.py @@ -11,7 +11,8 @@ ## Arnaud Ebalard <arnaud.ebalard AT eads DOT net> ## ## EADS/CRC security team ## ## ## -## This program is free software; you can redistribute it and/or modify it ## +## This file is part of Scapy ## +## Scapy is free software: you can redistribute it and/or modify it ## ## under the terms of the GNU General Public License version 2 as ## ## published by the Free Software Foundation; version 2. ## ## ## diff --git a/scapy/contrib/chdlc.py b/scapy/contrib/chdlc.py index 6e48376226ad392e8908d79aa4057b48e040909e..9aaf73b94c548ae3df835a87916fa3dec493759d 100644 --- a/scapy/contrib/chdlc.py +++ b/scapy/contrib/chdlc.py @@ -1,7 +1,19 @@ -# http://trac.secdev.org/scapy/ticket/88 +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. # scapy.contrib.description = Cisco HDLC and SLARP -# scapy.contrib.status = loads +# scapy.contrib.status = untested # This layer is based on information from http://www.nethelp.no/net/cisco-hdlc.txt diff --git a/scapy/contrib/coap.py b/scapy/contrib/coap.py index aa2a1f6f719703213c75b2794d5e8bb9f9c37ab9..939aa53e6be0d9829539b43bc428f72b58ad0ea2 100644 --- a/scapy/contrib/coap.py +++ b/scapy/contrib/coap.py @@ -1,3 +1,5 @@ +#! /usr/bin/env python + # This file is part of Scapy. # See http://www.secdev.org/projects/scapy for more information. # @@ -16,6 +18,9 @@ # # Copyright (C) 2016 Anmol Sarma <me@anmolsarma.in> +# scapy.contrib.description = Constrained Application Protocol (CoAP) +# scapy.contrib.status = loads + """ RFC 7252 - Constrained Application Protocol (CoAP) layer for Scapy """ diff --git a/scapy/contrib/dtp.py b/scapy/contrib/dtp.py index 9996118aa0a91c1d1e5d53dae9ad078615c34130..05776582410d18a279aa08e8dae1aa1d018f86a4 100644 --- a/scapy/contrib/dtp.py +++ b/scapy/contrib/dtp.py @@ -1,7 +1,21 @@ #!/usr/bin/env python +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. + # scapy.contrib.description = DTP -# scapy.contrib.status = loads +# scapy.contrib.status = untested """ DTP Scapy Extension diff --git a/scapy/contrib/eigrp.py b/scapy/contrib/eigrp.py index 55b48f8d4f14846f24590babc4e376daf7a525d4..2c8196a2bbe7fa8a06ef3aa47fc121eae935ecf0 100644 --- a/scapy/contrib/eigrp.py +++ b/scapy/contrib/eigrp.py @@ -1,5 +1,19 @@ #!/usr/bin/env python +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. + # scapy.contrib.description = EIGRP # scapy.contrib.status = loads @@ -12,16 +26,6 @@ :e-mail: lobo@c3a.de / jochen.bartl@gmail.com :license: GPL v2 - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation; either version 2 - of the License, or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - :TODO - Replace TLV code with a more generic solution diff --git a/scapy/contrib/etherip.py b/scapy/contrib/etherip.py index e331c14671ddbdd6f8d9ccaf8d0b74542a9b52a2..610897189d1108a331abe0aadae2c01d5a30eb00 100644 --- a/scapy/contrib/etherip.py +++ b/scapy/contrib/etherip.py @@ -1,5 +1,16 @@ - -# http://trac.secdev.org/scapy/ticket/297 +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. # scapy.contrib.description = EtherIP # scapy.contrib.status = loads diff --git a/scapy/contrib/gsm_um.py b/scapy/contrib/gsm_um.py index 4d1bd33065cbcb634c13658484a18f66cc06d6cf..738e9e6db35f93a6fe710c6e85b62760a0824cc7 100644 --- a/scapy/contrib/gsm_um.py +++ b/scapy/contrib/gsm_um.py @@ -1,22 +1,21 @@ #!/usr/bin/env python -# scapy.contrib.description = PPI -# scapy.contrib.status = loads +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. -""" - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see <http://www.gnu.org/licenses/>. -""" +# scapy.contrib.description = PPI +# scapy.contrib.status = untested #################################################################### # This file holds the GSM UM interface implementation for Scapy # diff --git a/scapy/contrib/gtp_v2.py b/scapy/contrib/gtp_v2.py index f656b12110a5102f8041ef056f39e1eada7fd12c..b7ee9f3938c4c7bb11ad2f4068fd301f76a09ceb 100644 --- a/scapy/contrib/gtp_v2.py +++ b/scapy/contrib/gtp_v2.py @@ -2,8 +2,20 @@ # Copyright (C) 2017 Alessio Deiana <adeiana@gmail.com> # 2017 Alexis Sultan <alexis.sultan@sfr.com> -## -# This program is published under a GPLv2 license + +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. # scapy.contrib.description = GTPv2 # scapy.contrib.status = loads diff --git a/scapy/contrib/http2.py b/scapy/contrib/http2.py index 7c632856a3821cb91058b6905afa5f3c9438f472..9a6498fa24807163cf5e8dbd70af8256da1bcf37 100644 --- a/scapy/contrib/http2.py +++ b/scapy/contrib/http2.py @@ -6,7 +6,8 @@ ## ## ## Copyright (C) 2016 Florian Maury <florian.maury@ssi.gouv.fr> ## ## ## -## This program is free software; you can redistribute it and/or modify it ## +## This file is part of Scapy ## +## Scapy is free software: you can redistribute it and/or modify it ## ## under the terms of the GNU General Public License version 2 as ## ## published by the Free Software Foundation. ## ## ## diff --git a/scapy/contrib/icmp_extensions.py b/scapy/contrib/icmp_extensions.py index 3dcaf8d2bcce91332953c69ad0a1d0f4fab1ffed..ef73f0498744540290ca8131facd67bb886e4453 100644 --- a/scapy/contrib/icmp_extensions.py +++ b/scapy/contrib/icmp_extensions.py @@ -1,3 +1,22 @@ +#! /usr/bin/env python + +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. + +# scapy.contrib.description = ICMP Extensions +# scapy.contrib.status = untested + import scapy from scapy.packet import Packet, bind_layers from scapy.fields import * diff --git a/scapy/contrib/igmp.py b/scapy/contrib/igmp.py index 705e0de5f9c89559c91f0133931818f490ad860f..4af1640b0bb0f77f63199b23ce767ec81a400e04 100644 --- a/scapy/contrib/igmp.py +++ b/scapy/contrib/igmp.py @@ -1,7 +1,21 @@ #! /usr/bin/env python +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. + # scapy.contrib.description = IGMP/IGMPv2 -# scapy.contrib.status = loads +# scapy.contrib.status = untested # TODO: scapy 2 has function getmacbyip, maybe it can replace igmpize diff --git a/scapy/contrib/igmpv3.py b/scapy/contrib/igmpv3.py index e70372919890a3db98d7ab9c2c53effecc84580d..1542e30dee05c3803d7f17ecf04c611f651b86b5 100644 --- a/scapy/contrib/igmpv3.py +++ b/scapy/contrib/igmpv3.py @@ -1,9 +1,21 @@ #! /usr/bin/env python -# http://trac.secdev.org/scapy/ticket/31 +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. # scapy.contrib.description = IGMPv3 -# scapy.contrib.status = loads +# scapy.contrib.status = untested from scapy.packet import * from scapy.fields import * diff --git a/scapy/contrib/ikev2.py b/scapy/contrib/ikev2.py index 34d21da75c956c3e8628c4da8ff40fceea86dc4a..b4b7f7bab50f3e8b98f0de670d04894d34c124c1 100644 --- a/scapy/contrib/ikev2.py +++ b/scapy/contrib/ikev2.py @@ -1,9 +1,21 @@ #!/usr/bin/env python -# http://trac.secdev.org/scapy/ticket/353 +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. # scapy.contrib.description = IKEv2 -# scapy.contrib.status = loads +# scapy.contrib.status = untested import logging import struct diff --git a/scapy/contrib/isis.py b/scapy/contrib/isis.py index 3b7122e30b36b0d29ab213162fd941d78c728716..818acba883a72a4fe9b5e706e20dcb8a8995e2aa 100644 --- a/scapy/contrib/isis.py +++ b/scapy/contrib/isis.py @@ -1,3 +1,17 @@ +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. + # scapy.contrib.description = ISIS # scapy.contrib.status = loads diff --git a/scapy/contrib/ldp.py b/scapy/contrib/ldp.py index b27b39699166e681c418893d583e618a078d7b00..6340903b8002095b3c25def534b84d59c6a9e223 100644 --- a/scapy/contrib/ldp.py +++ b/scapy/contrib/ldp.py @@ -1,5 +1,5 @@ # scapy.contrib.description = Label Distribution Protocol (LDP) -# scapy.contrib.status = loads +# scapy.contrib.status = untested # http://git.savannah.gnu.org/cgit/ldpscapy.git/snapshot/ldpscapy-5285b81d6e628043df2a83301b292f24a95f0ba1.tar.gz diff --git a/scapy/contrib/modbus.py b/scapy/contrib/modbus.py index a6be7ff50fe1ab7314badf30285f17134b62bcd1..55640711894d5113457d8a66358fc47b299c9b92 100644 --- a/scapy/contrib/modbus.py +++ b/scapy/contrib/modbus.py @@ -14,6 +14,9 @@ # You should have received a copy of the GNU General Public License # along with Scapy. If not, see <http://www.gnu.org/licenses/>. +# scapy.contrib.description = ModBus Protocol +# scapy.contrib.status = loads + # Copyright (C) 2016 Arthur Gervais, Ken LE PRADO, Sébastien Mainand from scapy.packet import * diff --git a/scapy/contrib/mpls.py b/scapy/contrib/mpls.py index 6af1d4ac146087da84771c012495a741cd234f85..8041562a165517ef9d2bfa9a31b8872b8e7ed371 100644 --- a/scapy/contrib/mpls.py +++ b/scapy/contrib/mpls.py @@ -1,4 +1,16 @@ -# http://trac.secdev.org/scapy/ticket/31 +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. # scapy.contrib.description = MPLS # scapy.contrib.status = loads diff --git a/scapy/contrib/nsh.py b/scapy/contrib/nsh.py index 42c1f3a8d86adf587d5d3c25fc281381865f519e..86abe6e8e1a907ed8499530602f676f13a98d117 100644 --- a/scapy/contrib/nsh.py +++ b/scapy/contrib/nsh.py @@ -1,6 +1,20 @@ -#! /usr/bin/env python -# scapy.contrib.description = nsh +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. + +# scapy.contrib.description = NSH Protocol # scapy.contrib.status = loads + from scapy.all import bind_layers from scapy.fields import BitField, ByteField, ByteEnumField from scapy.fields import ShortField, X3BytesField, XIntField diff --git a/scapy/contrib/openflow.py b/scapy/contrib/openflow.py index 62c0f031d6d3199fef51d5baa9bd52dc7ec25893..0809ebe9c5d003834589c9cc52d988dd1b6eff09 100755 --- a/scapy/contrib/openflow.py +++ b/scapy/contrib/openflow.py @@ -8,7 +8,7 @@ ## Based on OpenFlow v1.0.1 ## Specifications can be retrieved from https://www.opennetworking.org/ -# scapy.contrib.description = openflow v1.0 +# scapy.contrib.description = Openflow v1.0 # scapy.contrib.status = loads import struct diff --git a/scapy/contrib/openflow3.py b/scapy/contrib/openflow3.py index df8ed5aab9ead909256f85ca7708366c57a2dd3b..0d8a6e6d7bf23440c3e41ee9cce56a4090b029eb 100755 --- a/scapy/contrib/openflow3.py +++ b/scapy/contrib/openflow3.py @@ -8,7 +8,7 @@ ## Based on OpenFlow v1.3.4 ## Specifications can be retrieved from https://www.opennetworking.org/ -# scapy.contrib.description = openflow v1.3 +# scapy.contrib.description = Openflow v1.3 # scapy.contrib.status = loads import struct diff --git a/scapy/contrib/ospf.py b/scapy/contrib/ospf.py index 15b2d5e9a22f87449f87a59ca05d58c1097478cb..e05c109b22f580543e8cea2b34af9b20de0dff4b 100644 --- a/scapy/contrib/ospf.py +++ b/scapy/contrib/ospf.py @@ -1,7 +1,21 @@ #!/usr/bin/env python # scapy.contrib.description = OSPF -# scapy.contrib.status = loads +# scapy.contrib.status = untested + +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. """ OSPF extension for Scapy <http://www.secdev.org/scapy> @@ -11,16 +25,6 @@ routing protocol as defined in RFC 2328 and RFC 5340. Copyright (c) 2008 Dirk Loss : mail dirk-loss de Copyright (c) 2010 Jochen Bartl : jochen.bartl gmail com - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. """ diff --git a/scapy/contrib/ppi.py b/scapy/contrib/ppi.py index 07fa6f13b1b3b4f9151ffb4ee4f43da8ba505c2d..95d39ed454f820016bbcda9fbb2451f8fd61c050 100644 --- a/scapy/contrib/ppi.py +++ b/scapy/contrib/ppi.py @@ -1,7 +1,18 @@ -## This file is (hopefully) part of Scapy -## See http://www.secdev.org/projects/scapy for more informations -## <jellch@harris.com> -## This program is published under a GPLv2 license +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. + +# author: <jellch@harris.com> # scapy.contrib.description = PPI # scapy.contrib.status = loads diff --git a/scapy/contrib/ppi_cace.py b/scapy/contrib/ppi_cace.py index dee51d10de465ab64486e20baf0df921547b324e..62df1f0e5df11571053aed4cb85257608cc3e395 100644 --- a/scapy/contrib/ppi_cace.py +++ b/scapy/contrib/ppi_cace.py @@ -1,10 +1,21 @@ -## This file is (hopefully) part of Scapy -## See http://www.secdev.org/projects/scapy for more informations -## <jellch@harris.com> -## This program is published under a GPLv2 license +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. + +# author: <jellch@harris.com> # scapy.contrib.description = PPI CACE -# scapy.contrib.status = loads +# scapy.contrib.status = untested """ CACE PPI types diff --git a/scapy/contrib/ppi_geotag.py b/scapy/contrib/ppi_geotag.py index 60a84571977750b75ad117cbf1e7b811ea8925aa..a7f30c984f5cc8d3c8db1d0952dd24fde2c98341 100644 --- a/scapy/contrib/ppi_geotag.py +++ b/scapy/contrib/ppi_geotag.py @@ -1,7 +1,18 @@ -## This file is (hopefully) part of Scapy -## See http://www.secdev.org/projects/scapy for more informations -## <jellch@harris.com> -## This program is published under a GPLv2 license +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. + +# author: <jellch@harris.com> # scapy.contrib.description = PPI GEOLOCATION # scapy.contrib.status = loads diff --git a/scapy/contrib/ripng.py b/scapy/contrib/ripng.py index 47e17bc4cd9ce76c8a2a849a4d5aaf3af682b507..584c3a32b13e1ea1d25e096ccdbb6fe7878f1923 100644 --- a/scapy/contrib/ripng.py +++ b/scapy/contrib/ripng.py @@ -1,9 +1,21 @@ #!/usr/bin/env python -# http://trac.secdev.org/scapy/ticket/301 +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. # scapy.contrib.description = RIPng -# scapy.contrib.status = loads +# scapy.contrib.status = untested from scapy.packet import * from scapy.fields import * diff --git a/scapy/contrib/rsvp.py b/scapy/contrib/rsvp.py index e2b1247e311c628f19056e233f5bf9317bb20eaa..c2e0a0dc4e10e247bb289de4d4a1a10c4c45529d 100644 --- a/scapy/contrib/rsvp.py +++ b/scapy/contrib/rsvp.py @@ -1,9 +1,21 @@ ## RSVP layer -# http://trac.secdev.org/scapy/ticket/197 +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. # scapy.contrib.description = RSVP -# scapy.contrib.status = loads +# scapy.contrib.status = untested from scapy.packet import * from scapy.fields import * diff --git a/scapy/contrib/send.py b/scapy/contrib/send.py index 676158a4373d2bec7443984cde3f90afe4897966..317563dc319fe51f4c10f319458ecb134cdebca8 100644 --- a/scapy/contrib/send.py +++ b/scapy/contrib/send.py @@ -1,12 +1,25 @@ #! /usr/bin/env python +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. + ## Copyright (C) 2009 Adline Stephane <adline.stephane@gmail.com> ## -## This program is published under a GPLv2 license # Partial support of RFC3971 -# scapy.contrib.description = SEND -# scapy.contrib.status = loads +# scapy.contrib.description = SEND (ICMPv6) +# scapy.contrib.status = untested import socket diff --git a/scapy/contrib/skinny.py b/scapy/contrib/skinny.py index 215602db9f97caba1af0f42d8567aefb0caecaa9..f3ca78f46fbdf6725dc9f82fe1a9965ea0b5b832 100644 --- a/scapy/contrib/skinny.py +++ b/scapy/contrib/skinny.py @@ -1,7 +1,7 @@ #! /usr/bin/env python # scapy.contrib.description = Skinny Call Control Protocol (SCCP) -# scapy.contrib.status = loads +# scapy.contrib.status = untested ############################################################################# @@ -11,7 +11,8 @@ ## Copyright (C) 2006 Nicolas Bareil <nicolas.bareil@ eads.net> ## ## EADS/CRC security team ## ## ## -## This program is free software; you can redistribute it and/or modify it ## +## This file is part of Scapy ## +## Scapy is free software: you can redistribute it and/or modify ## ## under the terms of the GNU General Public License version 2 as ## ## published by the Free Software Foundation; version 2. ## ## ## diff --git a/scapy/contrib/spbm.py b/scapy/contrib/spbm.py index 44ae942d3247791e3ec7989331f5fa2869295367..447bd218eab65ee315581130e71268a0cd91bc73 100644 --- a/scapy/contrib/spbm.py +++ b/scapy/contrib/spbm.py @@ -1,22 +1,40 @@ +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. + # IEEE 802.1aq - Shorest Path Bridging Mac-in-mac (SPBM): # Ethernet based link state protocol that enables Layer 2 Unicast, Layer 2 Multicast, Layer 3 Unicast, and Layer 3 Multicast virtualized services # https://en.wikipedia.org/wiki/IEEE_802.1aq # Modeled after the scapy VXLAN contribution -# -############################################################# -# Example SPB Frame Creation -# -# Note the outer Dot1Q Ethertype marking (0x88e7) -############################################################# -# backboneEther = Ether(dst='00:bb:00:00:90:00', src='00:bb:00:00:40:00', type=0x8100) -# backboneDot1Q = Dot1Q(vlan=4051,type=0x88e7) -# backboneServiceID = SPBM(prio=1,isid=20011) -# customerEther = Ether(dst='00:1b:4f:5e:ca:00',src='00:00:00:00:00:01',type=0x8100) -# customerDot1Q = Dot1Q(prio=1,vlan=11,type=0x0800) -# customerIP = IP(src='10.100.11.10',dst='10.100.12.10',id=0x0629,len=106) -# customerUDP = UDP(sport=1024,dport=1025,chksum=0,len=86) -# -# spb_example = backboneEther/backboneDot1Q/backboneServiceID/customerEther/customerDot1Q/customerIP/customerUDP/"Payload" + +# scapy.contrib.description = SBPM +# scapy.contrib.status = untested + +""" + Example SPB Frame Creation + + Note the outer Dot1Q Ethertype marking (0x88e7) + + backboneEther = Ether(dst='00:bb:00:00:90:00', src='00:bb:00:00:40:00', type=0x8100) + backboneDot1Q = Dot1Q(vlan=4051,type=0x88e7) + backboneServiceID = SPBM(prio=1,isid=20011) + customerEther = Ether(dst='00:1b:4f:5e:ca:00',src='00:00:00:00:00:01',type=0x8100) + customerDot1Q = Dot1Q(prio=1,vlan=11,type=0x0800) + customerIP = IP(src='10.100.11.10',dst='10.100.12.10',id=0x0629,len=106) + customerUDP = UDP(sport=1024,dport=1025,chksum=0,len=86) + + spb_example = backboneEther/backboneDot1Q/backboneServiceID/customerEther/customerDot1Q/customerIP/customerUDP/"Payload" +""" from scapy.packet import Packet, bind_layers from scapy.fields import * diff --git a/scapy/contrib/ubberlogger.py b/scapy/contrib/ubberlogger.py index 1c01db2f600e6884e1e08df8b7f3eadcdfe7dcfb..0809eea522bb18e2040bed9d4b037d55157f9c8b 100644 --- a/scapy/contrib/ubberlogger.py +++ b/scapy/contrib/ubberlogger.py @@ -1,5 +1,18 @@ +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. + # Author: Sylvain SARMEJEANNE -# http://trac.secdev.org/scapy/ticket/1 # scapy.contrib.description = Ubberlogger dissectors # scapy.contrib.status = untested diff --git a/scapy/contrib/vqp.py b/scapy/contrib/vqp.py index 9328cea45b5184e73993e055912504de77b98736..728f6227cb031a6b91df04bbef52276d7aebe804 100644 --- a/scapy/contrib/vqp.py +++ b/scapy/contrib/vqp.py @@ -1,8 +1,19 @@ - -# http://trac.secdev.org/scapy/ticket/147 +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. # scapy.contrib.description = VLAN Query Protocol -# scapy.contrib.status = loads +# scapy.contrib.status = untested from scapy.packet import * from scapy.fields import * diff --git a/scapy/contrib/vtp.py b/scapy/contrib/vtp.py index 8c6c8d01d5b2e68b8386606a42c808e84f172f9a..09572edc97c9dccdf6890927a402de2dbcfa6716 100644 --- a/scapy/contrib/vtp.py +++ b/scapy/contrib/vtp.py @@ -1,7 +1,19 @@ -#!/usr/bin/env python +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. # scapy.contrib.description = VLAN Trunking Protocol (VTP) -# scapy.contrib.status = loads +# scapy.contrib.status = untested """ VTP Scapy Extension diff --git a/scapy/contrib/wpa_eapol.py b/scapy/contrib/wpa_eapol.py index 084eedd827a38542ae8a198104284c7cd20f421c..a76b4ae8401f44c62905e033706f8b2d27689928 100644 --- a/scapy/contrib/wpa_eapol.py +++ b/scapy/contrib/wpa_eapol.py @@ -1,8 +1,19 @@ - -# http://trac.secdev.org/scapy/ticket/104 +# This file is part of Scapy +# Scapy is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# any later version. +# +# Scapy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Scapy. If not, see <http://www.gnu.org/licenses/>. # scapy.contrib.description = WPA EAPOL dissector -# scapy.contrib.status = loads +# scapy.contrib.status = untested from scapy.packet import * from scapy.fields import *