Repository Analysis

secdev/scapy

Scapy: the Python-based interactive packet manipulation program & library.

12.5 Low AI signal View on GitHub
12.5
Adjusted Score
12.5
Raw Score
100%
Time Factor
2026-05-30
Last Push
12,327
Stars
Python
Language
265,318
Lines of Code
440
Files
2209
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 4HIGH 64MEDIUM 473LOW 1668

Pattern Findings

2209 matches across 14 categories. Click a row to expand file-level details.

Self-Referential Comments441 hits · 1305 pts
SeverityFileLineSnippet
MEDIUM.config/ci/openssl.py2# This file is part of Scapy
MEDIUM.config/ci/install.sh4# This file is part of Scapy
MEDIUM.config/ci/zipapp.sh4# This file is part of Scapy
MEDIUM.config/ci/test.sh4# This file is part of Scapy
MEDIUM.config/ci/openldap/install.sh4# This file is part of Scapy
MEDIUM.config/mypy/mypy_check.py2# This file is part of Scapy
MEDIUM.config/mypy/mypy_deployment_stats.py2# This file is part of Scapy
MEDIUMtest/testsocket.py2# This file is part of Scapy
MEDIUMtest/benchmark/latency_router.py2# This file is part of Scapy
MEDIUMtest/benchmark/common.py2# This file is part of Scapy
MEDIUMtest/benchmark/dissection_and_build.py2# This file is part of Scapy
MEDIUMtest/scapy/layers/tls/__init__.py2# This file is part of Scapy
MEDIUMtest/scapy/layers/tls/example_client.py4# This file is part of Scapy
MEDIUMtest/scapy/layers/tls/example_server.py4# This file is part of Scapy
MEDIUMtest/contrib/automotive/interface_mockup.py2# This file is part of Scapy
MEDIUMscapy/themes.py2# This file is part of Scapy
MEDIUMscapy/interfaces.py2# This file is part of Scapy
MEDIUMscapy/sendrecv.py2# This file is part of Scapy
MEDIUMscapy/pipetool.py2# This file is part of Scapy
MEDIUMscapy/dadict.py2# This file is part of Scapy
MEDIUMscapy/sessions.py2# This file is part of Scapy
MEDIUMscapy/plist.py2# This file is part of Scapy
MEDIUMscapy/asn1packet.py2# This file is part of Scapy
MEDIUMscapy/config.py2# This file is part of Scapy
MEDIUMscapy/config.py664 # Create the extension
MEDIUMscapy/compat.py2# This file is part of Scapy
MEDIUMscapy/error.py2# This file is part of Scapy
MEDIUMscapy/fields.py2# This file is part of Scapy
MEDIUMscapy/fields.py1745 default = [] # Create a new list for each instance
MEDIUMscapy/fields.py2099 default = [] # Create a new list for each instance
MEDIUMscapy/pton_ntop.py2# This file is part of Scapy
MEDIUMscapy/autorun.py2# This file is part of Scapy
MEDIUMscapy/cborpacket.py2# This file is part of Scapy
MEDIUMscapy/route.py2# This file is part of Scapy
MEDIUMscapy/base_classes.py2# This file is part of Scapy
MEDIUMscapy/ansmachine.py2# This file is part of Scapy
MEDIUMscapy/fwdmachine.py2# This file is part of Scapy
MEDIUMscapy/__init__.py2# This file is part of Scapy
MEDIUMscapy/all.py2# This file is part of Scapy
MEDIUMscapy/supersocket.py2# This file is part of Scapy
MEDIUMscapy/supersocket.py299 """This function is called during sendrecv() routine to select
MEDIUMscapy/consts.py2# This file is part of Scapy
MEDIUMscapy/asn1fields.py2# This file is part of Scapy
MEDIUMscapy/utils.py2# This file is part of Scapy
MEDIUMscapy/route6.py2# This file is part of Scapy
MEDIUMscapy/packet.py2# This file is part of Scapy
MEDIUMscapy/volatile.py2# This file is part of Scapy
MEDIUMscapy/scapypipes.py2# This file is part of Scapy
MEDIUMscapy/main.py2# This file is part of Scapy
MEDIUMscapy/utils6.py2# This file is part of Scapy
MEDIUMscapy/automaton.py2# This file is part of Scapy
MEDIUMscapy/as_resolvers.py2# This file is part of Scapy
MEDIUMscapy/__main__.py2# This file is part of Scapy
MEDIUMscapy/data.py2# This file is part of Scapy
MEDIUMscapy/asn1/mib.py2# This file is part of Scapy
MEDIUMscapy/asn1/mib.py191 # Create the new MIB
MEDIUMscapy/asn1/__init__.py2# This file is part of Scapy
MEDIUMscapy/asn1/ber.py2# This file is part of Scapy
MEDIUMscapy/asn1/asn1.py2# This file is part of Scapy
MEDIUMscapy/tools/generate_manuf.py2# This file is part of Scapy
381 more matches not shown…
Unused Imports754 hits · 714 pts
SeverityFileLineSnippet
LOWtest/testsocket.py17
LOWtest/testsocket.py21
LOWtest/testsocket.py21
LOWtest/testsocket.py21
LOWtest/testsocket.py21
LOWtest/testsocket.py21
LOWtest/testsocket.py30
LOWtest/testsocket.py30
LOWtest/benchmark/latency_router.py9
LOWtest/benchmark/common.py12
LOWtest/benchmark/dissection_and_build.py6
LOWtest/scapy/layers/tls/example_client.py12
LOWtest/scapy/layers/tls/example_client.py17
LOWtest/scapy/layers/tls/example_server.py15
LOWtest/scapy/layers/tls/example_server.py16
LOWtest/scapy/layers/tls/example_server.py19
LOWtest/contrib/automotive/interface_mockup.py75
LOWtest/contrib/automotive/interface_mockup.py83
LOWscapy/themes.py17
LOWscapy/themes.py17
LOWscapy/interfaces.py20
LOWscapy/interfaces.py22
LOWscapy/interfaces.py22
LOWscapy/interfaces.py22
LOWscapy/interfaces.py22
LOWscapy/interfaces.py22
LOWscapy/interfaces.py22
LOWscapy/sendrecv.py30
LOWscapy/sendrecv.py43
LOWscapy/sendrecv.py43
LOWscapy/sendrecv.py43
LOWscapy/sendrecv.py43
LOWscapy/sendrecv.py60
LOWscapy/pipetool.py22
LOWscapy/pipetool.py22
LOWscapy/pipetool.py22
LOWscapy/pipetool.py22
LOWscapy/pipetool.py22
LOWscapy/pipetool.py22
LOWscapy/pipetool.py22
LOWscapy/pipetool.py22
LOWscapy/dadict.py14
LOWscapy/dadict.py14
LOWscapy/dadict.py14
LOWscapy/dadict.py14
LOWscapy/dadict.py14
LOWscapy/dadict.py14
LOWscapy/dadict.py14
LOWscapy/dadict.py25
LOWscapy/sessions.py19
LOWscapy/sessions.py19
LOWscapy/sessions.py19
LOWscapy/sessions.py34
LOWscapy/plist.py28
LOWscapy/plist.py28
LOWscapy/plist.py28
LOWscapy/plist.py28
LOWscapy/plist.py28
LOWscapy/plist.py28
LOWscapy/plist.py28
694 more matches not shown…
Deep Nesting414 hits · 382 pts
SeverityFileLineSnippet
LOWscapy/themes.py379
LOWscapy/sendrecv.py374
LOWscapy/sendrecv.py537
LOWscapy/sendrecv.py617
LOWscapy/sendrecv.py795
LOWscapy/sendrecv.py1448
LOWscapy/sendrecv.py120
LOWscapy/sendrecv.py315
LOWscapy/sendrecv.py1180
LOWscapy/sendrecv.py1501
LOWscapy/pipetool.py126
LOWscapy/pipetool.py187
LOWscapy/sessions.py262
LOWscapy/plist.py513
LOWscapy/plist.py615
LOWscapy/plist.py658
LOWscapy/plist.py744
LOWscapy/plist.py621
LOWscapy/config.py827
LOWscapy/error.py48
LOWscapy/fields.py490
LOWscapy/fields.py531
LOWscapy/fields.py852
LOWscapy/fields.py944
LOWscapy/fields.py982
LOWscapy/fields.py1246
LOWscapy/fields.py1756
LOWscapy/fields.py1785
LOWscapy/fields.py2521
LOWscapy/fields.py2582
LOWscapy/fields.py2597
LOWscapy/fields.py2778
LOWscapy/fields.py3300
LOWscapy/fields.py3567
LOWscapy/fields.py3588
LOWscapy/fields.py3617
LOWscapy/fields.py3871
LOWscapy/pton_ntop.py25
LOWscapy/autorun.py55
LOWscapy/base_classes.py365
LOWscapy/fwdmachine.py229
LOWscapy/fwdmachine.py334
LOWscapy/supersocket.py629
LOWscapy/supersocket.py143
LOWscapy/asn1fields.py713
LOWscapy/asn1fields.py796
LOWscapy/asn1fields.py860
LOWscapy/utils.py401
LOWscapy/utils.py1002
LOWscapy/utils.py1114
LOWscapy/utils.py2977
LOWscapy/utils.py3306
LOWscapy/utils.py3950
LOWscapy/utils.py1414
LOWscapy/utils.py1766
LOWscapy/utils.py1794
LOWscapy/utils.py2010
LOWscapy/utils.py3792
LOWscapy/utils.py3826
LOWscapy/utils.py3875
354 more matches not shown…
Cross-File Repetition48 hits · 240 pts
SeverityFileLineSnippet
HIGHscapy/layers/smb2.py0util function to build the offset and populate the lengths
HIGHscapy/layers/ntlm.py0util function to build the offset and populate the lengths
HIGHscapy/layers/spnego.py0util function to build the offset and populate the lengths
HIGHscapy/layers/msrpce/mspac.py0util function to build the offset and populate the lengths
HIGHscapy/layers/ntlm.py0returns the maximum signature length. this will be used in auth_len in dcerpc5, and is necessary for pfc_support_header_
HIGHscapy/layers/gssapi.py0returns the maximum signature length. this will be used in auth_len in dcerpc5, and is necessary for pfc_support_header_
HIGHscapy/layers/msrpce/msnrpc.py0returns the maximum signature length. this will be used in auth_len in dcerpc5, and is necessary for pfc_support_header_
HIGHscapy/layers/tls/automaton_cli.py0xxx we should check the serverhello attributes for discrepancies with our own clienthello.
HIGHscapy/layers/tls/automaton_cli.py0xxx we should check the serverhello attributes for discrepancies with our own clienthello.
HIGHscapy/layers/tls/automaton_cli.py0xxx we should check the serverhello attributes for discrepancies with our own clienthello.
HIGHscapy/layers/tls/automaton_cli.py0there is no proper way to end an sslv2 session. we try and send a 'goodbye' message as a substitute.
HIGHscapy/layers/tls/automaton_srv.py0there is no proper way to end an sslv2 session. we try and send a 'goodbye' message as a substitute.
HIGHscapy/layers/tls/automaton_srv.py0there is no proper way to end an sslv2 session. we try and send a 'goodbye' message as a substitute.
HIGHscapy/layers/tls/crypto/cipher_aead.py0cipher classes are automatically registered through this metaclass. furthermore, their name attribute is extracted from
HIGHscapy/layers/tls/crypto/cipher_stream.py0cipher classes are automatically registered through this metaclass. furthermore, their name attribute is extracted from
HIGHscapy/layers/tls/crypto/cipher_block.py0cipher classes are automatically registered through this metaclass. furthermore, their name attribute is extracted from
HIGHscapy/contrib/sdnv.py0.. centered:: notice this software/technical data was produced for the u.s. government under prime contract no. nasa-030
HIGHscapy/contrib/bp.py0.. centered:: notice this software/technical data was produced for the u.s. government under prime contract no. nasa-030
HIGHscapy/contrib/ltp.py0.. centered:: notice this software/technical data was produced for the u.s. government under prime contract no. nasa-030
HIGHscapy/contrib/http2.py0:param packet.packet|none pkt: the packet instance containing this field instance; probably unused # noqa: e501 :param i
HIGHscapy/contrib/http2.py0:param packet.packet|none pkt: the packet instance containing this field instance; probably unused # noqa: e501 :param i
HIGHscapy/contrib/http2.py0:param packet.packet|none pkt: the packet instance containing this field instance; probably unused # noqa: e501 :param i
HIGHscapy/contrib/http2.py0:param packet.packet|none pkt: the packet instance containing this field instance; probably unused # noqa: e501 :param i
HIGHscapy/contrib/http2.py0pre_dissect is filling the s_len property of this instance. this property is later used during the parsing of the hdrs p
HIGHscapy/contrib/http2.py0pre_dissect is filling the s_len property of this instance. this property is later used during the parsing of the hdrs p
HIGHscapy/contrib/http2.py0pre_dissect is filling the s_len property of this instance. this property is later used during the parsing of the hdrs p
HIGHscapy/contrib/pnio_rpc.py0generate the response block of this request. careful: it only sets the fields which can be set from the request
HIGHscapy/contrib/pnio_rpc.py0generate the response block of this request. careful: it only sets the fields which can be set from the request
HIGHscapy/contrib/pnio_rpc.py0generate the response block of this request. careful: it only sets the fields which can be set from the request
HIGHscapy/contrib/pnio_rpc.py0generate the response block of this request. careful: it only sets the fields which can be set from the request
HIGHscapy/contrib/pnio_rpc.py0generate the response block of this request. careful: it only sets the fields which can be set from the request
HIGHscapy/contrib/pnio_rpc.py0generate the response block of this request. careful: it only sets the fields which can be set from the request
HIGHscapy/contrib/pnio_rpc.py0generate the response block of this request. careful: it only sets the fields which can be set from the request
HIGHscapy/contrib/isotp/isotp_native_socket.py0receives a packet, then returns a tuple containing (cls, pkt_data, time)
HIGHscapy/arch/libpcap.py0receives a packet, then returns a tuple containing (cls, pkt_data, time)
HIGHscapy/arch/linux/__init__.py0receives a packet, then returns a tuple containing (cls, pkt_data, time)
HIGHscapy/contrib/automotive/obd/__init__.py0package of contrib automotive obd specific modules that have to be loaded explicitly.
HIGHscapy/contrib/automotive/obd/mid/__init__.py0package of contrib automotive obd specific modules that have to be loaded explicitly.
HIGHscapy/contrib/automotive/obd/iid/__init__.py0package of contrib automotive obd specific modules that have to be loaded explicitly.
HIGHscapy/contrib/automotive/obd/tid/__init__.py0package of contrib automotive obd specific modules that have to be loaded explicitly.
HIGHscapy/contrib/automotive/obd/pid/__init__.py0package of contrib automotive obd specific modules that have to be loaded explicitly.
HIGHscapy/contrib/rtps/rtps.py0real-time publish-subscribe protocol (rtps) dissection
HIGHscapy/contrib/rtps/common_types.py0real-time publish-subscribe protocol (rtps) dissection
HIGHscapy/contrib/rtps/__init__.py0real-time publish-subscribe protocol (rtps) dissection
HIGHscapy/contrib/rtps/pid_types.py0real-time publish-subscribe protocol (rtps) dissection
HIGHscapy/arch/unix.py0returns a list of 3-tuples of the form (addr, scope, iface) where 'addr' is the address of scope 'scope' associated to t
HIGHscapy/arch/linux/rtnetlink.py0returns a list of 3-tuples of the form (addr, scope, iface) where 'addr' is the address of scope 'scope' associated to t
HIGHscapy/arch/bpf/core.py0returns a list of 3-tuples of the form (addr, scope, iface) where 'addr' is the address of scope 'scope' associated to t
Excessive Try-Catch Wrapping217 hits · 232 pts
SeverityFileLineSnippet
LOWsetup.py106except Exception:
LOWtest/contrib/automotive/interface_mockup.py64 except Exception as e:
LOWscapy/themes.py385 except Exception:
LOWscapy/sendrecv.py1364 except Exception:
LOWscapy/sendrecv.py1368 except Exception as ex:
LOWscapy/sendrecv.py1373 except Exception as ex2:
LOWscapy/sendrecv.py292 except Exception:
LOWscapy/sendrecv.py601 except Exception:
LOWscapy/sendrecv.py667 except Exception as parse_exception:
LOWscapy/sendrecv.py1169 except Exception as ex:
LOWscapy/sendrecv.py1510 except Exception:
LOWscapy/sendrecv.py1528 except Exception:
LOWscapy/pipetool.py156 except Exception as e:
LOWscapy/pipetool.py196 except Exception:
LOWscapy/plist.py494 except Exception:
LOWscapy/plist.py552 except Exception:
LOWscapy/config.py684 except Exception as ex:
LOWscapy/config.py777 except Exception:
LOWscapy/config.py796 except Exception:
LOWscapy/config.py816 except Exception:
LOWscapy/config.py1259 except Exception:
LOWscapy/fields.py881 except Exception:
LOWscapy/fields.py1615 except Exception:
LOWscapy/fields.py1817 except Exception:
LOWscapy/fields.py1904 except Exception:
LOWscapy/base_classes.py470 except Exception:
LOWscapy/ansmachine.py271 except Exception:
LOWscapy/fwdmachine.py175 except Exception:
LOWscapy/fwdmachine.py409 except Exception as ex:
LOWscapy/fwdmachine.py486 except Exception as ex:
LOWscapy/__init__.py164 except Exception:
LOWscapy/__init__.py174 except Exception:
LOWscapy/supersocket.py222 except Exception:
LOWscapy/supersocket.py386 except Exception:
LOWscapy/utils.py3435 except Exception:
LOWscapy/utils.py3438 except Exception:
LOWscapy/utils.py3445 except Exception:
LOWscapy/utils.py3448 except Exception:
LOWscapy/utils.py1070 except Exception:
LOWscapy/utils.py1576 except Exception:
LOWscapy/utils.py2064 except Exception:
LOWscapy/utils.py2789 except Exception:
LOWscapy/utils.py2916 except Exception:
LOWscapy/utils.py3289 except Exception:
LOWscapy/utils.py3530 except Exception:
LOWscapy/utils.py3937 except Exception as ex:
LOWscapy/utils.py3946 except Exception as ex:
LOWscapy/packet.py779 except Exception as ex:
LOWscapy/packet.py1043 except Exception:
LOWscapy/packet.py1127 except Exception:
LOWscapy/packet.py1684 except Exception:
LOWscapy/main.py77 except Exception:
LOWscapy/main.py128 except Exception:
LOWscapy/main.py190 except Exception:
LOWscapy/main.py326 except Exception:
LOWscapy/main.py454 except Exception:
LOWscapy/main.py880 except Exception:
LOWscapy/utils6.py254 except Exception:
LOWscapy/utils6.py333 except Exception:
LOWscapy/utils6.py352 except Exception:
157 more matches not shown…
Hyper-Verbose Identifiers148 hits · 145 pts
SeverityFileLineSnippet
LOWsetup.py95 def _patched_apply_configuration(dist, filepath, *_):
LOWtest/contrib/automotive/interface_mockup.py38def test_and_setup_socket_can(iface_name):
LOWscapy/fields.py1246 def _build_config_representation(self, config):
LOWscapy/autorun.py169def autorun_get_interactive_session(cmds, **kargs):
LOWscapy/autorun.py198def autorun_get_interactive_live_session(cmds, **kargs):
LOWscapy/autorun.py221def autorun_get_text_interactive_session(cmds, **kargs):
LOWscapy/autorun.py232def autorun_get_live_interactive_session(cmds, **kargs):
LOWscapy/autorun.py243def autorun_get_ansi_interactive_session(cmds, **kargs):
LOWscapy/autorun.py254def autorun_get_html_interactive_session(cmds, **kargs):
LOWscapy/autorun.py274def autorun_get_latex_interactive_session(cmds, **kargs):
LOWscapy/__init__.py48def _version_from_git_archive():
LOWscapy/__init__.py82def _version_from_git_describe():
LOWscapy/packet.py725 def _raw_packet_cache_field_value(self, fld, val, copy=False):
LOWscapy/utils6.py41def construct_source_candidate_set(
LOWscapy/utils6.py100def get_source_addr_from_candidate_set(dst, candidate_set):
LOWscapy/automaton.py1496 def remove_interception_points(self, *ipts):
LOWscapy/tools/UTscapy.py504def filter_tests_keep_on_keywords(test_campaign, kw):
LOWscapy/tools/UTscapy.py508def filter_tests_remove_on_keywords(test_campaign, kw):
LOWscapy/layers/smbclient.py386 def receive_negotiate_response(self, pkt):
LOWscapy/layers/smbclient.py496 def should_retry_without_blob(self, ssp_tuple):
LOWscapy/layers/smbclient.py504 def should_send_session_setup_request(self, ssp_tuple):
LOWscapy/layers/smbclient.py517 def send_setup_session_request(self, ssp_tuple):
LOWscapy/layers/smbclient.py565 def receive_session_setup_response(self, pkt):
LOWscapy/layers/smbclient.py652 def authenticated_post_actions(self):
LOWscapy/layers/smbclient.py670 def incoming_data_received_smb(self, pkt):
LOWscapy/layers/smbclient.py689 def outgoing_data_received_smb(self, fd):
LOWscapy/layers/inet.py1450def _defrag_iter_and_check_offsets(frags):
LOWscapy/layers/inet.py1569def _packetlist_timeskew_graph(self, ip, **kargs):
LOWscapy/layers/lltd.py310def _register_lltd_specific_class(*attr_types):
LOWscapy/layers/smbserver.py641 def receive_setup_andx_request(self, pkt):
LOWscapy/layers/smbserver.py837 def receive_setup_andx_request_in_serving(self, pkt):
LOWscapy/layers/smbserver.py854 def send_tree_connect_response(self, pkt, tree_name):
LOWscapy/layers/smbserver.py1167 def send_create_file_response(self, pkt):
LOWscapy/layers/smbserver.py1315 def receive_change_notify_info(self, pkt):
LOWscapy/layers/smbserver.py1320 def send_change_notify_info_response(self, pkt):
LOWscapy/layers/smbserver.py1332 def receive_query_directory_info(self, pkt):
LOWscapy/layers/smbserver.py1337 def send_query_directory_response(self, pkt):
LOWscapy/layers/smbserver.py1605 def receive_tree_disconnect_request(self, pkt):
LOWscapy/layers/smbserver.py1610 def send_tree_disconnect_response(self, pkt):
LOWscapy/layers/smbserver.py1627 def send_notify_cancel_response(self, pkt):
LOWscapy/layers/kerberos.py4180 def receive_krb_error_tgs_req(self, pkt):
LOWscapy/layers/radius.py641 def compute_message_authenticator(radius_packet, packed_req_authenticator,
LOWscapy/layers/bluetooth.py3366 def build_set_advertising_data(self):
LOWscapy/layers/dhcp6.py319 def _just_guess_payload_class(cls, payload):
LOWscapy/layers/dcerpc.py1276def register_dcerpc_interface(name, uuid, version, opnums):
LOWscapy/layers/dcerpc.py3404 def register_possible_payload(cls, pay):
LOWscapy/layers/tls/handshake.py760 def post_build_tls_session_update(self, msg_str):
LOWscapy/layers/tls/handshake.py793 def post_dissection_tls_session_update(self, msg_str):
LOWscapy/layers/tls/handshake.py968 def post_dissection_tls_session_update(self, msg_str):
LOWscapy/layers/tls/handshake.py1005 def post_dissection_tls_session_update(self, msg_str):
LOWscapy/layers/tls/handshake.py1439 def post_build_tls_session_update(self, msg_str):
LOWscapy/layers/tls/handshake.py1459 def post_dissection_tls_session_update(self, msg_str):
LOWscapy/layers/tls/handshake.py1650 def post_dissection_tls_session_update(self, msg_str):
LOWscapy/layers/tls/handshake.py1704 def post_dissection_tls_session_update(self, msg_str):
LOWscapy/layers/tls/handshake.py1732 def post_build_tls_session_update(self, msg_str):
LOWscapy/layers/tls/handshake.py1740 def post_dissection_tls_session_update(self, msg_str):
LOWscapy/layers/tls/automaton_cli.py723 def should_store_session_ticket_file(self):
LOWscapy/layers/tls/session.py634 def use_nss_master_secret_if_present(self) -> bool:
LOWscapy/layers/tls/session.py643 def compute_ms_and_derive_keys(self):
LOWscapy/layers/tls/session.py1095 def post_build_tls_session_update(self, msg_str):
88 more matches not shown…
Over-Commented Block100 hits · 100 pts
SeverityFileLineSnippet
LOWsetup.py41
LOW.config/ci/test.sh1#!/bin/bash
LOW.config/mypy/mypy_check.py1# SPDX-License-Identifier: GPL-2.0-only
LOWscapy/config.py961 ASN1_default_codec = None # type: 'scapy.asn1.asn1.ASN1Codec'
LOWscapy/config.py1021 #: When 1, print some TLS session secrets when they are computed, and
LOWscapy/asn1fields.py421
LOWscapy/route6.py301
LOWscapy/asn1/ber.py181 # For instance, with low-tag-number b'\x81', class would be 0b10
LOWscapy/layers/smb2.py4061 # Note: impacket and wireshark get crazy on compounded+signature, but
LOWscapy/layers/inet6.py1561# -> Y veiller dans le post_build si aucune n'est specifiee
LOWscapy/layers/inet6.py1781 10: "ICMPv6NDOptTgtAddrList",
LOWscapy/layers/inet6.py2341# in IPv6 class (Scapy6 modification when integrated) if :
LOWscapy/layers/inet6.py2401# - IPv4 if acceptable for inet_pton(AF_INET, ): code is set to 2,
LOWscapy/layers/quic.py341# bind_bottom_up(UDP, QUIC, sport=443)
LOWscapy/layers/smbserver.py921 # FSCTL_VALIDATE_NEGOTIATE_INFO
LOWscapy/layers/ntp.py281 #########################################################################
LOWscapy/layers/ntp.py361class NTPExtensions(Packet):
LOWscapy/layers/ntp.py401 # | Root Delay |
LOWscapy/layers/ntp.py421 # | |
LOWscapy/layers/ntp.py1621 #########################################################################
LOWscapy/layers/ntp.py1641 # | |
LOWscapy/layers/ntp.py1661 #
LOWscapy/layers/ntp.py1681 # requested wasn't performed.
LOWscapy/layers/ntp.py1701 # must be exactly 40 octets in length. For responses the
LOWscapy/layers/kerberos.py2141 # 13: KDC_ERR_BADOPTION
LOWscapy/layers/kerberos.py3741 if self.additional_tickets:
LOWscapy/layers/kerberos.py5321 # Delegate TGT
LOWscapy/layers/dhcp6.py501
LOWscapy/layers/dhcp6.py521# . .
LOWscapy/layers/dhcp6.py1141# les options preference
LOWscapy/layers/dhcp6.py1181# - sent by client
LOWscapy/layers/dhcp6.py1221 name = "DHCPv6 Advertise Message"
LOWscapy/layers/dhcp6.py1241# client to which the server has not sent a unicast option, the server
LOWscapy/layers/dhcp6.py1261class DHCP6_Confirm(DHCP6):
LOWscapy/layers/dhcp6.py1301# - the message must include a server identifier option
LOWscapy/layers/dhcp6.py1361#####################################################################
LOWscapy/layers/dhcp6.py1381#####################################################################
LOWscapy/layers/dhcp6.py1421
LOWscapy/layers/dhcp6.py1901 elif msgtype == 5: # RENEW
LOWscapy/layers/dhcp6.py1921 # to its previous Renew message.
LOWscapy/layers/netbios.py61 ]
LOWscapy/layers/dcerpc.py1821
LOWscapy/layers/dcerpc.py1841# than inside the PACKET. This is faster to compute because whether a constructed type
LOWscapy/layers/tls/handshake.py421 hash_len = hkdf.hash.digest_size
LOWscapy/layers/tls/automaton_cli.py721
LOWscapy/layers/tls/session.py401 # other messages in case of TLS 1.3.
LOWscapy/layers/tls/session.py421 self.server_key = None
LOWscapy/layers/tls/extensions.py41from scapy.config import conf
LOWscapy/layers/tls/record.py481 self.tls_session.rcs.cipher.iv = iv
LOWscapy/layers/tls/crypto/groups.py521#
LOWscapy/layers/tls/crypto/groups.py541# else:
LOWscapy/layers/tls/crypto/groups.py561#
LOWscapy/layers/tls/crypto/groups.py581# x = pkcs_os2ip(x_bytes) % p
LOWscapy/layers/tls/crypto/groups.py601# if isinstance(p, str):
LOWscapy/layers/tls/crypto/groups.py621# _b = 7
LOWscapy/layers/tls/crypto/groups.py641# 23a62855 3168947d 59dcc912 04235137 7ac5fb32""")
LOWscapy/layers/tls/crypto/groups.py661# generator = Point(curve, _Gx, _Gy, _r)
LOWscapy/layers/tls/crypto/groups.py681# ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe
LOWscapy/layers/tls/crypto/groups.py701# 2013481D 1F6E5377""")
LOWscapy/layers/tls/crypto/groups.py721
40 more matches not shown…
Cross-Language Confusion16 hits · 56 pts
SeverityFileLineSnippet
HIGHscapy/pipetool.py270 s.push(msg)
HIGHscapy/utils6.py315 returned address are null). If a group id is provided through 'grpid'
HIGHscapy/tools/UTscapy.py322 "outputfile": null,
HIGHscapy/tools/UTscapy.py325 "num": null,
HIGHscapy/layers/kerberos.py1625 self.sname.toString(),
HIGHscapy/layers/kerberos.py1828 self.cname.toString(),
HIGHscapy/layers/kerberos.py1842 self.cname.toString(),
HIGHscapy/layers/kerberos.py2286 self.sname.toString(),
HIGHscapy/layers/tls/crypto/prf.py97 MD5(secret || SHA-1("A" || secret || seed)) ||
HIGHscapy/layers/tls/crypto/prf.py98 MD5(secret || SHA-1("BB" || secret || seed)) ||
HIGHscapy/layers/tls/crypto/prf.py99 MD5(secret || SHA-1("CCC" || secret || seed)) || ...
HIGHscapy/cbor/cborfields.py410 "Expected null, got %r" % obj)
HIGHscapy/cbor/cborfields.py442 "Expected undefined, got %r" % obj)
HIGHscapy/contrib/isotp/isotp_utils.py101 self.push(first_piece)
HIGHscapy/contrib/isotp/isotp_utils.py283 bucket.push(isotp_data)
HIGHscapy/contrib/rtps/rtps.py232 ~ SerializedData serializedData [only if D==1 || K==1] ~
Redundant / Tautological Comments45 hits · 52 pts
SeverityFileLineSnippet
LOWscapy/route.py223 # Check if source is 0.0.0.0. This is a 'via' route with no src.
LOWscapy/fwdmachine.py283 # Set SubjectPublicKeyInfo to the one from our private key
LOWscapy/utils.py212 # Close the file so something else can take it.
LOWscapy/utils.py2769 # Check if the type != 0x02, type Ethernet
LOWscapy/utils6.py252 # Set ifaceid to a binary form
LOWscapy/asn1/mib.py168 # Read the files
LOWscapy/layers/smb2.py1087 # Set SecuritySignature to nul
LOWscapy/layers/smbclient.py1227 # Check if target is IPv4 or IPv6
LOWscapy/layers/smbclient.py1632 # Open file
LOWscapy/layers/smbclient.py1653 # Read the file
LOWscapy/layers/smbclient.py1662 # Close the file
LOWscapy/layers/smbclient.py1673 # Open file
LOWscapy/layers/smbclient.py1692 # Close the file
LOWscapy/layers/smbclient.py1958 # Open file
LOWscapy/layers/smbclient.py1965 # Close the file
LOWscapy/layers/smbclient.py2001 # Open file
LOWscapy/layers/smbclient.py2027 # Open file
LOWscapy/layers/inet6.py4057 # Check if this is an advertisement for a Default Router
LOWscapy/layers/ldap.py1618 # Check if we have a search response
LOWscapy/layers/inet.py1265 # Check if IP addresses match
LOWscapy/layers/inet.py1269 # Check if IP ids match
LOWscapy/layers/inet.py1273 # Check if IP protocols match
LOWscapy/layers/dns.py1386 # Check if the length is valid
LOWscapy/layers/smbserver.py1212 # Check if there is a Durable Handle Reconnect Request
LOWscapy/layers/smbserver.py1387 # Increment index
LOWscapy/layers/smbserver.py1544 # Write file
LOWscapy/layers/smbserver.py1569 # Read file and send content
LOWscapy/layers/spnego.py755 # Check if target is a hostname / Check IP
LOWscapy/layers/http.py1015 # Write file
LOWscapy/layers/tls/handshake.py766 # Check if the server early_data extension is present in
LOWscapy/layers/tls/handshake.py798 # Check if the server early_data extension is present in
LOWscapy/layers/tls/automaton_cli.py1126 # Check if DHE is need (both for out of band and resumption PSK)
LOWscapy/layers/tls/cert.py1621 # Check if this certificate matches the one we're looking at
LOWscapy/layers/tls/automaton_srv.py622 # Check if we have to send an HelloRetryRequest
LOWscapy/layers/tls/automaton_srv.py1132 # Check if there's a NewSessionTicket to send
LOWscapy/cbor/cborcodec.py507 # Check if obj is a CBOR object instance (for special cases like UNDEFINED)
LOWscapy/contrib/cdp.py333 # Check if field length is fixed (2 bytes)
LOWscapy/contrib/cdp.py341 # Check if field length is fixed (2 bytes)
LOWscapy/contrib/coap_socket.py727 # Assign payload to packet
LOWscapy/contrib/diameter.py88 if x & 15: # Check if reserved bits are used
LOWscapy/contrib/diameter.py129 if x & 31: # Check if reserved bits are used
LOWscapy/contrib/diameter.py356 # Check if vendor and code defined and fetch the corresponding AVP
LOWscapy/arch/unix.py229 # Check if it is a valid IPv6 address
LOWscapy/arch/bpf/core.py119 # Check if the interface can be used
LOWscapy/arch/bpf/core.py127 # Close the file descriptor
Decorative Section Separators16 hits · 48 pts
SeverityFileLineSnippet
MEDIUMscapy/contrib/j1939.py71# ---------------------------------------------------------------------------
MEDIUMscapy/contrib/j1939.py75# ---------------------------------------------------------------------------
MEDIUMscapy/contrib/j1939.py164# ---------------------------------------------------------------------------
MEDIUMscapy/contrib/j1939.py166# ---------------------------------------------------------------------------
MEDIUMscapy/contrib/j1939.py238# ---------------------------------------------------------------------------
MEDIUMscapy/contrib/j1939.py240# ---------------------------------------------------------------------------
MEDIUMscapy/contrib/j1939.py292# ---------------------------------------------------------------------------
MEDIUMscapy/contrib/j1939.py294# ---------------------------------------------------------------------------
MEDIUMscapy/contrib/j1939.py336 # ── first 32 bits: CAN flags(3) + J1939 identifier fields(29) ──────
MEDIUMscapy/contrib/j1939.py345 # ── standard CAN data-length + padding ────────────────────────────
MEDIUMscapy/contrib/j1939.py395# ---------------------------------------------------------------------------
MEDIUMscapy/contrib/j1939.py397# ---------------------------------------------------------------------------
MEDIUMscapy/contrib/j1939.py548# ---------------------------------------------------------------------------
MEDIUMscapy/contrib/j1939.py550# ---------------------------------------------------------------------------
MEDIUMscapy/contrib/rtps/rtps.py266 # -------------------------------------
MEDIUMscapy/contrib/rtps/rtps.py496 # ----------------------------
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippet
CRITICALscapy/layers/spnego.py936 # resp.SecurityBlob.innerToken.token.mechTypes.insert(
CRITICALscapy/layers/kerberos.py3468 pafastreq.armoredData.armor.armorValue.authenticator.encrypt(
CRITICALscapy/layers/tls/basefields.py172 False in pkt.tls_session.rcs.cipher.ready.values()
CRITICALscapy/layers/tls/record.py150 if False in pkt.tls_session.rcs.cipher.ready.values():
AI Slop Vocabulary3 hits · 6 pts
SeverityFileLineSnippet
MEDIUMscapy/contrib/bfd.py150 7784, # seamless BFD
MEDIUMscapy/libs/winpcapy.py655# return the error text pertaining to the last pcap library error.
LOWscapy/arch/windows/structures.py224# for now, just use void * for pointers to unused structures
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippet
LOW.config/ci/install.sh8# Usage:
LOW.config/ci/test.sh8# Usage:
Verbosity Indicators1 hit · 0 pts
SeverityFileLineSnippet
LOWscapy/layers/inet6.py4121 The purpose of this function is to send provided RA message at layer 2