Scapy: the Python-based interactive packet manipulation program & library.
2209 matches across 14 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | .config/ci/openssl.py | 2 | # This file is part of Scapy |
| MEDIUM | .config/ci/install.sh | 4 | # This file is part of Scapy |
| MEDIUM | .config/ci/zipapp.sh | 4 | # This file is part of Scapy |
| MEDIUM | .config/ci/test.sh | 4 | # This file is part of Scapy |
| MEDIUM | .config/ci/openldap/install.sh | 4 | # This file is part of Scapy |
| MEDIUM | .config/mypy/mypy_check.py | 2 | # This file is part of Scapy |
| MEDIUM | .config/mypy/mypy_deployment_stats.py | 2 | # This file is part of Scapy |
| MEDIUM | test/testsocket.py | 2 | # This file is part of Scapy |
| MEDIUM | test/benchmark/latency_router.py | 2 | # This file is part of Scapy |
| MEDIUM | test/benchmark/common.py | 2 | # This file is part of Scapy |
| MEDIUM | test/benchmark/dissection_and_build.py | 2 | # This file is part of Scapy |
| MEDIUM | test/scapy/layers/tls/__init__.py | 2 | # This file is part of Scapy |
| MEDIUM | test/scapy/layers/tls/example_client.py | 4 | # This file is part of Scapy |
| MEDIUM | test/scapy/layers/tls/example_server.py | 4 | # This file is part of Scapy |
| MEDIUM | test/contrib/automotive/interface_mockup.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/themes.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/interfaces.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/sendrecv.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/pipetool.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/dadict.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/sessions.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/plist.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/asn1packet.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/config.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/config.py | 664 | # Create the extension |
| MEDIUM | scapy/compat.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/error.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/fields.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/fields.py | 1745 | default = [] # Create a new list for each instance |
| MEDIUM | scapy/fields.py | 2099 | default = [] # Create a new list for each instance |
| MEDIUM | scapy/pton_ntop.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/autorun.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/cborpacket.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/route.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/base_classes.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/ansmachine.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/fwdmachine.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/__init__.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/all.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/supersocket.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/supersocket.py | 299 | """This function is called during sendrecv() routine to select |
| MEDIUM | scapy/consts.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/asn1fields.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/utils.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/route6.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/packet.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/volatile.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/scapypipes.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/main.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/utils6.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/automaton.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/as_resolvers.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/__main__.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/data.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/asn1/mib.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/asn1/mib.py | 191 | # Create the new MIB |
| MEDIUM | scapy/asn1/__init__.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/asn1/ber.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/asn1/asn1.py | 2 | # This file is part of Scapy |
| MEDIUM | scapy/tools/generate_manuf.py | 2 | # This file is part of Scapy |
| 381 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/testsocket.py | 17 | |
| LOW | test/testsocket.py | 21 | |
| LOW | test/testsocket.py | 21 | |
| LOW | test/testsocket.py | 21 | |
| LOW | test/testsocket.py | 21 | |
| LOW | test/testsocket.py | 21 | |
| LOW | test/testsocket.py | 30 | |
| LOW | test/testsocket.py | 30 | |
| LOW | test/benchmark/latency_router.py | 9 | |
| LOW | test/benchmark/common.py | 12 | |
| LOW | test/benchmark/dissection_and_build.py | 6 | |
| LOW | test/scapy/layers/tls/example_client.py | 12 | |
| LOW | test/scapy/layers/tls/example_client.py | 17 | |
| LOW | test/scapy/layers/tls/example_server.py | 15 | |
| LOW | test/scapy/layers/tls/example_server.py | 16 | |
| LOW | test/scapy/layers/tls/example_server.py | 19 | |
| LOW | test/contrib/automotive/interface_mockup.py | 75 | |
| LOW | test/contrib/automotive/interface_mockup.py | 83 | |
| LOW | scapy/themes.py | 17 | |
| LOW | scapy/themes.py | 17 | |
| LOW | scapy/interfaces.py | 20 | |
| LOW | scapy/interfaces.py | 22 | |
| LOW | scapy/interfaces.py | 22 | |
| LOW | scapy/interfaces.py | 22 | |
| LOW | scapy/interfaces.py | 22 | |
| LOW | scapy/interfaces.py | 22 | |
| LOW | scapy/interfaces.py | 22 | |
| LOW | scapy/sendrecv.py | 30 | |
| LOW | scapy/sendrecv.py | 43 | |
| LOW | scapy/sendrecv.py | 43 | |
| LOW | scapy/sendrecv.py | 43 | |
| LOW | scapy/sendrecv.py | 43 | |
| LOW | scapy/sendrecv.py | 60 | |
| LOW | scapy/pipetool.py | 22 | |
| LOW | scapy/pipetool.py | 22 | |
| LOW | scapy/pipetool.py | 22 | |
| LOW | scapy/pipetool.py | 22 | |
| LOW | scapy/pipetool.py | 22 | |
| LOW | scapy/pipetool.py | 22 | |
| LOW | scapy/pipetool.py | 22 | |
| LOW | scapy/pipetool.py | 22 | |
| LOW | scapy/dadict.py | 14 | |
| LOW | scapy/dadict.py | 14 | |
| LOW | scapy/dadict.py | 14 | |
| LOW | scapy/dadict.py | 14 | |
| LOW | scapy/dadict.py | 14 | |
| LOW | scapy/dadict.py | 14 | |
| LOW | scapy/dadict.py | 14 | |
| LOW | scapy/dadict.py | 25 | |
| LOW | scapy/sessions.py | 19 | |
| LOW | scapy/sessions.py | 19 | |
| LOW | scapy/sessions.py | 19 | |
| LOW | scapy/sessions.py | 34 | |
| LOW | scapy/plist.py | 28 | |
| LOW | scapy/plist.py | 28 | |
| LOW | scapy/plist.py | 28 | |
| LOW | scapy/plist.py | 28 | |
| LOW | scapy/plist.py | 28 | |
| LOW | scapy/plist.py | 28 | |
| LOW | scapy/plist.py | 28 | |
| 694 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scapy/themes.py | 379 | |
| LOW | scapy/sendrecv.py | 374 | |
| LOW | scapy/sendrecv.py | 537 | |
| LOW | scapy/sendrecv.py | 617 | |
| LOW | scapy/sendrecv.py | 795 | |
| LOW | scapy/sendrecv.py | 1448 | |
| LOW | scapy/sendrecv.py | 120 | |
| LOW | scapy/sendrecv.py | 315 | |
| LOW | scapy/sendrecv.py | 1180 | |
| LOW | scapy/sendrecv.py | 1501 | |
| LOW | scapy/pipetool.py | 126 | |
| LOW | scapy/pipetool.py | 187 | |
| LOW | scapy/sessions.py | 262 | |
| LOW | scapy/plist.py | 513 | |
| LOW | scapy/plist.py | 615 | |
| LOW | scapy/plist.py | 658 | |
| LOW | scapy/plist.py | 744 | |
| LOW | scapy/plist.py | 621 | |
| LOW | scapy/config.py | 827 | |
| LOW | scapy/error.py | 48 | |
| LOW | scapy/fields.py | 490 | |
| LOW | scapy/fields.py | 531 | |
| LOW | scapy/fields.py | 852 | |
| LOW | scapy/fields.py | 944 | |
| LOW | scapy/fields.py | 982 | |
| LOW | scapy/fields.py | 1246 | |
| LOW | scapy/fields.py | 1756 | |
| LOW | scapy/fields.py | 1785 | |
| LOW | scapy/fields.py | 2521 | |
| LOW | scapy/fields.py | 2582 | |
| LOW | scapy/fields.py | 2597 | |
| LOW | scapy/fields.py | 2778 | |
| LOW | scapy/fields.py | 3300 | |
| LOW | scapy/fields.py | 3567 | |
| LOW | scapy/fields.py | 3588 | |
| LOW | scapy/fields.py | 3617 | |
| LOW | scapy/fields.py | 3871 | |
| LOW | scapy/pton_ntop.py | 25 | |
| LOW | scapy/autorun.py | 55 | |
| LOW | scapy/base_classes.py | 365 | |
| LOW | scapy/fwdmachine.py | 229 | |
| LOW | scapy/fwdmachine.py | 334 | |
| LOW | scapy/supersocket.py | 629 | |
| LOW | scapy/supersocket.py | 143 | |
| LOW | scapy/asn1fields.py | 713 | |
| LOW | scapy/asn1fields.py | 796 | |
| LOW | scapy/asn1fields.py | 860 | |
| LOW | scapy/utils.py | 401 | |
| LOW | scapy/utils.py | 1002 | |
| LOW | scapy/utils.py | 1114 | |
| LOW | scapy/utils.py | 2977 | |
| LOW | scapy/utils.py | 3306 | |
| LOW | scapy/utils.py | 3950 | |
| LOW | scapy/utils.py | 1414 | |
| LOW | scapy/utils.py | 1766 | |
| LOW | scapy/utils.py | 1794 | |
| LOW | scapy/utils.py | 2010 | |
| LOW | scapy/utils.py | 3792 | |
| LOW | scapy/utils.py | 3826 | |
| LOW | scapy/utils.py | 3875 | |
| 354 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | scapy/layers/smb2.py | 0 | util function to build the offset and populate the lengths |
| HIGH | scapy/layers/ntlm.py | 0 | util function to build the offset and populate the lengths |
| HIGH | scapy/layers/spnego.py | 0 | util function to build the offset and populate the lengths |
| HIGH | scapy/layers/msrpce/mspac.py | 0 | util function to build the offset and populate the lengths |
| HIGH | scapy/layers/ntlm.py | 0 | returns the maximum signature length. this will be used in auth_len in dcerpc5, and is necessary for pfc_support_header_ |
| HIGH | scapy/layers/gssapi.py | 0 | returns the maximum signature length. this will be used in auth_len in dcerpc5, and is necessary for pfc_support_header_ |
| HIGH | scapy/layers/msrpce/msnrpc.py | 0 | returns the maximum signature length. this will be used in auth_len in dcerpc5, and is necessary for pfc_support_header_ |
| HIGH | scapy/layers/tls/automaton_cli.py | 0 | xxx we should check the serverhello attributes for discrepancies with our own clienthello. |
| HIGH | scapy/layers/tls/automaton_cli.py | 0 | xxx we should check the serverhello attributes for discrepancies with our own clienthello. |
| HIGH | scapy/layers/tls/automaton_cli.py | 0 | xxx we should check the serverhello attributes for discrepancies with our own clienthello. |
| HIGH | scapy/layers/tls/automaton_cli.py | 0 | there is no proper way to end an sslv2 session. we try and send a 'goodbye' message as a substitute. |
| HIGH | scapy/layers/tls/automaton_srv.py | 0 | there is no proper way to end an sslv2 session. we try and send a 'goodbye' message as a substitute. |
| HIGH | scapy/layers/tls/automaton_srv.py | 0 | there is no proper way to end an sslv2 session. we try and send a 'goodbye' message as a substitute. |
| HIGH | scapy/layers/tls/crypto/cipher_aead.py | 0 | cipher classes are automatically registered through this metaclass. furthermore, their name attribute is extracted from |
| HIGH | scapy/layers/tls/crypto/cipher_stream.py | 0 | cipher classes are automatically registered through this metaclass. furthermore, their name attribute is extracted from |
| HIGH | scapy/layers/tls/crypto/cipher_block.py | 0 | cipher classes are automatically registered through this metaclass. furthermore, their name attribute is extracted from |
| HIGH | scapy/contrib/sdnv.py | 0 | .. centered:: notice this software/technical data was produced for the u.s. government under prime contract no. nasa-030 |
| HIGH | scapy/contrib/bp.py | 0 | .. centered:: notice this software/technical data was produced for the u.s. government under prime contract no. nasa-030 |
| HIGH | scapy/contrib/ltp.py | 0 | .. centered:: notice this software/technical data was produced for the u.s. government under prime contract no. nasa-030 |
| HIGH | scapy/contrib/http2.py | 0 | :param packet.packet|none pkt: the packet instance containing this field instance; probably unused # noqa: e501 :param i |
| HIGH | scapy/contrib/http2.py | 0 | :param packet.packet|none pkt: the packet instance containing this field instance; probably unused # noqa: e501 :param i |
| HIGH | scapy/contrib/http2.py | 0 | :param packet.packet|none pkt: the packet instance containing this field instance; probably unused # noqa: e501 :param i |
| HIGH | scapy/contrib/http2.py | 0 | :param packet.packet|none pkt: the packet instance containing this field instance; probably unused # noqa: e501 :param i |
| HIGH | scapy/contrib/http2.py | 0 | pre_dissect is filling the s_len property of this instance. this property is later used during the parsing of the hdrs p |
| HIGH | scapy/contrib/http2.py | 0 | pre_dissect is filling the s_len property of this instance. this property is later used during the parsing of the hdrs p |
| HIGH | scapy/contrib/http2.py | 0 | pre_dissect is filling the s_len property of this instance. this property is later used during the parsing of the hdrs p |
| HIGH | scapy/contrib/pnio_rpc.py | 0 | generate the response block of this request. careful: it only sets the fields which can be set from the request |
| HIGH | scapy/contrib/pnio_rpc.py | 0 | generate the response block of this request. careful: it only sets the fields which can be set from the request |
| HIGH | scapy/contrib/pnio_rpc.py | 0 | generate the response block of this request. careful: it only sets the fields which can be set from the request |
| HIGH | scapy/contrib/pnio_rpc.py | 0 | generate the response block of this request. careful: it only sets the fields which can be set from the request |
| HIGH | scapy/contrib/pnio_rpc.py | 0 | generate the response block of this request. careful: it only sets the fields which can be set from the request |
| HIGH | scapy/contrib/pnio_rpc.py | 0 | generate the response block of this request. careful: it only sets the fields which can be set from the request |
| HIGH | scapy/contrib/pnio_rpc.py | 0 | generate the response block of this request. careful: it only sets the fields which can be set from the request |
| HIGH | scapy/contrib/isotp/isotp_native_socket.py | 0 | receives a packet, then returns a tuple containing (cls, pkt_data, time) |
| HIGH | scapy/arch/libpcap.py | 0 | receives a packet, then returns a tuple containing (cls, pkt_data, time) |
| HIGH | scapy/arch/linux/__init__.py | 0 | receives a packet, then returns a tuple containing (cls, pkt_data, time) |
| HIGH | scapy/contrib/automotive/obd/__init__.py | 0 | package of contrib automotive obd specific modules that have to be loaded explicitly. |
| HIGH | scapy/contrib/automotive/obd/mid/__init__.py | 0 | package of contrib automotive obd specific modules that have to be loaded explicitly. |
| HIGH | scapy/contrib/automotive/obd/iid/__init__.py | 0 | package of contrib automotive obd specific modules that have to be loaded explicitly. |
| HIGH | scapy/contrib/automotive/obd/tid/__init__.py | 0 | package of contrib automotive obd specific modules that have to be loaded explicitly. |
| HIGH | scapy/contrib/automotive/obd/pid/__init__.py | 0 | package of contrib automotive obd specific modules that have to be loaded explicitly. |
| HIGH | scapy/contrib/rtps/rtps.py | 0 | real-time publish-subscribe protocol (rtps) dissection |
| HIGH | scapy/contrib/rtps/common_types.py | 0 | real-time publish-subscribe protocol (rtps) dissection |
| HIGH | scapy/contrib/rtps/__init__.py | 0 | real-time publish-subscribe protocol (rtps) dissection |
| HIGH | scapy/contrib/rtps/pid_types.py | 0 | real-time publish-subscribe protocol (rtps) dissection |
| HIGH | scapy/arch/unix.py | 0 | returns a list of 3-tuples of the form (addr, scope, iface) where 'addr' is the address of scope 'scope' associated to t |
| HIGH | scapy/arch/linux/rtnetlink.py | 0 | returns a list of 3-tuples of the form (addr, scope, iface) where 'addr' is the address of scope 'scope' associated to t |
| HIGH | scapy/arch/bpf/core.py | 0 | returns a list of 3-tuples of the form (addr, scope, iface) where 'addr' is the address of scope 'scope' associated to t |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 106 | except Exception: |
| LOW | test/contrib/automotive/interface_mockup.py | 64 | except Exception as e: |
| LOW | scapy/themes.py | 385 | except Exception: |
| LOW | scapy/sendrecv.py | 1364 | except Exception: |
| LOW | scapy/sendrecv.py | 1368 | except Exception as ex: |
| LOW | scapy/sendrecv.py | 1373 | except Exception as ex2: |
| LOW | scapy/sendrecv.py | 292 | except Exception: |
| LOW | scapy/sendrecv.py | 601 | except Exception: |
| LOW | scapy/sendrecv.py | 667 | except Exception as parse_exception: |
| LOW | scapy/sendrecv.py | 1169 | except Exception as ex: |
| LOW | scapy/sendrecv.py | 1510 | except Exception: |
| LOW | scapy/sendrecv.py | 1528 | except Exception: |
| LOW | scapy/pipetool.py | 156 | except Exception as e: |
| LOW | scapy/pipetool.py | 196 | except Exception: |
| LOW | scapy/plist.py | 494 | except Exception: |
| LOW | scapy/plist.py | 552 | except Exception: |
| LOW | scapy/config.py | 684 | except Exception as ex: |
| LOW | scapy/config.py | 777 | except Exception: |
| LOW | scapy/config.py | 796 | except Exception: |
| LOW | scapy/config.py | 816 | except Exception: |
| LOW | scapy/config.py | 1259 | except Exception: |
| LOW | scapy/fields.py | 881 | except Exception: |
| LOW | scapy/fields.py | 1615 | except Exception: |
| LOW | scapy/fields.py | 1817 | except Exception: |
| LOW | scapy/fields.py | 1904 | except Exception: |
| LOW | scapy/base_classes.py | 470 | except Exception: |
| LOW | scapy/ansmachine.py | 271 | except Exception: |
| LOW | scapy/fwdmachine.py | 175 | except Exception: |
| LOW | scapy/fwdmachine.py | 409 | except Exception as ex: |
| LOW | scapy/fwdmachine.py | 486 | except Exception as ex: |
| LOW | scapy/__init__.py | 164 | except Exception: |
| LOW | scapy/__init__.py | 174 | except Exception: |
| LOW | scapy/supersocket.py | 222 | except Exception: |
| LOW | scapy/supersocket.py | 386 | except Exception: |
| LOW | scapy/utils.py | 3435 | except Exception: |
| LOW | scapy/utils.py | 3438 | except Exception: |
| LOW | scapy/utils.py | 3445 | except Exception: |
| LOW | scapy/utils.py | 3448 | except Exception: |
| LOW | scapy/utils.py | 1070 | except Exception: |
| LOW | scapy/utils.py | 1576 | except Exception: |
| LOW | scapy/utils.py | 2064 | except Exception: |
| LOW | scapy/utils.py | 2789 | except Exception: |
| LOW | scapy/utils.py | 2916 | except Exception: |
| LOW | scapy/utils.py | 3289 | except Exception: |
| LOW | scapy/utils.py | 3530 | except Exception: |
| LOW | scapy/utils.py | 3937 | except Exception as ex: |
| LOW | scapy/utils.py | 3946 | except Exception as ex: |
| LOW | scapy/packet.py | 779 | except Exception as ex: |
| LOW | scapy/packet.py | 1043 | except Exception: |
| LOW | scapy/packet.py | 1127 | except Exception: |
| LOW | scapy/packet.py | 1684 | except Exception: |
| LOW | scapy/main.py | 77 | except Exception: |
| LOW | scapy/main.py | 128 | except Exception: |
| LOW | scapy/main.py | 190 | except Exception: |
| LOW | scapy/main.py | 326 | except Exception: |
| LOW | scapy/main.py | 454 | except Exception: |
| LOW | scapy/main.py | 880 | except Exception: |
| LOW | scapy/utils6.py | 254 | except Exception: |
| LOW | scapy/utils6.py | 333 | except Exception: |
| LOW | scapy/utils6.py | 352 | except Exception: |
| 157 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 95 | def _patched_apply_configuration(dist, filepath, *_): |
| LOW | test/contrib/automotive/interface_mockup.py | 38 | def test_and_setup_socket_can(iface_name): |
| LOW | scapy/fields.py | 1246 | def _build_config_representation(self, config): |
| LOW | scapy/autorun.py | 169 | def autorun_get_interactive_session(cmds, **kargs): |
| LOW | scapy/autorun.py | 198 | def autorun_get_interactive_live_session(cmds, **kargs): |
| LOW | scapy/autorun.py | 221 | def autorun_get_text_interactive_session(cmds, **kargs): |
| LOW | scapy/autorun.py | 232 | def autorun_get_live_interactive_session(cmds, **kargs): |
| LOW | scapy/autorun.py | 243 | def autorun_get_ansi_interactive_session(cmds, **kargs): |
| LOW | scapy/autorun.py | 254 | def autorun_get_html_interactive_session(cmds, **kargs): |
| LOW | scapy/autorun.py | 274 | def autorun_get_latex_interactive_session(cmds, **kargs): |
| LOW | scapy/__init__.py | 48 | def _version_from_git_archive(): |
| LOW | scapy/__init__.py | 82 | def _version_from_git_describe(): |
| LOW | scapy/packet.py | 725 | def _raw_packet_cache_field_value(self, fld, val, copy=False): |
| LOW | scapy/utils6.py | 41 | def construct_source_candidate_set( |
| LOW | scapy/utils6.py | 100 | def get_source_addr_from_candidate_set(dst, candidate_set): |
| LOW | scapy/automaton.py | 1496 | def remove_interception_points(self, *ipts): |
| LOW | scapy/tools/UTscapy.py | 504 | def filter_tests_keep_on_keywords(test_campaign, kw): |
| LOW | scapy/tools/UTscapy.py | 508 | def filter_tests_remove_on_keywords(test_campaign, kw): |
| LOW | scapy/layers/smbclient.py | 386 | def receive_negotiate_response(self, pkt): |
| LOW | scapy/layers/smbclient.py | 496 | def should_retry_without_blob(self, ssp_tuple): |
| LOW | scapy/layers/smbclient.py | 504 | def should_send_session_setup_request(self, ssp_tuple): |
| LOW | scapy/layers/smbclient.py | 517 | def send_setup_session_request(self, ssp_tuple): |
| LOW | scapy/layers/smbclient.py | 565 | def receive_session_setup_response(self, pkt): |
| LOW | scapy/layers/smbclient.py | 652 | def authenticated_post_actions(self): |
| LOW | scapy/layers/smbclient.py | 670 | def incoming_data_received_smb(self, pkt): |
| LOW | scapy/layers/smbclient.py | 689 | def outgoing_data_received_smb(self, fd): |
| LOW | scapy/layers/inet.py | 1450 | def _defrag_iter_and_check_offsets(frags): |
| LOW | scapy/layers/inet.py | 1569 | def _packetlist_timeskew_graph(self, ip, **kargs): |
| LOW | scapy/layers/lltd.py | 310 | def _register_lltd_specific_class(*attr_types): |
| LOW | scapy/layers/smbserver.py | 641 | def receive_setup_andx_request(self, pkt): |
| LOW | scapy/layers/smbserver.py | 837 | def receive_setup_andx_request_in_serving(self, pkt): |
| LOW | scapy/layers/smbserver.py | 854 | def send_tree_connect_response(self, pkt, tree_name): |
| LOW | scapy/layers/smbserver.py | 1167 | def send_create_file_response(self, pkt): |
| LOW | scapy/layers/smbserver.py | 1315 | def receive_change_notify_info(self, pkt): |
| LOW | scapy/layers/smbserver.py | 1320 | def send_change_notify_info_response(self, pkt): |
| LOW | scapy/layers/smbserver.py | 1332 | def receive_query_directory_info(self, pkt): |
| LOW | scapy/layers/smbserver.py | 1337 | def send_query_directory_response(self, pkt): |
| LOW | scapy/layers/smbserver.py | 1605 | def receive_tree_disconnect_request(self, pkt): |
| LOW | scapy/layers/smbserver.py | 1610 | def send_tree_disconnect_response(self, pkt): |
| LOW | scapy/layers/smbserver.py | 1627 | def send_notify_cancel_response(self, pkt): |
| LOW | scapy/layers/kerberos.py | 4180 | def receive_krb_error_tgs_req(self, pkt): |
| LOW | scapy/layers/radius.py | 641 | def compute_message_authenticator(radius_packet, packed_req_authenticator, |
| LOW | scapy/layers/bluetooth.py | 3366 | def build_set_advertising_data(self): |
| LOW | scapy/layers/dhcp6.py | 319 | def _just_guess_payload_class(cls, payload): |
| LOW | scapy/layers/dcerpc.py | 1276 | def register_dcerpc_interface(name, uuid, version, opnums): |
| LOW | scapy/layers/dcerpc.py | 3404 | def register_possible_payload(cls, pay): |
| LOW | scapy/layers/tls/handshake.py | 760 | def post_build_tls_session_update(self, msg_str): |
| LOW | scapy/layers/tls/handshake.py | 793 | def post_dissection_tls_session_update(self, msg_str): |
| LOW | scapy/layers/tls/handshake.py | 968 | def post_dissection_tls_session_update(self, msg_str): |
| LOW | scapy/layers/tls/handshake.py | 1005 | def post_dissection_tls_session_update(self, msg_str): |
| LOW | scapy/layers/tls/handshake.py | 1439 | def post_build_tls_session_update(self, msg_str): |
| LOW | scapy/layers/tls/handshake.py | 1459 | def post_dissection_tls_session_update(self, msg_str): |
| LOW | scapy/layers/tls/handshake.py | 1650 | def post_dissection_tls_session_update(self, msg_str): |
| LOW | scapy/layers/tls/handshake.py | 1704 | def post_dissection_tls_session_update(self, msg_str): |
| LOW | scapy/layers/tls/handshake.py | 1732 | def post_build_tls_session_update(self, msg_str): |
| LOW | scapy/layers/tls/handshake.py | 1740 | def post_dissection_tls_session_update(self, msg_str): |
| LOW | scapy/layers/tls/automaton_cli.py | 723 | def should_store_session_ticket_file(self): |
| LOW | scapy/layers/tls/session.py | 634 | def use_nss_master_secret_if_present(self) -> bool: |
| LOW | scapy/layers/tls/session.py | 643 | def compute_ms_and_derive_keys(self): |
| LOW | scapy/layers/tls/session.py | 1095 | def post_build_tls_session_update(self, msg_str): |
| 88 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | setup.py | 41 | |
| LOW | .config/ci/test.sh | 1 | #!/bin/bash |
| LOW | .config/mypy/mypy_check.py | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| LOW | scapy/config.py | 961 | ASN1_default_codec = None # type: 'scapy.asn1.asn1.ASN1Codec' |
| LOW | scapy/config.py | 1021 | #: When 1, print some TLS session secrets when they are computed, and |
| LOW | scapy/asn1fields.py | 421 | |
| LOW | scapy/route6.py | 301 | |
| LOW | scapy/asn1/ber.py | 181 | # For instance, with low-tag-number b'\x81', class would be 0b10 |
| LOW | scapy/layers/smb2.py | 4061 | # Note: impacket and wireshark get crazy on compounded+signature, but |
| LOW | scapy/layers/inet6.py | 1561 | # -> Y veiller dans le post_build si aucune n'est specifiee |
| LOW | scapy/layers/inet6.py | 1781 | 10: "ICMPv6NDOptTgtAddrList", |
| LOW | scapy/layers/inet6.py | 2341 | # in IPv6 class (Scapy6 modification when integrated) if : |
| LOW | scapy/layers/inet6.py | 2401 | # - IPv4 if acceptable for inet_pton(AF_INET, ): code is set to 2, |
| LOW | scapy/layers/quic.py | 341 | # bind_bottom_up(UDP, QUIC, sport=443) |
| LOW | scapy/layers/smbserver.py | 921 | # FSCTL_VALIDATE_NEGOTIATE_INFO |
| LOW | scapy/layers/ntp.py | 281 | ######################################################################### |
| LOW | scapy/layers/ntp.py | 361 | class NTPExtensions(Packet): |
| LOW | scapy/layers/ntp.py | 401 | # | Root Delay | |
| LOW | scapy/layers/ntp.py | 421 | # | | |
| LOW | scapy/layers/ntp.py | 1621 | ######################################################################### |
| LOW | scapy/layers/ntp.py | 1641 | # | | |
| LOW | scapy/layers/ntp.py | 1661 | # |
| LOW | scapy/layers/ntp.py | 1681 | # requested wasn't performed. |
| LOW | scapy/layers/ntp.py | 1701 | # must be exactly 40 octets in length. For responses the |
| LOW | scapy/layers/kerberos.py | 2141 | # 13: KDC_ERR_BADOPTION |
| LOW | scapy/layers/kerberos.py | 3741 | if self.additional_tickets: |
| LOW | scapy/layers/kerberos.py | 5321 | # Delegate TGT |
| LOW | scapy/layers/dhcp6.py | 501 | |
| LOW | scapy/layers/dhcp6.py | 521 | # . . |
| LOW | scapy/layers/dhcp6.py | 1141 | # les options preference |
| LOW | scapy/layers/dhcp6.py | 1181 | # - sent by client |
| LOW | scapy/layers/dhcp6.py | 1221 | name = "DHCPv6 Advertise Message" |
| LOW | scapy/layers/dhcp6.py | 1241 | # client to which the server has not sent a unicast option, the server |
| LOW | scapy/layers/dhcp6.py | 1261 | class DHCP6_Confirm(DHCP6): |
| LOW | scapy/layers/dhcp6.py | 1301 | # - the message must include a server identifier option |
| LOW | scapy/layers/dhcp6.py | 1361 | ##################################################################### |
| LOW | scapy/layers/dhcp6.py | 1381 | ##################################################################### |
| LOW | scapy/layers/dhcp6.py | 1421 | |
| LOW | scapy/layers/dhcp6.py | 1901 | elif msgtype == 5: # RENEW |
| LOW | scapy/layers/dhcp6.py | 1921 | # to its previous Renew message. |
| LOW | scapy/layers/netbios.py | 61 | ] |
| LOW | scapy/layers/dcerpc.py | 1821 | |
| LOW | scapy/layers/dcerpc.py | 1841 | # than inside the PACKET. This is faster to compute because whether a constructed type |
| LOW | scapy/layers/tls/handshake.py | 421 | hash_len = hkdf.hash.digest_size |
| LOW | scapy/layers/tls/automaton_cli.py | 721 | |
| LOW | scapy/layers/tls/session.py | 401 | # other messages in case of TLS 1.3. |
| LOW | scapy/layers/tls/session.py | 421 | self.server_key = None |
| LOW | scapy/layers/tls/extensions.py | 41 | from scapy.config import conf |
| LOW | scapy/layers/tls/record.py | 481 | self.tls_session.rcs.cipher.iv = iv |
| LOW | scapy/layers/tls/crypto/groups.py | 521 | # |
| LOW | scapy/layers/tls/crypto/groups.py | 541 | # else: |
| LOW | scapy/layers/tls/crypto/groups.py | 561 | # |
| LOW | scapy/layers/tls/crypto/groups.py | 581 | # x = pkcs_os2ip(x_bytes) % p |
| LOW | scapy/layers/tls/crypto/groups.py | 601 | # if isinstance(p, str): |
| LOW | scapy/layers/tls/crypto/groups.py | 621 | # _b = 7 |
| LOW | scapy/layers/tls/crypto/groups.py | 641 | # 23a62855 3168947d 59dcc912 04235137 7ac5fb32""") |
| LOW | scapy/layers/tls/crypto/groups.py | 661 | # generator = Point(curve, _Gx, _Gy, _r) |
| LOW | scapy/layers/tls/crypto/groups.py | 681 | # ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe |
| LOW | scapy/layers/tls/crypto/groups.py | 701 | # 2013481D 1F6E5377""") |
| LOW | scapy/layers/tls/crypto/groups.py | 721 | |
| 40 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | scapy/pipetool.py | 270 | s.push(msg) |
| HIGH | scapy/utils6.py | 315 | returned address are null). If a group id is provided through 'grpid' |
| HIGH | scapy/tools/UTscapy.py | 322 | "outputfile": null, |
| HIGH | scapy/tools/UTscapy.py | 325 | "num": null, |
| HIGH | scapy/layers/kerberos.py | 1625 | self.sname.toString(), |
| HIGH | scapy/layers/kerberos.py | 1828 | self.cname.toString(), |
| HIGH | scapy/layers/kerberos.py | 1842 | self.cname.toString(), |
| HIGH | scapy/layers/kerberos.py | 2286 | self.sname.toString(), |
| HIGH | scapy/layers/tls/crypto/prf.py | 97 | MD5(secret || SHA-1("A" || secret || seed)) || |
| HIGH | scapy/layers/tls/crypto/prf.py | 98 | MD5(secret || SHA-1("BB" || secret || seed)) || |
| HIGH | scapy/layers/tls/crypto/prf.py | 99 | MD5(secret || SHA-1("CCC" || secret || seed)) || ... |
| HIGH | scapy/cbor/cborfields.py | 410 | "Expected null, got %r" % obj) |
| HIGH | scapy/cbor/cborfields.py | 442 | "Expected undefined, got %r" % obj) |
| HIGH | scapy/contrib/isotp/isotp_utils.py | 101 | self.push(first_piece) |
| HIGH | scapy/contrib/isotp/isotp_utils.py | 283 | bucket.push(isotp_data) |
| HIGH | scapy/contrib/rtps/rtps.py | 232 | ~ SerializedData serializedData [only if D==1 || K==1] ~ |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scapy/route.py | 223 | # Check if source is 0.0.0.0. This is a 'via' route with no src. |
| LOW | scapy/fwdmachine.py | 283 | # Set SubjectPublicKeyInfo to the one from our private key |
| LOW | scapy/utils.py | 212 | # Close the file so something else can take it. |
| LOW | scapy/utils.py | 2769 | # Check if the type != 0x02, type Ethernet |
| LOW | scapy/utils6.py | 252 | # Set ifaceid to a binary form |
| LOW | scapy/asn1/mib.py | 168 | # Read the files |
| LOW | scapy/layers/smb2.py | 1087 | # Set SecuritySignature to nul |
| LOW | scapy/layers/smbclient.py | 1227 | # Check if target is IPv4 or IPv6 |
| LOW | scapy/layers/smbclient.py | 1632 | # Open file |
| LOW | scapy/layers/smbclient.py | 1653 | # Read the file |
| LOW | scapy/layers/smbclient.py | 1662 | # Close the file |
| LOW | scapy/layers/smbclient.py | 1673 | # Open file |
| LOW | scapy/layers/smbclient.py | 1692 | # Close the file |
| LOW | scapy/layers/smbclient.py | 1958 | # Open file |
| LOW | scapy/layers/smbclient.py | 1965 | # Close the file |
| LOW | scapy/layers/smbclient.py | 2001 | # Open file |
| LOW | scapy/layers/smbclient.py | 2027 | # Open file |
| LOW | scapy/layers/inet6.py | 4057 | # Check if this is an advertisement for a Default Router |
| LOW | scapy/layers/ldap.py | 1618 | # Check if we have a search response |
| LOW | scapy/layers/inet.py | 1265 | # Check if IP addresses match |
| LOW | scapy/layers/inet.py | 1269 | # Check if IP ids match |
| LOW | scapy/layers/inet.py | 1273 | # Check if IP protocols match |
| LOW | scapy/layers/dns.py | 1386 | # Check if the length is valid |
| LOW | scapy/layers/smbserver.py | 1212 | # Check if there is a Durable Handle Reconnect Request |
| LOW | scapy/layers/smbserver.py | 1387 | # Increment index |
| LOW | scapy/layers/smbserver.py | 1544 | # Write file |
| LOW | scapy/layers/smbserver.py | 1569 | # Read file and send content |
| LOW | scapy/layers/spnego.py | 755 | # Check if target is a hostname / Check IP |
| LOW | scapy/layers/http.py | 1015 | # Write file |
| LOW | scapy/layers/tls/handshake.py | 766 | # Check if the server early_data extension is present in |
| LOW | scapy/layers/tls/handshake.py | 798 | # Check if the server early_data extension is present in |
| LOW | scapy/layers/tls/automaton_cli.py | 1126 | # Check if DHE is need (both for out of band and resumption PSK) |
| LOW | scapy/layers/tls/cert.py | 1621 | # Check if this certificate matches the one we're looking at |
| LOW | scapy/layers/tls/automaton_srv.py | 622 | # Check if we have to send an HelloRetryRequest |
| LOW | scapy/layers/tls/automaton_srv.py | 1132 | # Check if there's a NewSessionTicket to send |
| LOW | scapy/cbor/cborcodec.py | 507 | # Check if obj is a CBOR object instance (for special cases like UNDEFINED) |
| LOW | scapy/contrib/cdp.py | 333 | # Check if field length is fixed (2 bytes) |
| LOW | scapy/contrib/cdp.py | 341 | # Check if field length is fixed (2 bytes) |
| LOW | scapy/contrib/coap_socket.py | 727 | # Assign payload to packet |
| LOW | scapy/contrib/diameter.py | 88 | if x & 15: # Check if reserved bits are used |
| LOW | scapy/contrib/diameter.py | 129 | if x & 31: # Check if reserved bits are used |
| LOW | scapy/contrib/diameter.py | 356 | # Check if vendor and code defined and fetch the corresponding AVP |
| LOW | scapy/arch/unix.py | 229 | # Check if it is a valid IPv6 address |
| LOW | scapy/arch/bpf/core.py | 119 | # Check if the interface can be used |
| LOW | scapy/arch/bpf/core.py | 127 | # Close the file descriptor |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | scapy/contrib/j1939.py | 71 | # --------------------------------------------------------------------------- |
| MEDIUM | scapy/contrib/j1939.py | 75 | # --------------------------------------------------------------------------- |
| MEDIUM | scapy/contrib/j1939.py | 164 | # --------------------------------------------------------------------------- |
| MEDIUM | scapy/contrib/j1939.py | 166 | # --------------------------------------------------------------------------- |
| MEDIUM | scapy/contrib/j1939.py | 238 | # --------------------------------------------------------------------------- |
| MEDIUM | scapy/contrib/j1939.py | 240 | # --------------------------------------------------------------------------- |
| MEDIUM | scapy/contrib/j1939.py | 292 | # --------------------------------------------------------------------------- |
| MEDIUM | scapy/contrib/j1939.py | 294 | # --------------------------------------------------------------------------- |
| MEDIUM | scapy/contrib/j1939.py | 336 | # ── first 32 bits: CAN flags(3) + J1939 identifier fields(29) ────── |
| MEDIUM | scapy/contrib/j1939.py | 345 | # ── standard CAN data-length + padding ──────────────────────────── |
| MEDIUM | scapy/contrib/j1939.py | 395 | # --------------------------------------------------------------------------- |
| MEDIUM | scapy/contrib/j1939.py | 397 | # --------------------------------------------------------------------------- |
| MEDIUM | scapy/contrib/j1939.py | 548 | # --------------------------------------------------------------------------- |
| MEDIUM | scapy/contrib/j1939.py | 550 | # --------------------------------------------------------------------------- |
| MEDIUM | scapy/contrib/rtps/rtps.py | 266 | # ------------------------------------- |
| MEDIUM | scapy/contrib/rtps/rtps.py | 496 | # ---------------------------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | scapy/layers/spnego.py | 936 | # resp.SecurityBlob.innerToken.token.mechTypes.insert( |
| CRITICAL | scapy/layers/kerberos.py | 3468 | pafastreq.armoredData.armor.armorValue.authenticator.encrypt( |
| CRITICAL | scapy/layers/tls/basefields.py | 172 | False in pkt.tls_session.rcs.cipher.ready.values() |
| CRITICAL | scapy/layers/tls/record.py | 150 | if False in pkt.tls_session.rcs.cipher.ready.values(): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | scapy/contrib/bfd.py | 150 | 7784, # seamless BFD |
| MEDIUM | scapy/libs/winpcapy.py | 655 | # return the error text pertaining to the last pcap library error. |
| LOW | scapy/arch/windows/structures.py | 224 | # for now, just use void * for pointers to unused structures |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .config/ci/install.sh | 8 | # Usage: |
| LOW | .config/ci/test.sh | 8 | # Usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scapy/layers/inet6.py | 4121 | The purpose of this function is to send provided RA message at layer 2 |