Scapy: the Python-based interactive packet manipulation program & library.
This report summarizes scanner evidence for secdev/scapy, a Python project with 12,599 GitHub stars. SynthScan examined 274,310 lines of code across 453 source files, recording 2547 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 16.4 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1216 finding(s).
Are imports declared and package/API names verified? 778 finding(s).
Are wrappers, guards, and repeated structures necessary? 741 finding(s).
Which changes need focused human review? 2547 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 2547 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .config/ci/openssl.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | .config/ci/install.sh | 4 | # This file is part of Scapy | COMMENT |
| MEDIUM | .config/ci/zipapp.sh | 4 | # This file is part of Scapy | COMMENT |
| MEDIUM | .config/ci/test.sh | 4 | # This file is part of Scapy | COMMENT |
| MEDIUM | .config/ci/openldap/install.sh | 4 | # This file is part of Scapy | COMMENT |
| MEDIUM | .config/mypy/mypy_check.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | .config/mypy/mypy_deployment_stats.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | test/testsocket.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | test/benchmark/latency_router.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | test/benchmark/common.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | test/benchmark/dissection_and_build.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | test/scapy/layers/tls/__init__.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | test/scapy/layers/tls/example_client.py | 4 | # This file is part of Scapy | COMMENT |
| MEDIUM | test/scapy/layers/tls/example_server.py | 4 | # This file is part of Scapy | COMMENT |
| MEDIUM | test/contrib/automotive/interface_mockup.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/themes.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/interfaces.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/sendrecv.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/pipetool.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/dadict.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/sessions.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/plist.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/asn1packet.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/config.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/config.py | 664 | # Create the extension | COMMENT |
| MEDIUM | scapy/compat.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/error.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/fields.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/fields.py | 1762 | default = [] # Create a new list for each instance | CODE |
| MEDIUM | scapy/fields.py | 2116 | default = [] # Create a new list for each instance | CODE |
| MEDIUM | scapy/pton_ntop.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/autorun.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/cborpacket.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/route.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/base_classes.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/ansmachine.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/fwdmachine.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/__init__.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/all.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/supersocket.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/supersocket.py | 299 | """This function is called during sendrecv() routine to select | STRING |
| MEDIUM | scapy/consts.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/asn1fields.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/utils.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/route6.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/packet.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/volatile.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/scapypipes.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/main.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/utils6.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/automaton.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/as_resolvers.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/__main__.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/data.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/asn1/mib.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/asn1/mib.py | 191 | # Create the new MIB | COMMENT |
| MEDIUM | scapy/asn1/__init__.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/asn1/ber.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/asn1/asn1.py | 2 | # This file is part of Scapy | COMMENT |
| MEDIUM | scapy/tools/generate_manuf.py | 2 | # This file is part of Scapy | COMMENT |
| 391 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | setup.py | 106 | except Exception: | CODE |
| HIGH | test/testsocket.py | 105 | except (ValueError, AttributeError, TypeError): | CODE |
| HIGH | test/testsocket.py | 120 | except AttributeError: | CODE |
| HIGH | test/testsocket.py | 94 | except (ValueError, AttributeError, TypeError): | CODE |
| HIGH | scapy/themes.py | 410 | except NameError: | CODE |
| HIGH | scapy/themes.py | 450 | except NameError: | CODE |
| HIGH | scapy/interfaces.py | 392 | except ValueError: | CODE |
| HIGH | scapy/interfaces.py | 431 | except ValueError: | CODE |
| HIGH | scapy/sendrecv.py | 425 | except KeyboardInterrupt: | CODE |
| HIGH | scapy/sendrecv.py | 844 | except KeyboardInterrupt: | CODE |
| HIGH | scapy/sendrecv.py | 289 | except SystemExit: | CODE |
| HIGH | scapy/sendrecv.py | 430 | except AttributeError: | CODE |
| HIGH | scapy/sendrecv.py | 685 | except (ValueError, OSError): | CODE |
| HIGH | scapy/sendrecv.py | 300 | except AttributeError: | CODE |
| HIGH | scapy/sendrecv.py | 1340 | except Exception: | CODE |
| HIGH | scapy/pipetool.py | 163 | except KeyboardInterrupt: | CODE |
| HIGH | scapy/pipetool.py | 196 | except Exception: | CODE |
| HIGH | scapy/plist.py | 47 | except ImportError: | CODE |
| HIGH | scapy/config.py | 816 | except Exception: | CODE |
| HIGH | scapy/config.py | 822 | except NameError: | CODE |
| HIGH | scapy/config.py | 1278 | except Exception: | CODE |
| HIGH | scapy/error.py | 106 | except ImportError: | CODE |
| HIGH | scapy/fields.py | 560 | except KeyError: | CODE |
| HIGH | scapy/fields.py | 799 | except AttributeError: | CODE |
| HIGH | scapy/fields.py | 894 | except Exception: | CODE |
| HIGH | scapy/fields.py | 2617 | except KeyError: | CODE |
| HIGH | scapy/fields.py | 2798 | except KeyError: | CODE |
| HIGH | scapy/fields.py | 3174 | except AttributeError: | CODE |
| HIGH | scapy/autorun.py | 112 | except SystemExit: | CODE |
| HIGH | scapy/autorun.py | 70 | except KeyError: | CODE |
| HIGH | scapy/base_classes.py | 49 | except ImportError: | CODE |
| HIGH | scapy/base_classes.py | 430 | except (ImportError, AttributeError, KeyError): | CODE |
| HIGH | scapy/base_classes.py | 416 | except KeyError: | CODE |
| HIGH | scapy/ansmachine.py | 55 | except (ImportError, AttributeError): | CODE |
| HIGH | scapy/ansmachine.py | 248 | except OSError: | CODE |
| HIGH | scapy/ansmachine.py | 64 | except (AttributeError): | CODE |
| HIGH | scapy/ansmachine.py | 271 | except Exception: | CODE |
| HIGH | scapy/__init__.py | 142 | except KeyError: | CODE |
| HIGH | scapy/__init__.py | 152 | except (FileNotFoundError, NotADirectoryError): | CODE |
| HIGH | scapy/__init__.py | 158 | except ValueError: | CODE |
| HIGH | scapy/__init__.py | 164 | except Exception: | CODE |
| HIGH | scapy/__init__.py | 174 | except Exception: | CODE |
| HIGH | scapy/supersocket.py | 123 | except AttributeError: | CODE |
| HIGH | scapy/utils.py | 670 | except ValueError: | CODE |
| HIGH | scapy/utils.py | 1070 | except Exception: | CODE |
| HIGH | scapy/utils.py | 2991 | except EOFError: | CODE |
| HIGH | scapy/utils.py | 3361 | except Exception: | CODE |
| HIGH | scapy/utils.py | 1367 | except (Scapy_Exception, EOFError): | CODE |
| HIGH | scapy/utils.py | 2766 | except (Scapy_Exception, EOFError): | CODE |
| HIGH | scapy/utils.py | 1381 | except (Scapy_Exception, EOFError): | CODE |
| HIGH | scapy/utils.py | 2780 | except (Scapy_Exception, EOFError): | CODE |
| HIGH | scapy/utils.py | 3298 | except UnboundLocalError: | CODE |
| HIGH | scapy/route6.py | 135 | except KeyError: | CODE |
| HIGH | scapy/packet.py | 75 | except ImportError: | CODE |
| HIGH | scapy/packet.py | 546 | except KeyError: | CODE |
| HIGH | scapy/packet.py | 550 | except KeyError: | CODE |
| HIGH | scapy/packet.py | 554 | except KeyError: | CODE |
| HIGH | scapy/packet.py | 608 | except AttributeError: | CODE |
| HIGH | scapy/packet.py | 635 | except AttributeError: | CODE |
| HIGH | scapy/packet.py | 1207 | except AttributeError: | CODE |
| 160 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/testsocket.py | 17 | CODE | |
| LOW | test/testsocket.py | 21 | CODE | |
| LOW | test/testsocket.py | 21 | CODE | |
| LOW | test/testsocket.py | 21 | CODE | |
| LOW | test/testsocket.py | 21 | CODE | |
| LOW | test/testsocket.py | 21 | CODE | |
| LOW | test/testsocket.py | 30 | CODE | |
| LOW | test/testsocket.py | 30 | CODE | |
| LOW | test/benchmark/latency_router.py | 9 | CODE | |
| LOW | test/benchmark/common.py | 12 | CODE | |
| LOW | test/benchmark/dissection_and_build.py | 6 | CODE | |
| LOW | test/scapy/layers/tls/example_client.py | 12 | CODE | |
| LOW | test/scapy/layers/tls/example_client.py | 17 | CODE | |
| LOW | test/scapy/layers/tls/example_server.py | 15 | CODE | |
| LOW | test/scapy/layers/tls/example_server.py | 16 | CODE | |
| LOW | test/scapy/layers/tls/example_server.py | 19 | CODE | |
| LOW | test/contrib/automotive/interface_mockup.py | 75 | CODE | |
| LOW | test/contrib/automotive/interface_mockup.py | 83 | CODE | |
| LOW | scapy/themes.py | 17 | CODE | |
| LOW | scapy/themes.py | 17 | CODE | |
| LOW | scapy/interfaces.py | 20 | CODE | |
| LOW | scapy/interfaces.py | 22 | CODE | |
| LOW | scapy/interfaces.py | 22 | CODE | |
| LOW | scapy/interfaces.py | 22 | CODE | |
| LOW | scapy/interfaces.py | 22 | CODE | |
| LOW | scapy/interfaces.py | 22 | CODE | |
| LOW | scapy/interfaces.py | 22 | CODE | |
| LOW | scapy/sendrecv.py | 29 | CODE | |
| LOW | scapy/sendrecv.py | 42 | CODE | |
| LOW | scapy/sendrecv.py | 42 | CODE | |
| LOW | scapy/sendrecv.py | 42 | CODE | |
| LOW | scapy/sendrecv.py | 42 | CODE | |
| LOW | scapy/sendrecv.py | 59 | CODE | |
| LOW | scapy/pipetool.py | 22 | CODE | |
| LOW | scapy/pipetool.py | 22 | CODE | |
| LOW | scapy/pipetool.py | 22 | CODE | |
| LOW | scapy/pipetool.py | 22 | CODE | |
| LOW | scapy/pipetool.py | 22 | CODE | |
| LOW | scapy/pipetool.py | 22 | CODE | |
| LOW | scapy/pipetool.py | 22 | CODE | |
| LOW | scapy/pipetool.py | 22 | CODE | |
| LOW | scapy/dadict.py | 14 | CODE | |
| LOW | scapy/dadict.py | 14 | CODE | |
| LOW | scapy/dadict.py | 14 | CODE | |
| LOW | scapy/dadict.py | 14 | CODE | |
| LOW | scapy/dadict.py | 14 | CODE | |
| LOW | scapy/dadict.py | 14 | CODE | |
| LOW | scapy/dadict.py | 14 | CODE | |
| LOW | scapy/dadict.py | 25 | CODE | |
| LOW | scapy/sessions.py | 20 | CODE | |
| LOW | scapy/sessions.py | 20 | CODE | |
| LOW | scapy/sessions.py | 20 | CODE | |
| LOW | scapy/sessions.py | 35 | CODE | |
| LOW | scapy/plist.py | 28 | CODE | |
| LOW | scapy/plist.py | 28 | CODE | |
| LOW | scapy/plist.py | 28 | CODE | |
| LOW | scapy/plist.py | 28 | CODE | |
| LOW | scapy/plist.py | 28 | CODE | |
| LOW | scapy/plist.py | 28 | CODE | |
| LOW | scapy/plist.py | 28 | CODE | |
| 698 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scapy/themes.py | 379 | CODE | |
| LOW | scapy/sendrecv.py | 373 | CODE | |
| LOW | scapy/sendrecv.py | 528 | CODE | |
| LOW | scapy/sendrecv.py | 610 | CODE | |
| LOW | scapy/sendrecv.py | 780 | CODE | |
| LOW | scapy/sendrecv.py | 1424 | CODE | |
| LOW | scapy/sendrecv.py | 119 | CODE | |
| LOW | scapy/sendrecv.py | 314 | CODE | |
| LOW | scapy/sendrecv.py | 1172 | CODE | |
| LOW | scapy/sendrecv.py | 1477 | CODE | |
| LOW | scapy/pipetool.py | 126 | CODE | |
| LOW | scapy/pipetool.py | 187 | CODE | |
| LOW | scapy/sessions.py | 293 | CODE | |
| LOW | scapy/sessions.py | 452 | CODE | |
| LOW | scapy/plist.py | 517 | CODE | |
| LOW | scapy/plist.py | 619 | CODE | |
| LOW | scapy/plist.py | 662 | CODE | |
| LOW | scapy/plist.py | 748 | CODE | |
| LOW | scapy/plist.py | 625 | CODE | |
| LOW | scapy/config.py | 827 | CODE | |
| LOW | scapy/config.py | 889 | CODE | |
| LOW | scapy/error.py | 48 | CODE | |
| LOW | scapy/fields.py | 500 | CODE | |
| LOW | scapy/fields.py | 541 | CODE | |
| LOW | scapy/fields.py | 789 | CODE | |
| LOW | scapy/fields.py | 865 | CODE | |
| LOW | scapy/fields.py | 957 | CODE | |
| LOW | scapy/fields.py | 995 | CODE | |
| LOW | scapy/fields.py | 1261 | CODE | |
| LOW | scapy/fields.py | 1773 | CODE | |
| LOW | scapy/fields.py | 1802 | CODE | |
| LOW | scapy/fields.py | 2535 | CODE | |
| LOW | scapy/fields.py | 2596 | CODE | |
| LOW | scapy/fields.py | 2611 | CODE | |
| LOW | scapy/fields.py | 2792 | CODE | |
| LOW | scapy/fields.py | 3314 | CODE | |
| LOW | scapy/fields.py | 3581 | CODE | |
| LOW | scapy/fields.py | 3602 | CODE | |
| LOW | scapy/fields.py | 3631 | CODE | |
| LOW | scapy/fields.py | 3885 | CODE | |
| LOW | scapy/pton_ntop.py | 25 | CODE | |
| LOW | scapy/autorun.py | 55 | CODE | |
| LOW | scapy/base_classes.py | 365 | CODE | |
| LOW | scapy/fwdmachine.py | 245 | CODE | |
| LOW | scapy/fwdmachine.py | 369 | CODE | |
| LOW | scapy/supersocket.py | 637 | CODE | |
| LOW | scapy/supersocket.py | 143 | CODE | |
| LOW | scapy/asn1fields.py | 759 | CODE | |
| LOW | scapy/asn1fields.py | 848 | CODE | |
| LOW | scapy/asn1fields.py | 907 | CODE | |
| LOW | scapy/utils.py | 401 | CODE | |
| LOW | scapy/utils.py | 1002 | CODE | |
| LOW | scapy/utils.py | 1119 | CODE | |
| LOW | scapy/utils.py | 3049 | CODE | |
| LOW | scapy/utils.py | 3378 | CODE | |
| LOW | scapy/utils.py | 4024 | CODE | |
| LOW | scapy/utils.py | 1436 | CODE | |
| LOW | scapy/utils.py | 1817 | CODE | |
| LOW | scapy/utils.py | 1849 | CODE | |
| LOW | scapy/utils.py | 2017 | CODE | |
| 362 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 106 | except Exception: | CODE |
| LOW | test/contrib/automotive/interface_mockup.py | 64 | except Exception as e: | CODE |
| LOW | scapy/themes.py | 385 | except Exception: | CODE |
| LOW⚡ | scapy/sendrecv.py | 1340 | except Exception: | CODE |
| LOW⚡ | scapy/sendrecv.py | 1344 | except Exception as ex: | CODE |
| LOW⚡ | scapy/sendrecv.py | 1349 | except Exception as ex2: | CODE |
| LOW | scapy/sendrecv.py | 291 | except Exception: | CODE |
| LOW | scapy/sendrecv.py | 593 | except Exception: | CODE |
| LOW | scapy/sendrecv.py | 660 | except Exception as parse_exception: | CODE |
| LOW | scapy/sendrecv.py | 1161 | except Exception as ex: | CODE |
| LOW | scapy/sendrecv.py | 1486 | except Exception: | CODE |
| LOW | scapy/sendrecv.py | 1504 | except Exception: | CODE |
| LOW | scapy/pipetool.py | 156 | except Exception as e: | CODE |
| LOW | scapy/pipetool.py | 196 | except Exception: | CODE |
| LOW | scapy/sessions.py | 64 | except Exception as ex: | CODE |
| LOW | scapy/sessions.py | 463 | except Exception as ex: | CODE |
| LOW | scapy/sessions.py | 480 | except Exception as ex: | CODE |
| LOW | scapy/plist.py | 494 | except Exception: | CODE |
| LOW | scapy/plist.py | 556 | except Exception: | CODE |
| LOW | scapy/config.py | 684 | except Exception as ex: | CODE |
| LOW | scapy/config.py | 777 | except Exception: | CODE |
| LOW | scapy/config.py | 796 | except Exception: | CODE |
| LOW | scapy/config.py | 816 | except Exception: | CODE |
| LOW | scapy/config.py | 1278 | except Exception: | CODE |
| LOW | scapy/fields.py | 894 | except Exception: | CODE |
| LOW | scapy/fields.py | 1632 | except Exception: | CODE |
| LOW | scapy/fields.py | 1834 | except Exception: | CODE |
| LOW | scapy/fields.py | 1921 | except Exception: | CODE |
| LOW | scapy/base_classes.py | 470 | except Exception: | CODE |
| LOW | scapy/ansmachine.py | 271 | except Exception: | CODE |
| LOW | scapy/fwdmachine.py | 187 | except Exception: | CODE |
| LOW | scapy/fwdmachine.py | 450 | except Exception as ex: | CODE |
| LOW | scapy/fwdmachine.py | 528 | except Exception as ex: | CODE |
| LOW | scapy/__init__.py | 164 | except Exception: | CODE |
| LOW | scapy/__init__.py | 174 | except Exception: | CODE |
| LOW | scapy/supersocket.py | 222 | except Exception: | CODE |
| LOW | scapy/supersocket.py | 386 | except Exception: | CODE |
| LOW⚡ | scapy/utils.py | 3508 | except Exception: | CODE |
| LOW⚡ | scapy/utils.py | 3511 | except Exception: | CODE |
| LOW⚡ | scapy/utils.py | 3518 | except Exception: | CODE |
| LOW⚡ | scapy/utils.py | 3521 | except Exception: | CODE |
| LOW | scapy/utils.py | 1070 | except Exception: | CODE |
| LOW | scapy/utils.py | 1621 | except Exception: | CODE |
| LOW | scapy/utils.py | 2133 | except Exception: | CODE |
| LOW | scapy/utils.py | 2861 | except Exception: | CODE |
| LOW | scapy/utils.py | 2988 | except Exception: | CODE |
| LOW | scapy/utils.py | 3361 | except Exception: | CODE |
| LOW | scapy/utils.py | 3604 | except Exception: | CODE |
| LOW | scapy/utils.py | 4011 | except Exception as ex: | CODE |
| LOW | scapy/utils.py | 4020 | except Exception as ex: | CODE |
| LOW | scapy/packet.py | 818 | except Exception as ex: | CODE |
| LOW | scapy/packet.py | 1082 | except Exception: | CODE |
| LOW | scapy/packet.py | 1166 | except Exception: | CODE |
| LOW | scapy/packet.py | 1723 | except Exception: | CODE |
| LOW | scapy/main.py | 82 | except Exception: | CODE |
| LOW | scapy/main.py | 133 | except Exception: | CODE |
| LOW | scapy/main.py | 195 | except Exception: | CODE |
| LOW | scapy/main.py | 333 | except Exception: | STRING |
| LOW | scapy/main.py | 867 | except Exception: | CODE |
| LOW | scapy/utils6.py | 254 | except Exception: | CODE |
| 173 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | scapy/layers/smb2.py | 0 | util function to build the offset and populate the lengths | STRING |
| HIGH | scapy/layers/ntlm.py | 0 | util function to build the offset and populate the lengths | STRING |
| HIGH | scapy/layers/spnego.py | 0 | util function to build the offset and populate the lengths | STRING |
| 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_ | STRING |
| 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_ | STRING |
| 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_ | STRING |
| HIGH | scapy/layers/tls/crypto/cipher_aead.py | 0 | hash classes are automatically registered through this metaclass. furthermore, their name attribute is extracted from th | STRING |
| HIGH | scapy/layers/tls/crypto/cipher_stream.py | 0 | hash classes are automatically registered through this metaclass. furthermore, their name attribute is extracted from th | STRING |
| HIGH | scapy/layers/tls/crypto/cipher_block.py | 0 | hash classes are automatically registered through this metaclass. furthermore, their name attribute is extracted from th | STRING |
| HIGH | scapy/layers/tls/crypto/hash.py | 0 | hash classes are automatically registered through this metaclass. furthermore, their name attribute is extracted from th | STRING |
| 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 | STRING |
| 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 | STRING |
| 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 | STRING |
| HIGH | scapy/contrib/__init__.py | 0 | package of contrib automotive autosar modules that have to be loaded explicitly. | STRING |
| HIGH | scapy/contrib/automotive/__init__.py | 0 | package of contrib automotive autosar modules that have to be loaded explicitly. | STRING |
| HIGH | scapy/contrib/automotive/autosar/__init__.py | 0 | package of contrib automotive autosar modules that have to be loaded explicitly. | STRING |
| HIGH | scapy/contrib/isotp/isotp_native_socket.py | 0 | receives a packet, then returns a tuple containing (cls, pkt_data, time) | STRING |
| HIGH | scapy/arch/libpcap.py | 0 | receives a packet, then returns a tuple containing (cls, pkt_data, time) | STRING |
| HIGH | scapy/arch/linux/__init__.py | 0 | receives a packet, then returns a tuple containing (cls, pkt_data, time) | STRING |
| HIGH | scapy/contrib/automotive/volkswagen/__init__.py | 0 | package of contrib automotive gm specific modules that have to be loaded explicitly. | STRING |
| HIGH | scapy/contrib/automotive/bmw/__init__.py | 0 | package of contrib automotive gm specific modules that have to be loaded explicitly. | STRING |
| HIGH | scapy/contrib/automotive/xcp/__init__.py | 0 | package of contrib automotive gm specific modules that have to be loaded explicitly. | STRING |
| HIGH | scapy/contrib/automotive/obd/__init__.py | 0 | package of contrib automotive gm specific modules that have to be loaded explicitly. | STRING |
| HIGH | scapy/contrib/automotive/obd/mid/__init__.py | 0 | package of contrib automotive gm specific modules that have to be loaded explicitly. | STRING |
| HIGH | scapy/contrib/automotive/obd/iid/__init__.py | 0 | package of contrib automotive gm specific modules that have to be loaded explicitly. | STRING |
| HIGH | scapy/contrib/automotive/obd/tid/__init__.py | 0 | package of contrib automotive gm specific modules that have to be loaded explicitly. | STRING |
| HIGH | scapy/contrib/automotive/obd/pid/__init__.py | 0 | package of contrib automotive gm specific modules that have to be loaded explicitly. | STRING |
| HIGH | scapy/contrib/automotive/gm/__init__.py | 0 | package of contrib automotive gm specific modules that have to be loaded explicitly. | STRING |
| HIGH | scapy/contrib/rtps/rtps.py | 0 | real-time publish-subscribe protocol (rtps) dissection | STRING |
| HIGH | scapy/contrib/rtps/common_types.py | 0 | real-time publish-subscribe protocol (rtps) dissection | STRING |
| HIGH | scapy/contrib/rtps/__init__.py | 0 | real-time publish-subscribe protocol (rtps) dissection | STRING |
| HIGH | scapy/contrib/rtps/pid_types.py | 0 | real-time publish-subscribe protocol (rtps) dissection | STRING |
| 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 | STRING |
| 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 | STRING |
| 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 | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 95 | def _patched_apply_configuration(dist, filepath, *_): | CODE |
| LOW | test/contrib/automotive/interface_mockup.py | 38 | def test_and_setup_socket_can(iface_name): | CODE |
| LOW | scapy/fields.py | 1261 | def _build_config_representation(self, config): | CODE |
| LOW | scapy/autorun.py | 172 | def autorun_get_interactive_session(cmds, **kargs): | CODE |
| LOW | scapy/autorun.py | 201 | def autorun_get_interactive_live_session(cmds, **kargs): | CODE |
| LOW | scapy/autorun.py | 224 | def autorun_get_text_interactive_session(cmds, **kargs): | CODE |
| LOW | scapy/autorun.py | 235 | def autorun_get_live_interactive_session(cmds, **kargs): | CODE |
| LOW | scapy/autorun.py | 246 | def autorun_get_ansi_interactive_session(cmds, **kargs): | CODE |
| LOW | scapy/autorun.py | 257 | def autorun_get_html_interactive_session(cmds, **kargs): | CODE |
| LOW | scapy/autorun.py | 288 | def autorun_get_latex_interactive_session(cmds, **kargs): | CODE |
| LOW | scapy/__init__.py | 48 | def _version_from_git_archive(): | CODE |
| LOW | scapy/__init__.py | 82 | def _version_from_git_describe(): | CODE |
| LOW | scapy/packet.py | 757 | def _raw_packet_cache_field_value(self, fld, val, copy=False): | CODE |
| LOW | scapy/utils6.py | 41 | def construct_source_candidate_set( | CODE |
| LOW | scapy/utils6.py | 100 | def get_source_addr_from_candidate_set(dst, candidate_set): | CODE |
| LOW | scapy/automaton.py | 1515 | def remove_interception_points(self, *ipts): | CODE |
| LOW | scapy/tools/UTscapy.py | 504 | def filter_tests_keep_on_keywords(test_campaign, kw): | CODE |
| LOW | scapy/tools/UTscapy.py | 508 | def filter_tests_remove_on_keywords(test_campaign, kw): | CODE |
| LOW | scapy/layers/smbclient.py | 386 | def receive_negotiate_response(self, pkt): | CODE |
| LOW | scapy/layers/smbclient.py | 497 | def should_retry_without_blob(self, ssp_tuple): | CODE |
| LOW | scapy/layers/smbclient.py | 505 | def should_send_session_setup_request(self, ssp_tuple): | CODE |
| LOW | scapy/layers/smbclient.py | 518 | def send_setup_session_request(self, ssp_tuple): | CODE |
| LOW | scapy/layers/smbclient.py | 566 | def receive_session_setup_response(self, pkt): | CODE |
| LOW | scapy/layers/smbclient.py | 656 | def authenticated_post_actions(self): | CODE |
| LOW | scapy/layers/smbclient.py | 674 | def incoming_data_received_smb(self, pkt): | CODE |
| LOW | scapy/layers/smbclient.py | 693 | def outgoing_data_received_smb(self, fd): | CODE |
| LOW | scapy/layers/inet.py | 1453 | def _defrag_iter_and_check_offsets(frags): | CODE |
| LOW | scapy/layers/inet.py | 1572 | def _packetlist_timeskew_graph(self, ip, **kargs): | CODE |
| LOW | scapy/layers/lltd.py | 310 | def _register_lltd_specific_class(*attr_types): | CODE |
| LOW | scapy/layers/smbserver.py | 689 | def receive_setup_andx_request(self, pkt): | CODE |
| LOW | scapy/layers/smbserver.py | 849 | def receive_setup_andx_request_in_serving(self, pkt): | CODE |
| LOW | scapy/layers/smbserver.py | 859 | def send_tree_connect_response(self, pkt, tree_name): | CODE |
| LOW | scapy/layers/smbserver.py | 1173 | def send_create_file_response(self, pkt): | CODE |
| LOW | scapy/layers/smbserver.py | 1321 | def receive_change_notify_info(self, pkt): | CODE |
| LOW | scapy/layers/smbserver.py | 1326 | def send_change_notify_info_response(self, pkt): | CODE |
| LOW | scapy/layers/smbserver.py | 1338 | def receive_query_directory_info(self, pkt): | CODE |
| LOW | scapy/layers/smbserver.py | 1343 | def send_query_directory_response(self, pkt): | CODE |
| LOW | scapy/layers/smbserver.py | 1611 | def receive_tree_disconnect_request(self, pkt): | CODE |
| LOW | scapy/layers/smbserver.py | 1616 | def send_tree_disconnect_response(self, pkt): | CODE |
| LOW | scapy/layers/smbserver.py | 1633 | def send_notify_cancel_response(self, pkt): | CODE |
| LOW | scapy/layers/kerberos.py | 4434 | def receive_krb_error_tgs_req(self, pkt): | STRING |
| LOW | scapy/layers/radius.py | 641 | def compute_message_authenticator(radius_packet, packed_req_authenticator, | CODE |
| LOW | scapy/layers/bluetooth.py | 3509 | def build_set_advertising_data(self): | CODE |
| LOW | scapy/layers/dhcp6.py | 319 | def _just_guess_payload_class(cls, payload): | CODE |
| LOW | scapy/layers/dcerpc.py | 1279 | def register_dcerpc_interface(name, uuid, version, opnums): | CODE |
| LOW | scapy/layers/dcerpc.py | 3445 | def register_possible_payload(cls, pay): | CODE |
| LOW | scapy/layers/tls/handshake.py | 760 | def post_build_tls_session_update(self, msg_str): | CODE |
| LOW | scapy/layers/tls/handshake.py | 793 | def post_dissection_tls_session_update(self, msg_str): | CODE |
| LOW | scapy/layers/tls/handshake.py | 968 | def post_dissection_tls_session_update(self, msg_str): | CODE |
| LOW | scapy/layers/tls/handshake.py | 1005 | def post_dissection_tls_session_update(self, msg_str): | CODE |
| LOW | scapy/layers/tls/handshake.py | 1443 | def post_build_tls_session_update(self, msg_str): | STRING |
| LOW | scapy/layers/tls/handshake.py | 1463 | def post_dissection_tls_session_update(self, msg_str): | STRING |
| LOW | scapy/layers/tls/handshake.py | 1654 | def post_dissection_tls_session_update(self, msg_str): | STRING |
| LOW | scapy/layers/tls/handshake.py | 1708 | def post_dissection_tls_session_update(self, msg_str): | STRING |
| LOW | scapy/layers/tls/handshake.py | 1736 | def post_build_tls_session_update(self, msg_str): | STRING |
| LOW | scapy/layers/tls/handshake.py | 1744 | def post_dissection_tls_session_update(self, msg_str): | STRING |
| LOW | scapy/layers/tls/automaton_cli.py | 757 | def should_store_session_ticket_file(self): | STRING |
| LOW | scapy/layers/tls/session.py | 648 | def use_nss_master_secret_if_present(self) -> bool: | CODE |
| LOW | scapy/layers/tls/session.py | 657 | def compute_ms_and_derive_keys(self): | CODE |
| LOW | scapy/layers/tls/session.py | 1109 | def post_build_tls_session_update(self, msg_str): | CODE |
| 88 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | scapy/contrib/j1939.py | 992 | # ── background polling ──────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | scapy/contrib/j1939.py | 996 | # ── lifecycle ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | scapy/contrib/j1939.py | 1100 | # ── CAN receive loop ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | scapy/contrib/j1939.py | 1167 | # ── TP.CM (PF = 0xEC) ──────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | scapy/contrib/j1939.py | 1174 | # ── TP.DT (PF = 0xEB) ──────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | scapy/contrib/j1939.py | 1181 | # ── Short (≤ 8-byte) data frame ────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | scapy/contrib/j1939.py | 1188 | # ── RX frame handlers ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 80 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 84 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 173 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 175 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 247 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 249 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 301 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 303 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 345 | # ── first 32 bits: CAN flags(3) + J1939 identifier fields(29) ────── | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 354 | # ── standard CAN data-length + padding ──────────────────────────── | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 404 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 406 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 557 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 559 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 824 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 826 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 960 | # ── receive path ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 967 | # ── transmit path ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 1329 | # ── RX session helpers ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 1454 | # ── CAN send helpers ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 1484 | # ── TX state machine ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 1560 | # ── BAM TX ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 1602 | # ── RTS/CTS TX ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 1702 | # ── public interface ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 1838 | # ── lifecycle ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 1866 | # ── recv / send ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scapy/contrib/j1939.py | 1924 | # ── select ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | scapy/contrib/bluetooth_vsc_zephyr.py | 70 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/bluetooth_vsc_zephyr.py | 72 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/bluetooth_vsc_zephyr.py | 115 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/bluetooth_vsc_zephyr.py | 117 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/bluetooth_vsc_zephyr.py | 200 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/bluetooth_vsc_zephyr.py | 202 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/rtps/rtps.py | 266 | # ------------------------------------- | COMMENT |
| MEDIUM | scapy/contrib/rtps/rtps.py | 496 | # ---------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 41 | COMMENT | |
| LOW | .config/ci/test.sh | 1 | #!/bin/bash | COMMENT |
| LOW | .config/mypy/mypy_check.py | 1 | # SPDX-License-Identifier: GPL-2.0-only | COMMENT |
| LOW | scapy/config.py | 981 | ASN1_default_long_size = 0 | COMMENT |
| LOW | scapy/config.py | 1041 | debug_tls = False | COMMENT |
| LOW | scapy/fields.py | 401 | COMMENT | |
| LOW | scapy/asn1fields.py | 481 | # with an unknown, private high-tag prefix : | COMMENT |
| LOW | scapy/route6.py | 301 | COMMENT | |
| LOW | scapy/main.py | 241 | # Scapy CLI 'pre-start' config file | COMMENT |
| LOW | scapy/asn1/ber.py | 181 | def BER_id_dec(s): | COMMENT |
| LOW | scapy/layers/inet6.py | 2341 | ByteField("code", 0), | COMMENT |
| LOW | scapy/layers/inet6.py | 2401 | return addr | COMMENT |
| LOW | scapy/layers/quic.py | 341 | # bind_bottom_up(UDP, QUIC, sport=443) | COMMENT |
| LOW | scapy/layers/x509.py | 1021 | # "All implementations MUST accept both NULL and absent | COMMENT |
| LOW | scapy/layers/smbserver.py | 921 | CtlCode=0x11C017, | COMMENT |
| LOW | scapy/layers/ntp.py | 261 | # RFC 7822 | COMMENT |
| LOW | scapy/layers/ntp.py | 281 | # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | COMMENT |
| LOW | scapy/layers/ntp.py | 341 | COMMENT | |
| LOW | scapy/layers/ntp.py | 381 | # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | COMMENT |
| LOW | scapy/layers/ntp.py | 401 | # + Transmit Timestamp (64) + | COMMENT |
| LOW | scapy/layers/ntp.py | 1601 | """ | COMMENT |
| LOW | scapy/layers/ntp.py | 1621 | # | | | COMMENT |
| LOW | scapy/layers/ntp.py | 1641 | # | COMMENT |
| LOW | scapy/layers/ntp.py | 1661 | # Err: Must be 0 for a request. For a response, holds an error | COMMENT |
| LOW | scapy/layers/ntp.py | 1681 | # than or equal to the product of the number of data items | COMMENT |
| LOW | scapy/layers/spnego.py | 1041 | ) | COMMENT |
| LOW | scapy/layers/kerberos.py | 2141 | elif pkt.errorCode.val in [6, 7, 12, 13, 18, 23, 29, 32, 41, 60, 62]: | COMMENT |
| LOW | scapy/layers/kerberos.py | 4001 | padata = [] | COMMENT |
| LOW | scapy/layers/kerberos.py | 5641 | ), | COMMENT |
| LOW | scapy/layers/dhcp6.py | 501 | COMMENT | |
| LOW | scapy/layers/dhcp6.py | 521 | # . . | COMMENT |
| LOW | scapy/layers/dhcp6.py | 1141 | # les options preference | COMMENT |
| LOW | scapy/layers/dhcp6.py | 1181 | # - sent by client | COMMENT |
| LOW | scapy/layers/dhcp6.py | 1221 | name = "DHCPv6 Advertise Message" | COMMENT |
| LOW | scapy/layers/dhcp6.py | 1241 | # client to which the server has not sent a unicast option, the server | COMMENT |
| LOW | scapy/layers/dhcp6.py | 1261 | class DHCP6_Confirm(DHCP6): | COMMENT |
| LOW | scapy/layers/dhcp6.py | 1301 | # - the message must include a server identifier option | COMMENT |
| LOW | scapy/layers/dhcp6.py | 1361 | ##################################################################### | COMMENT |
| LOW | scapy/layers/dhcp6.py | 1381 | ##################################################################### | COMMENT |
| LOW | scapy/layers/dhcp6.py | 1421 | COMMENT | |
| LOW | scapy/layers/dhcp6.py | 1901 | elif msgtype == 5: # RENEW | COMMENT |
| LOW | scapy/layers/dhcp6.py | 1921 | # to its previous Renew message. | COMMENT |
| LOW | scapy/layers/netbios.py | 61 | ] | COMMENT |
| LOW | scapy/layers/dcerpc.py | 1841 | # pointers in NDRPacket, if Scapy detects that they won't be handled by any parent. | COMMENT |
| LOW | scapy/layers/dcerpc.py | 3001 | else: | COMMENT |
| LOW | scapy/layers/tls/handshake.py | 421 | hash_len = hkdf.hash.digest_size | COMMENT |
| LOW | scapy/layers/tls/automaton_cli.py | 761 | # Struct of ticket file : | COMMENT |
| LOW | scapy/layers/tls/session.py | 421 | self.server_certs = CertList([]) | COMMENT |
| LOW | scapy/layers/tls/session.py | 461 | # e.g. from receiving an SKE to sending a CKE. Usually, only one of | COMMENT |
| LOW | scapy/layers/tls/session.py | 861 | self.pwcs.tls13_derive_keys(cts0) | COMMENT |
| LOW | scapy/layers/tls/extensions.py | 41 | from scapy.config import conf | COMMENT |
| LOW | scapy/layers/tls/crypto/groups.py | 521 | try: | COMMENT |
| LOW | scapy/layers/tls/crypto/groups.py | 541 | # | COMMENT |
| LOW | scapy/layers/tls/crypto/groups.py | 561 | # import ecdsa | COMMENT |
| LOW | scapy/layers/tls/crypto/groups.py | 581 | # """ | COMMENT |
| LOW | scapy/layers/tls/crypto/groups.py | 601 | # y = -y % p | COMMENT |
| LOW | scapy/layers/tls/crypto/groups.py | 621 | # if isinstance(r, str): | COMMENT |
| LOW | scapy/layers/tls/crypto/groups.py | 641 | # 00000000 00000000 0001b8fa 16dfab9a ca16b6b3""") | COMMENT |
| LOW | scapy/layers/tls/crypto/groups.py | 661 | # (1, 3, 132, 0, 8), "secp160r1") | COMMENT |
| LOW | scapy/layers/tls/crypto/groups.py | 681 | # _a = 0 | COMMENT |
| 43 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | scapy/pipetool.py | 270 | s.push(msg) | CODE |
| HIGH | scapy/utils6.py | 315 | returned address are null). If a group id is provided through 'grpid' | STRING |
| HIGH | scapy/tools/UTscapy.py | 322 | "outputfile": null, | STRING |
| HIGH | scapy/tools/UTscapy.py | 325 | "num": null, | STRING |
| HIGH | scapy/layers/kerberos.py | 1629 | self.sname.toString(), | STRING |
| HIGH | scapy/layers/kerberos.py | 1832 | self.cname.toString(), | STRING |
| HIGH | scapy/layers/kerberos.py | 1846 | self.cname.toString(), | STRING |
| HIGH | scapy/layers/kerberos.py | 2291 | self.sname.toString(), | STRING |
| HIGH⚡ | scapy/layers/tls/crypto/prf.py | 97 | MD5(secret || SHA-1("A" || secret || seed)) || | STRING |
| HIGH⚡ | scapy/layers/tls/crypto/prf.py | 98 | MD5(secret || SHA-1("BB" || secret || seed)) || | STRING |
| HIGH⚡ | scapy/layers/tls/crypto/prf.py | 99 | MD5(secret || SHA-1("CCC" || secret || seed)) || ... | STRING |
| HIGH | scapy/cbor/cborfields.py | 410 | "Expected null, got %r" % obj) | CODE |
| HIGH | scapy/cbor/cborfields.py | 442 | "Expected undefined, got %r" % obj) | CODE |
| HIGH | scapy/contrib/isotp/isotp_utils.py | 101 | self.push(first_piece) | CODE |
| HIGH | scapy/contrib/isotp/isotp_utils.py | 283 | bucket.push(isotp_data) | CODE |
| HIGH | scapy/contrib/rtps/rtps.py | 232 | ~ SerializedData serializedData [only if D==1 || K==1] ~ | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scapy/route.py | 223 | # Check if source is 0.0.0.0. This is a 'via' route with no src. | COMMENT |
| LOW | scapy/fwdmachine.py | 318 | # Set SubjectPublicKeyInfo to the one from our private key | COMMENT |
| LOW | scapy/utils.py | 212 | # Close the file so something else can take it. | COMMENT |
| LOW | scapy/utils.py | 2841 | # Check if the type != 0x02, type Ethernet | COMMENT |
| LOW | scapy/utils6.py | 252 | # Set ifaceid to a binary form | COMMENT |
| LOW | scapy/asn1/mib.py | 168 | # Read the files | COMMENT |
| LOW | scapy/layers/smb2.py | 1087 | # Set SecuritySignature to nul | COMMENT |
| LOW | scapy/layers/smbclient.py | 1231 | # Check if target is IPv4 or IPv6 | STRING |
| LOW | scapy/layers/smbclient.py | 1636 | # Open file | STRING |
| LOW | scapy/layers/smbclient.py | 1657 | # Read the file | STRING |
| LOW | scapy/layers/smbclient.py | 1666 | # Close the file | STRING |
| LOW | scapy/layers/smbclient.py | 1677 | # Open file | STRING |
| LOW | scapy/layers/smbclient.py | 1696 | # Close the file | STRING |
| LOW | scapy/layers/smbclient.py | 1970 | # Open file | STRING |
| LOW | scapy/layers/smbclient.py | 1977 | # Close the file | STRING |
| LOW | scapy/layers/smbclient.py | 2013 | # Open file | STRING |
| LOW | scapy/layers/smbclient.py | 2039 | # Open file | STRING |
| LOW | scapy/layers/inet6.py | 4068 | # Check if this is an advertisement for a Default Router | COMMENT |
| LOW | scapy/layers/ldap.py | 1631 | # Check if we have a search response | COMMENT |
| LOW⚡ | scapy/layers/inet.py | 1268 | # Check if IP addresses match | STRING |
| LOW⚡ | scapy/layers/inet.py | 1272 | # Check if IP ids match | STRING |
| LOW⚡ | scapy/layers/inet.py | 1276 | # Check if IP protocols match | STRING |
| LOW | scapy/layers/dns.py | 1385 | # Check if the length is valid | COMMENT |
| LOW | scapy/layers/smbserver.py | 1218 | # Check if there is a Durable Handle Reconnect Request | COMMENT |
| LOW | scapy/layers/smbserver.py | 1393 | # Increment index | COMMENT |
| LOW | scapy/layers/smbserver.py | 1550 | # Write file | COMMENT |
| LOW | scapy/layers/smbserver.py | 1575 | # Read file and send content | COMMENT |
| LOW | scapy/layers/spnego.py | 829 | # Check if target is a hostname / Check IP | COMMENT |
| LOW | scapy/layers/http.py | 1048 | # Write file | COMMENT |
| LOW | scapy/layers/tls/handshake.py | 766 | # Check if the server early_data extension is present in | COMMENT |
| LOW | scapy/layers/tls/handshake.py | 798 | # Check if the server early_data extension is present in | COMMENT |
| LOW | scapy/layers/tls/automaton_cli.py | 1169 | # Check if DHE is need (both for out of band and resumption PSK) | STRING |
| LOW | scapy/layers/tls/cert.py | 1805 | # Check if this certificate matches the one we're looking at | COMMENT |
| LOW | scapy/layers/tls/automaton_srv.py | 670 | # Check if we have to send an HelloRetryRequest | COMMENT |
| LOW | scapy/layers/tls/automaton_srv.py | 1186 | # Check if there's a NewSessionTicket to send | COMMENT |
| LOW | scapy/cbor/cborcodec.py | 517 | # Check if obj is a CBOR object instance (for special cases like UNDEFINED) | COMMENT |
| LOW | scapy/contrib/cdp.py | 333 | # Check if field length is fixed (2 bytes) | COMMENT |
| LOW | scapy/contrib/cdp.py | 341 | # Check if field length is fixed (2 bytes) | COMMENT |
| LOW | scapy/contrib/coap_socket.py | 733 | # Assign payload to packet | COMMENT |
| LOW | scapy/contrib/diameter.py | 88 | if x & 15: # Check if reserved bits are used | CODE |
| LOW | scapy/contrib/diameter.py | 129 | if x & 31: # Check if reserved bits are used | CODE |
| LOW | scapy/contrib/diameter.py | 356 | # Check if vendor and code defined and fetch the corresponding AVP | COMMENT |
| LOW | scapy/arch/unix.py | 229 | # Check if it is a valid IPv6 address | COMMENT |
| LOW | scapy/arch/bpf/core.py | 119 | # Check if the interface can be used | COMMENT |
| LOW | scapy/arch/bpf/core.py | 127 | # Close the file descriptor | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | scapy/layers/spnego.py | 1051 | # resp.SecurityBlob.innerToken.token.mechTypes.insert( | COMMENT |
| CRITICAL | scapy/layers/kerberos.py | 3720 | pafastreq.armoredData.armor.armorValue.authenticator.encrypt( | STRING |
| CRITICAL | scapy/layers/tls/basefields.py | 171 | False in pkt.tls_session.rcs.cipher.ready.values() | CODE |
| CRITICAL | scapy/layers/tls/record.py | 150 | if False in pkt.tls_session.rcs.cipher.ready.values(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scapy/sendrecv.py | 437 | CODE | |
| LOW | scapy/sendrecv.py | 528 | CODE | |
| LOW | scapy/sendrecv.py | 119 | CODE | |
| LOW | scapy/sendrecv.py | 1172 | CODE | |
| LOW | scapy/fwdmachine.py | 107 | CODE | |
| LOW | scapy/utils.py | 3049 | CODE | |
| LOW | scapy/utils.py | 2339 | CODE | |
| LOW | scapy/layers/smbclient.py | 1183 | CODE | |
| LOW | scapy/layers/inet6.py | 145 | CODE | |
| LOW | scapy/layers/inet6.py | 3900 | CODE | |
| LOW | scapy/layers/ldap.py | 1309 | CODE | |
| LOW | scapy/layers/ldap.py | 2290 | CODE | |
| LOW | scapy/layers/inet.py | 2123 | CODE | |
| LOW | scapy/layers/dns.py | 1562 | CODE | |
| LOW | scapy/layers/ntlm.py | 1387 | CODE | |
| LOW | scapy/layers/ipsec.py | 938 | CODE | |
| LOW | scapy/layers/spnego.py | 786 | CODE | |
| LOW | scapy/layers/kerberos.py | 4552 | CODE | |
| LOW | scapy/layers/kerberos.py | 4628 | CODE | |
| LOW | scapy/layers/kerberos.py | 4736 | CODE | |
| LOW | scapy/layers/kerberos.py | 3302 | CODE | |
| LOW | scapy/layers/kerberos.py | 5023 | CODE | |
| LOW | scapy/layers/dhcp6.py | 1548 | CODE | |
| LOW | scapy/layers/dhcp.py | 567 | CODE | |
| LOW | scapy/layers/tls/automaton_cli.py | 122 | CODE | |
| LOW | scapy/layers/tls/session.py | 367 | CODE | |
| LOW | scapy/layers/tls/cert.py | 790 | CODE | |
| LOW | scapy/layers/tls/automaton_srv.py | 113 | CODE | |
| LOW | scapy/contrib/pnio.py | 146 | CODE | |
| LOW | scapy/contrib/coap_socket.py | 103 | CODE | |
| LOW | scapy/contrib/coap_socket.py | 404 | CODE | |
| LOW | scapy/contrib/isotp/isotp_scanner.py | 234 | CODE | |
| LOW | scapy/contrib/isotp/isotp_scanner.py | 305 | CODE | |
| LOW | scapy/contrib/isotp/isotp_native_socket.py | 295 | CODE | |
| LOW | scapy/contrib/isotp/isotp_soft_socket.py | 118 | CODE | |
| LOW | scapy/contrib/automotive/doip.py | 367 | CODE | |
| LOW | scapy/modules/ticketer.py | 2728 | CODE | |
| LOW | scapy/modules/ticketer.py | 2785 | CODE | |
| LOW | scapy/modules/ldaphero.py | 153 | CODE | |
| LOW | scapy/modules/krack/automaton.py | 90 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scapy/compat.py | 25 | __all__ = [ | CODE |
| LOW | scapy/__init__.py | 18 | __all__ = [ | CODE |
| LOW | scapy/consts.py | 13 | __all__ = [ | CODE |
| LOW | scapy/layers/all.py | 22 | __all__ = [] | CODE |
| LOW | scapy/layers/can.py | 46 | __all__ = ["CAN", "SignalPacket", "SignalField", "LESignedSignalField", | CODE |
| LOW | scapy/layers/msrpce/all.py | 20 | __all__ = [] | CODE |
| LOW | scapy/cbor/__init__.py | 67 | __all__ = [ | CODE |
| LOW | scapy/contrib/tcpao.py | 24 | logger = logging.getLogger(__name__) | CODE |
| LOW | scapy/contrib/icmp_extensions.py | 8 | __all__ = [ | CODE |
| LOW | scapy/contrib/cansocket_python_can.py | 45 | __all__ = ["CANSocket", "PythonCANSocket"] | CODE |
| LOW | scapy/contrib/dicom.py | 42 | __all__ = [ | CODE |
| LOW | scapy/contrib/mysql.py | 65 | __all__ = [ | CODE |
| LOW | scapy/contrib/isotp/__init__.py | 23 | __all__ = ["ISOTP", "ISOTPHeader", "ISOTPHeaderEA", "ISOTP_SF", "ISOTP_FF", | CODE |
| LOW | scapy/contrib/automotive/uds_ecu_states.py | 14 | __all__ = ["UDS_DSCPR_modify_ecu_state", "UDS_CCPR_modify_ecu_state", | CODE |
| LOW | scapy/contrib/automotive/ecu.py | 40 | __all__ = ["EcuState", "Ecu", "EcuResponse", "EcuSession", | CODE |
| LOW | scapy/contrib/automotive/gm/gmlanutils.py | 28 | __all__ = ["GMLAN_TesterPresentSender", "GMLAN_InitDiagnostics", | CODE |
| LOW | scapy/contrib/automotive/gm/gmlan_scanner.py | 56 | __all__ = ["GMLAN_Scanner", "GMLAN_ServiceEnumerator", "GMLAN_RDBIEnumerator", | CODE |
| LOW | scapy/contrib/automotive/gm/gmlan_ecu_states.py | 12 | __all__ = ["GMLAN_modify_ecu_state", "GMLAN_SAPR_modify_ecu_state"] | CODE |
| LOW | scapy/libs/crc.py | 12 | __all__ = [ | CODE |
| LOW | scapy/libs/test_pyx.py | 17 | __all__ = [ | CODE |
| LOW | scapy/libs/matplot.py | 16 | __all__ = [ | CODE |
| LOW | scapy/libs/rfc3961.py | 24 | __all__ = [ | CODE |
| LOW | scapy/arch/__init__.py | 45 | __all__ = [ # noqa: F405 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scapy/contrib/bfd.py | 150 | 7784, # seamless BFD | CODE |
| MEDIUM | scapy/libs/winpcapy.py | 676 | # return the error text pertaining to the last pcap library error. | COMMENT |
| LOW | scapy/arch/windows/structures.py | 224 | # for now, just use void * for pointers to unused structures | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .config/ci/install.sh | 8 | # Usage: | COMMENT |
| LOW | .config/ci/test.sh | 8 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scapy/layers/zigbee.py | 775 | # TODO: implement 10 to 13 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scapy/layers/inet6.py | 4132 | The purpose of this function is to send provided RA message at layer 2 | STRING |