AI Slop Code RIsk Monitor

fortra/impacket

Impacket is a collection of Python classes for working with network protocols.

15.4 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for fortra/impacket, a Python project with 16,165 GitHub stars. SynthScan examined 198,612 lines of code across 364 source files, recording 2149 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 15.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.

15.4
Adjusted Signal
15.4
Raw Pattern Score
100%
Time Factor
2026-10-01
Last Push
16.2K
Stars
Python
Language
198.6K
Lines of Code
364
Files
2.1K
Pattern Hits
2026-10-12
Scan Date
0.55
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 27.5/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 1208 finding(s).

Hallucinated Dependency & Supply Chain Risk 4.6/100 · LOW

Are imports declared and package/API names verified? 139 finding(s).

Agent Over-Engineering Ratio 38.4/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 1120 finding(s).

PR Review Velocity Impact 57.5/100 · HIGH

Which changes need focused human review? 2149 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 3HIGH 198MEDIUM 115LOW 1833

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 2149 distinct pattern matches across 19 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.

Empty Error Handlers179 hits · 895 pts
SeverityFileLineSnippetContext
HIGHimpacket/smb3.py738except:CODE
HIGHimpacket/smb3.py994except:CODE
HIGHimpacket/smb3.py1065except:CODE
HIGHimpacket/smb3.py1072except:CODE
HIGHimpacket/smb3.py1078except:CODE
HIGHimpacket/smb3.py1085except:CODE
HIGHimpacket/tds.py1574except ssl.SSLWantReadError:CODE
HIGHimpacket/tds.py1719except Exception:CODE
HIGHimpacket/tds.py1876except Exception as e:CODE
HIGHimpacket/smb.py3474except:CODE
HIGHimpacket/smb.py3804except:CODE
HIGHimpacket/smb.py3692except UnicodeDecodeError:CODE
HIGHimpacket/smb.py3699except UnicodeDecodeError:CODE
HIGHimpacket/smb.py3705except UnicodeDecodeError:CODE
HIGHimpacket/smb.py3712except UnicodeDecodeError:CODE
HIGHimpacket/smbserver.py4586except:CODE
HIGHimpacket/smbserver.py4180except IndexError:CODE
HIGHimpacket/smbserver.py5296except:CODE
HIGHimpacket/dot11.py2248except StopIteration:CODE
HIGHimpacket/dot11.py2472except StopIteration:CODE
HIGHimpacket/dot11.py2708except StopIteration:CODE
HIGHimpacket/dot11.py2832except StopIteration:CODE
HIGHimpacket/dot11.py2940except StopIteration:CODE
HIGHimpacket/dot11.py3066except StopIteration:CODE
HIGHimpacket/structure.py488except Exception:CODE
HIGHimpacket/ImpactPacket.py644except:CODE
HIGHimpacket/winregistry.py822except Exception:CODE
HIGHimpacket/winregistry.py240except Exception as e:CODE
HIGHimpacket/nmb.py186except NameError:CODE
HIGHimpacket/nmb.py528except socket.error:CODE
HIGHimpacket/smbconnection.py1086except:CODE
HIGHimpacket/smbconnection.py123except:CODE
HIGHimpacket/dcerpc/v5/rpcrt.py1807except:CODE
HIGHimpacket/dcerpc/v5/rpcrt.py2151except Exception:CODE
HIGHimpacket/dcerpc/v5/transport.py53except:CODE
HIGHimpacket/dcerpc/v5/samr.py2801except:CODE
HIGHimpacket/dcerpc/v5/samr.py2810except:CODE
HIGHimpacket/dcerpc/v5/samr.py2819except:CODE
HIGHimpacket/dcerpc/v5/samr.py2854except:CODE
HIGHimpacket/dcerpc/v5/samr.py2858except:CODE
HIGHimpacket/dcerpc/v5/samr.py3020except:CODE
HIGHimpacket/dcerpc/v5/enum.py244except TypeError:CODE
HIGHimpacket/dcerpc/v5/enum.py433except (AttributeError, ValueError):CODE
HIGHimpacket/ldap/ldap.py233except TypeError:CODE
HIGHimpacket/ldap/ldap.py395except TypeError:CODE
HIGHimpacket/ldap/ldap.py432except TypeError:CODE
HIGHimpacket/ldap/ldapasn1.py554except KeyError:CODE
HIGHimpacket/krb5/kpasswd.py361except:CODE
HIGHimpacket/krb5/kerberosv5.py531except Exception:CODE
HIGHimpacket/krb5/kerberosv5.py122except:CODE
HIGHimpacket/krb5/kerberosv5.py135except TypeError:CODE
HIGHimpacket/krb5/kerberosv5.py140except TypeError:CODE
HIGHimpacket/krb5/kerberosv5.py145except TypeError:CODE
HIGHimpacket/krb5/kerberosv5.py150except TypeError:CODE
HIGHimpacket/krb5/kerberosv5.py581except TypeError:CODE
HIGHimpacket/krb5/kerberosv5.py586except TypeError:CODE
HIGHimpacket/krb5/kerberosv5.py591except TypeError:CODE
HIGHimpacket/krb5/kerberosv5.py780except Exception:CODE
HIGHimpacket/krb5/kerberosv5.py778except Exception:CODE
HIGHimpacket/examples/secretsdump.py1111except:CODE
119 more matches not shown…
Excessive Try-Catch Wrapping598 hits · 612 pts
SeverityFileLineSnippetContext
LOWsetup.py41except Exception:CODE
LOWimpacket/IP6_Address.py249 except Exception:CODE
MEDIUMimpacket/IP6_Address.py244def is_a_valid_text_representation(cls, text_representation):CODE
LOWimpacket/ntlm.py52except Exception:CODE
MEDIUMimpacket/tds.py1137def _open_pipe(self):CODE
MEDIUMimpacket/tds.py1435def disconnect(self):CODE
LOW⚡impacket/tds.py1187 except Exception as e:CODE
LOW⚡impacket/tds.py1192 except Exception as e:CODE
LOW⚡impacket/tds.py1197 except Exception as e:CODE
LOWimpacket/tds.py1108 except Exception as e:CODE
LOWimpacket/tds.py1403 except Exception:CODE
LOWimpacket/tds.py1427 except Exception:CODE
LOWimpacket/tds.py1712 except Exception as e:CODE
LOWimpacket/tds.py1719 except Exception:CODE
LOWimpacket/tds.py1876 except Exception as e:CODE
LOWimpacket/smb.py3093 except Exception:CODE
MEDIUMimpacket/smbserver.py3043def _kerberos_auth(token, connData, smbServer):CODE
LOW⚡impacket/smbserver.py1577 except Exception as e:CODE
LOW⚡impacket/smbserver.py1588 except Exception as e:CODE
LOW⚡impacket/smbserver.py3728 except Exception as e:CODE
LOW⚡impacket/smbserver.py3742 except Exception as e:CODE
LOWimpacket/smbserver.py240 except Exception as e:CODE
LOWimpacket/smbserver.py383 except Exception as e:CODE
LOWimpacket/smbserver.py704 except Exception as e:CODE
LOWimpacket/smbserver.py980 except Exception as e:CODE
LOWimpacket/smbserver.py1174 except Exception as e:CODE
LOWimpacket/smbserver.py1312 except Exception as e:CODE
LOWimpacket/smbserver.py1449 except Exception as e:CODE
LOWimpacket/smbserver.py1636 except Exception as e:CODE
LOWimpacket/smbserver.py1671 except Exception as e:CODE
LOWimpacket/smbserver.py1719 except Exception as e:CODE
LOWimpacket/smbserver.py1917 except Exception as e:CODE
LOWimpacket/smbserver.py1963 except Exception as e:CODE
LOWimpacket/smbserver.py2016 except Exception as e:CODE
LOWimpacket/smbserver.py2203 except Exception as e:CODE
LOWimpacket/smbserver.py2303 except Exception as e:CODE
LOWimpacket/smbserver.py2333 except Exception as e:CODE
LOWimpacket/smbserver.py2751 except Exception as e:CODE
LOWimpacket/smbserver.py2874 except Exception as e:CODE
LOWimpacket/smbserver.py3321 except Exception as e:CODE
LOWimpacket/smbserver.py3604 except Exception as e:CODE
LOWimpacket/smbserver.py3634 except Exception as e:CODE
LOWimpacket/smbserver.py3901 except Exception as e:CODE
LOWimpacket/smbserver.py3972 except Exception as e:CODE
LOWimpacket/smbserver.py4023 except Exception as e:CODE
LOWimpacket/smbserver.py4051 except Exception as e:CODE
LOWimpacket/smbserver.py4325 except Exception as e:CODE
LOWimpacket/smbserver.py4398 except Exception as e:CODE
LOWimpacket/smbserver.py5021 except Exception as e:CODE
LOWimpacket/smbserver.py5084 except Exception as e:CODE
LOWimpacket/mqtt.py278 except Exception:CODE
LOWimpacket/mqtt.py355 except Exception as e:CODE
LOWimpacket/ese.py950 except Exception:CODE
LOWimpacket/acl.py382 except Exception as e:CODE
LOWimpacket/crypto.py28except Exception:CODE
LOWimpacket/structure.py141 except Exception as e:CODE
LOWimpacket/structure.py167 except Exception as e:CODE
LOWimpacket/structure.py488 except Exception:CODE
LOWimpacket/winregistry.py240 except Exception as e:CODE
LOWimpacket/winregistry.py822 except Exception:CODE
538 more matches not shown…
Over-Commented Block449 hits · 436 pts
SeverityFileLineSnippetContext
LOWsetup.py1#!/usr/bin/env pythonCOMMENT
LOWimpacket/ICMP6.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/eap.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/hresult_errors.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/dns.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/dns.py21# - 2181 - Clarifications to the DNS Specification [https://www.ietf.org/rfc/rfc2181.txt]COMMENT
LOWimpacket/dns.py421 # Preference Unsigned 16-bit integer.COMMENT
LOWimpacket/smb3.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/smb3.py21#COMMENT
LOWimpacket/smb3.py781 # If you want, for debugging purposesCOMMENT
LOWimpacket/smb3.py881 #in [KILE] 3.1.1.2:COMMENT
LOWimpacket/smb3.py1141 self._Connection['SupportsEncryption'] = FalseCOMMENT
LOWimpacket/smb3.py1641 # ToDo:COMMENT
LOWimpacket/IP6_Address.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/ntlm.py61NTLM_AUTH_PKT_PRIVACY = 6COMMENT
LOWimpacket/ntlm.py101NTLMSSP_REQUEST_NON_NT_SESSION_KEY = 0x00400000COMMENT
LOWimpacket/ntlm.py121# is NTLMSSP_TARGET_TYPE_SERVERCOMMENT
LOWimpacket/ntlm.py161# If set, requests LAN Manager (LM) session key computation. NTLMSSP_NEGOTIATE_LM_KEY andCOMMENT
LOWimpacket/ntlm.py681 keyExchangeKey = KXKEY(ntlmChallenge['flags'], sessionBaseKey, lmResponse, ntlmChallenge['challenge'], password,COMMENT
LOWimpacket/ntlm.py701 # elif responseFlags & NTLMSSP_KEY_56:COMMENT
LOWimpacket/NDP.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/tds.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/tds.py21# Aurélien Chalot (@Defte_) added support for MSSQL via named pipeCOMMENT
LOWimpacket/smb.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/smb.py21#COMMENT
LOWimpacket/smb.py41# [ ] Try [SMB]transport fragmentation using Transact requestsCOMMENT
LOWimpacket/smb.py2901 # * The MD5 algorithm, as specified in [RFC1321], MUST be used to generate a hash of the SMBCOMMENT
LOWimpacket/smbserver.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/smbserver.py3901 except Exception as e:COMMENT
LOWimpacket/smbserver.py4641COMMENT
LOWimpacket/smbserver.py4661 # maxDataCount: the max amount of data that can be transferred agreedCOMMENT
LOWimpacket/smbserver.py4721 # If SMB command exists, it returns the original function replacedCOMMENT
LOWimpacket/smbserver.py4821 def signSMBv1(self, connData, packet, signingSessionKey, signingChallengeResponse):COMMENT
LOWimpacket/smbserver.py4961 # Captured now: a command in this request (e.g. LOGOFF) may clear connData['Uid']COMMENT
LOWimpacket/smbserver.py5081 else:COMMENT
LOWimpacket/system_errors.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/ImpactDecoder.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/__init__.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/cdp.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/Dot11Crypto.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/mqtt.py1#!/usr/bin/env pythonCOMMENT
LOWimpacket/ese.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/ese.py801 return self.__tagToRecord(cursor, tag['EntryData'], filter_tables = filter_tables)COMMENT
LOWimpacket/Dot11KeyManager.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/negoex.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/dot11.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/dot11.py41 # +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+COMMENT
LOWimpacket/dot11.py1921 def get_dB_ant_noise( self ):COMMENT
LOWimpacket/spnego.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/acl.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/crypto.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/crypto.py41# + +COMMENT
LOWimpacket/crypto.py101# + Algorithm AES-CMAC +COMMENT
LOWimpacket/crypto.py121# + Step 2. n := ceil(len/const_Bsize); +COMMENT
LOWimpacket/crypto.py181# + AES-CMAC-PRF-128 +COMMENT
LOWimpacket/http.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/wps.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/helper.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/msada_guids.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
LOWimpacket/ImpactPacket.py1# Impacket - Collection of Python classes for working with network protocols.COMMENT
389 more matches not shown…
Deep Nesting340 hits · 293 pts
SeverityFileLineSnippetContext
LOWimpacket/dns.py372CODE
LOWimpacket/smb3.py424CODE
LOWimpacket/smb3.py986CODE
LOWimpacket/smb3.py1822CODE
LOWimpacket/IP6_Address.py129CODE
LOWimpacket/IP6_Address.py203CODE
LOWimpacket/ntlm.py894CODE
LOWimpacket/tds.py847CODE
LOWimpacket/tds.py1741CODE
LOWimpacket/tds.py2232CODE
LOWimpacket/tds.py2306CODE
LOWimpacket/tds.py2370CODE
LOWimpacket/tds.py2696CODE
LOWimpacket/tds.py2815CODE
LOWimpacket/smb.py324CODE
LOWimpacket/smb.py1040CODE
LOWimpacket/smb.py2950CODE
LOWimpacket/smb.py3620CODE
LOWimpacket/smb.py3992CODE
LOWimpacket/smb.py4093CODE
LOWimpacket/smb.py4250CODE
LOWimpacket/smbserver.py391CODE
LOWimpacket/smbserver.py445CODE
LOWimpacket/smbserver.py582CODE
LOWimpacket/smbserver.py726CODE
LOWimpacket/smbserver.py825CODE
LOWimpacket/smbserver.py878CODE
LOWimpacket/smbserver.py1007CODE
LOWimpacket/smbserver.py1055CODE
LOWimpacket/smbserver.py1122CODE
LOWimpacket/smbserver.py1266CODE
LOWimpacket/smbserver.py1404CODE
LOWimpacket/smbserver.py1557CODE
LOWimpacket/smbserver.py1608CODE
LOWimpacket/smbserver.py1690CODE
LOWimpacket/smbserver.py1736CODE
LOWimpacket/smbserver.py1783CODE
LOWimpacket/smbserver.py1831CODE
LOWimpacket/smbserver.py1878CODE
LOWimpacket/smbserver.py1936CODE
LOWimpacket/smbserver.py1982CODE
LOWimpacket/smbserver.py2172CODE
LOWimpacket/smbserver.py2220CODE
LOWimpacket/smbserver.py2401CODE
LOWimpacket/smbserver.py2538CODE
LOWimpacket/smbserver.py3131CODE
LOWimpacket/smbserver.py3346CODE
LOWimpacket/smbserver.py3532CODE
LOWimpacket/smbserver.py3696CODE
LOWimpacket/smbserver.py3766CODE
LOWimpacket/smbserver.py3827CODE
LOWimpacket/smbserver.py3935CODE
LOWimpacket/smbserver.py3984CODE
LOWimpacket/smbserver.py4363CODE
LOWimpacket/smbserver.py4940CODE
LOWimpacket/ImpactDecoder.py73CODE
LOWimpacket/ImpactDecoder.py130CODE
LOWimpacket/ImpactDecoder.py163CODE
LOWimpacket/ImpactDecoder.py435CODE
LOWimpacket/ImpactDecoder.py525CODE
280 more matches not shown…
Hyper-Verbose Identifiers275 hits · 290 pts
SeverityFileLineSnippetContext
LOWimpacket/ICMP6.py151 def __get_message_description(self):CODE
LOWimpacket/ICMP6.py339 def get_neighbor_advertisement_flags(self):CODE
LOWimpacket/ICMP6.py342 def set_neighbor_advertisement_flags(self, flags):CODE
LOWimpacket/ICMP6.py388 def __build_node_information_message(class_object, type, code, payload = None):CODE
LOWimpacket/ICMP6.py505 def set_node_information_data(self, data):CODE
LOWimpacket/ICMP6.py510 def get_note_information_data(self):CODE
LOWimpacket/ICMP6.py529 def get_originating_packet_data(self):CODE
LOWimpacket/dns.py372 def __process_answer_structure(self, offset, num):CODE
LOWimpacket/smb3.py2128 def perform_hostname_validation(self):CODE
LOWimpacket/IP6_Address.py129 def get_human_readable_address_type(self):CODE
LOWimpacket/IP6_Address.py148 def __is_address_in_compressed_form(self, address):CODE
LOWimpacket/IP6_Address.py163 def __count_compressed_groups(self, address):CODE
LOWimpacket/IP6_Address.py168 def __count_compression_marker(self, address):CODE
LOWimpacket/IP6_Address.py185 def __expand_compressed_address(self, address):CODE
LOWimpacket/IP6_Address.py203 def __trim_longest_zero_chain(self, address):CODE
LOWimpacket/IP6_Address.py244 def is_a_valid_text_representation(cls, text_representation):CODE
LOWimpacket/dpapi_ng.py281def generate_kek_secret_from_pubkey(gke: GroupKeyEnvelope, key_id: KeyIdentifier,l2_key: bytes):CODE
LOWimpacket/tds.py1333 def _has_active_tls_channel_binding(self):CODE
LOWimpacket/tds.py1365 def _create_named_pipe_transport(CODE
LOWimpacket/tds.py1588 def generate_cbt_from_tls_unique(self):CODE
LOWimpacket/smb.py3399 def get_server_dns_domain_name(self):CODE
LOWimpacket/smb.py3436 def perform_hostname_validation(self):CODE
LOWimpacket/smbserver.py109def _parse_negotiate_contexts(data: bytes) -> dict:CODE
LOWimpacket/Dot11KeyManager.py22 def __get_bssid_hasheable_type(self, bssid):CODE
LOWimpacket/dot11.py2219 def __calculate_elements_length(self, elements):CODE
LOW⚡impacket/dot11.py2658 def get_authentication_algorithm(self):CODE
LOW⚡impacket/dot11.py2662 def set_authentication_algorithm(self, algorithm):CODE
LOW⚡impacket/dot11.py2666 def get_authentication_sequence(self):CODE
LOW⚡impacket/dot11.py2670 def set_authentication_sequence(self, seq):CODE
LOW⚡impacket/dot11.py2674 def get_authentication_status(self):CODE
LOW⚡impacket/dot11.py2678 def set_authentication_status(self, status):CODE
LOWimpacket/acl.py166 def get_readable_standard_rights(self):CODE
LOWimpacket/acl.py184 def get_readable_specific_rights(self):CODE
LOWimpacket/IP6_Extension_Headers.py125 def get_header_extension_length(self):CODE
LOWimpacket/IP6_Extension_Headers.py131 def set_header_extension_length(self, header_extension_length):CODE
LOWimpacket/nmb.py606 def name_registration_request(self, nbname, destaddr, qtype, scope, nb_flags=0, nb_address='0.0.0.0'):CODE
LOWimpacket/dcerpc/v5/rpcrt.py1373 def set_default_max_fragment_size(self):CODE
LOWimpacket/dcerpc/v5/transport.py253 def set_default_max_fragment_size(self):CODE
LOWimpacket/dcerpc/v5/rpch.py783 def handle_out_of_sequence_rts(self, response_data):CODE
LOWimpacket/krb5/pac.py475def _normalize_pac_checksum_type(signature_type, signature_length, aes_key, infer_aes_signature_type):CODE
LOWimpacket/krb5/crypto.py731def get_kerberos_key_for_enctype(enctype, nt_hash=None, generic_aes_key=None, aes128_key=None, aes256_key=None):CODE
LOWimpacket/krb5/asn1.py74def _sequence_optional_component(name, tag_value, type, **subkwargs):CODE
LOWimpacket/examples/secretsdump.py1665 def __decrypt_history_entries_aes(self, rid_int, entries):CODE
LOWimpacket/examples/secretsdump.py1703 def __decode_aes_history_block(self, rid_int, data, offset, length):CODE
LOWimpacket/examples/secretsdump.py2625def _derive_trust_kerberos_keys(rawSecret, domain, partner, isIncoming, partnerFlat=None, localFlat=None):CODE
LOWimpacket/examples/smbclient.py888 def _resolve_path_with_dfs_boundary(self, line):CODE
LOWimpacket/examples/smbclient.py979 def _restore_original_connection(self):CODE
LOWimpacket/examples/ldap_shell.py387 def toggle_account_enable_disable(self, user_name, enable):CODE
LOWimpacket/examples/__init__.py13def _insecure_create_default_context(purpose=ssl.Purpose.SERVER_AUTH, *, cafile=None, capath=None, cadata=None):CODE
LOWimpacket/examples/__init__.py21def monkeypatch_ssl_create_default_context():CODE
LOWimpacket/examples/__init__.py35def monkeypatch_readline_backend():CODE
LOWimpacket/examples/regsecrets.py423 def __decrypt_history_entries_aes(self, rid_int, entries):CODE
LOWimpacket/examples/regsecrets.py461 def __decode_aes_history_block(self, rid_int, data, offset, length):CODE
LOWimpacket/examples/ntlmrelayx/clients/ldaprelayclient.py181 def create_authenticate_message(self):CODE
LOWimpacket/examples/ntlmrelayx/utils/spnegoutils.py79def find_embedded_spnego_token(data):CODE
LOWimpacket/examples/ntlmrelayx/utils/spnegoutils.py102def build_ntlm_fallback_token():CODE
LOWimpacket/examples/ntlmrelayx/utils/spnegoutils.py110def build_ntlm_challenge_token(challenge):CODE
LOWimpacket/examples/ntlmrelayx/utils/rdp_ssl.py52def generate_self_signed_cert(common_name="RDP-Server"):CODE
LOWimpacket/examples/ntlmrelayx/servers/rdprelayserver.py404 def build_tsrequest_challenge(self, challenge_data):CODE
LOWimpacket/examples/ntlmrelayx/servers/socksserver.py282class SocksRequestHandler(socketserver.BaseRequestHandler):CODE
215 more matches not shown…
Unused Imports128 hits · 126 pts
SeverityFileLineSnippetContext
LOWsetup.py20CODE
LOWimpacket/smb3.py45CODE
LOWimpacket/dpapi_ng.py12CODE
LOWimpacket/http.py30CODE
LOWimpacket/smbconnection.py31CODE
LOWimpacket/dcerpc/v5/transport.py30CODE
LOWimpacket/dcerpc/v5/tsts.py29CODE
LOWimpacket/dcerpc/v5/tsts.py34CODE
LOWimpacket/dcerpc/v5/tsts.py36CODE
LOWimpacket/dcerpc/v5/rpch.py19CODE
LOWimpacket/dcerpc/v5/rpch.py20CODE
LOWimpacket/dcerpc/v5/nrpc.py31CODE
LOWimpacket/dcerpc/v5/icpr.py29CODE
LOWimpacket/dcerpc/v5/icpr.py33CODE
LOWimpacket/dcerpc/v5/nspi.py33CODE
LOWimpacket/dcerpc/v5/nspi.py33CODE
LOWimpacket/dcerpc/v5/nspi.py36CODE
LOWimpacket/dcerpc/v5/nspi.py36CODE
LOWimpacket/dcerpc/v5/fsrvp.py19CODE
LOWimpacket/dcerpc/v5/fsrvp.py20CODE
LOWimpacket/dcerpc/v5/fsrvp.py28CODE
LOWimpacket/ldap/ldap.py38CODE
LOWimpacket/ldap/ldap.py38CODE
LOWimpacket/ldap/ldap.py38CODE
LOWimpacket/ldap/ldap.py45CODE
LOWimpacket/ldap/ldap.py46CODE
LOWimpacket/krb5/keytab.py25CODE
LOWimpacket/krb5/keytab.py25CODE
LOWimpacket/krb5/pac.py19CODE
LOWimpacket/krb5/pac.py25CODE
LOWimpacket/krb5/kerberosv5.py29CODE
LOWimpacket/examples/secretsdump.py105CODE
LOWimpacket/examples/smbclient.py31CODE
LOWimpacket/examples/ldap_shell.py32CODE
LOWimpacket/examples/ldap_shell.py32CODE
LOWimpacket/examples/utils.py68CODE
LOWimpacket/examples/ntlmrelayx/clients/smbrelayclient.py25CODE
LOWimpacket/examples/ntlmrelayx/clients/smbrelayclient.py45CODE
LOWimpacket/examples/ntlmrelayx/clients/smbrelayclient.py45CODE
LOWimpacket/examples/ntlmrelayx/clients/ldaprelayclient.py35CODE
LOWimpacket/examples/ntlmrelayx/clients/ldaprelayclient.py35CODE
LOWimpacket/examples/ntlmrelayx/clients/httprelayclient.py22CODE
LOWimpacket/examples/ntlmrelayx/clients/httprelayclient.py24CODE
LOWimpacket/examples/ntlmrelayx/clients/dcsyncclient.py18CODE
LOWimpacket/examples/ntlmrelayx/clients/dcsyncclient.py29CODE
LOWimpacket/examples/ntlmrelayx/clients/dcsyncclient.py31CODE
LOWimpacket/examples/ntlmrelayx/clients/dcsyncclient.py34CODE
LOW…packet/examples/ntlmrelayx/utils/shadow_credentials.py6CODE
LOW…packet/examples/ntlmrelayx/utils/shadow_credentials.py21CODE
LOWimpacket/examples/ntlmrelayx/servers/rpcrelayserver.py24CODE
LOWimpacket/examples/ntlmrelayx/servers/rpcrelayserver.py25CODE
LOWimpacket/examples/ntlmrelayx/servers/rpcrelayserver.py26CODE
LOW…packet/examples/ntlmrelayx/servers/winrmrelayserver.py20CODE
LOWimpacket/examples/ntlmrelayx/servers/rawrelayserver.py24CODE
LOWimpacket/examples/ntlmrelayx/servers/rawrelayserver.py25CODE
LOWimpacket/examples/ntlmrelayx/servers/rawrelayserver.py26CODE
LOWimpacket/examples/ntlmrelayx/servers/rawrelayserver.py28CODE
LOWimpacket/examples/ntlmrelayx/servers/rawrelayserver.py30CODE
LOWimpacket/examples/ntlmrelayx/servers/__init__.py11CODE
LOWimpacket/examples/ntlmrelayx/servers/__init__.py12CODE
68 more matches not shown…
Self-Referential Comments35 hits · 104 pts
SeverityFileLineSnippetContext
MEDIUMimpacket/tds.py1451 # This function is the generic sendTDS packet which is used to embed data into a regular TDS packetCOMMENT
MEDIUMimpacket/tds.py1480 # This function is a wrapper that is used to dispatch packets to send depending of the TLS contextCOMMENT
MEDIUMimpacket/tds.py1517 # This function is the generic recvTDS packet which is used to extract data from a regular TDS packetCOMMENT
MEDIUMimpacket/tds.py1555 # This function is a wrapper that is used to dispatch packets to read depending of the TLS contextCOMMENT
MEDIUMimpacket/tds.py1605 # This function is used to set the TLS context, process the handshak in memoryCOMMENT
MEDIUMimpacket/smb.py126SMB_O_CREAT = 0x10 # Create the file if file does not exists. Otherwise, operation fails.CODE
MEDIUMimpacket/examples/serviceinstall.py97 # Create the serviceCOMMENT
MEDIUMimpacket/examples/ntlmrelayx/clients/dcsyncclient.py268 # Initialize NTDSHashes objectCOMMENT
MEDIUMimpacket/examples/ntlmrelayx/utils/ssl.py34 # Create a private keyCOMMENT
MEDIUMimpacket/examples/ntlmrelayx/utils/ssl.py38 # Create the certificateCOMMENT
MEDIUMimpacket/examples/ntlmrelayx/utils/ssl.py57 # Create a context, we don't really care about the SSL/TLSCOMMENT
MEDIUMimpacket/examples/ntlmrelayx/attacks/ldapattack.py1122 # Create a nice shiny new user for the escalationCOMMENT
MEDIUMimpacket/examples/ntlmrelayx/attacks/ldapattack.py1148 # Create a nice shiny new user for the escalationCOMMENT
MEDIUMimpacket/examples/ntlmrelayx/attacks/ldapattack.py1360# Create an object ACE with the specified privguid and our sidCOMMENT
MEDIUMimpacket/examples/ntlmrelayx/attacks/ldapattack.py1377# Create an ALLOW ACE with the specified sidCOMMENT
MEDIUMtests/SMB_RPC/test_acl.py113 # Create a new ACE for a different user with R,W permissionsCOMMENT
MEDIUMexamples/secretsdump.py146 # Create the baseDNCOMMENT
MEDIUMexamples/GetADComputers.py62 # Create the baseDNCOMMENT
MEDIUMexamples/dacledit.py374 # This function is called before any writing action (write, remove or restore)COMMENT
MEDIUMexamples/badsuccessor.py83 # Create the baseDN if not providedCOMMENT
MEDIUMexamples/GetLAPSPassword.py84 # Create the baseDNCOMMENT
MEDIUMexamples/raiseChild.py207 # Create the pipes threadsCOMMENT
MEDIUMexamples/GetNPUsers.py89 # Create the baseDNCOMMENT
MEDIUMexamples/findDelegation.py95 # Create the baseDNCOMMENT
MEDIUMexamples/rbcd.py55# Create an ALLOW ACE with the specified sidCOMMENT
MEDIUMexamples/goldenPac.py160 # Create the pipes threadsCOMMENT
MEDIUMexamples/addcomputer.py114 # Create the baseDNCOMMENT
MEDIUMexamples/GetADUsers.py58 # Create the baseDNCOMMENT
MEDIUMexamples/changepasswd.py945 # Create a password management sessionCOMMENT
MEDIUMexamples/ping6.py47# Create a new IP packet and set its source and destination addresses.COMMENT
MEDIUMexamples/GetUserSPNs.py23# This module provides a Python implementation for this attack, adding also the ability to PtH/Ticket/Key.COMMENT
MEDIUMexamples/GetUserSPNs.py102 # Create the baseDNCOMMENT
MEDIUMexamples/ping.py46# Create a new IP packet and set its source and destination addresses.COMMENT
MEDIUMexamples/ping.py52# Create a new ICMP packet of type ECHO.COMMENT
MEDIUMexamples/psexec.py183 # Create the pipes threadsCOMMENT
Redundant / Tautological Comments51 hits · 80 pts
SeverityFileLineSnippetContext
LOWimpacket/smb.py128SMB_O_OPEN = 0x01 # Open the file if the file existsCODE
LOW⚡impacket/smbserver.py1581 # Check if the file was marked for removalCOMMENT
LOW⚡impacket/smbserver.py3732 # Check if the file was marked for removalCOMMENT
LOWimpacket/smbserver.py2130 # Check if the Tid matches the Tid trying to disconnectCOMMENT
LOWimpacket/smbserver.py2154 # Check if the Uid matches the user trying to logoffCOMMENT
LOWimpacket/smbserver.py3360 #Check if NEGOEX was offered by the client for now, as we havent implemented/supported yetCOMMENT
LOWimpacket/smbserver.py4172 # Check if the next data will exceed the OutputBufferLengthCOMMENT
LOWimpacket/smb3structs.py178FILE_OPEN_IF = 0x00000003 # Open the file if it already exists; otherwise, create the file. This value SHOULDCODE
LOWimpacket/dcerpc/v5/transport.py513 # Check if we have a smb connection already setupCOMMENT
LOWimpacket/dcerpc/v5/rpch.py678 # Check if the previous chunk is still thereCOMMENT
LOWimpacket/examples/secretsdump.py874 # Check if remoteName is FQDN, otherwise it will likely be the hostname onlyCOMMENT
LOWimpacket/examples/secretsdump.py2504 # Check if old LSA secrets values are also need to be shownCOMMENT
LOWimpacket/examples/regsecrets.py81 # Check if remoteName is FQDN, otherwise it will likely be the hostname only and we can't build the saltCOMMENT
LOWimpacket/examples/regsecrets.py1029 # Check if old LSA secrets values are also need to be shownCOMMENT
LOWimpacket/examples/regsecrets.py1065 # Check if old LSA secrets values are also need to be shownCOMMENT
LOWimpacket/examples/ntlmrelayx/clients/httprelayclient.py58 #Check if server wants authCOMMENT
LOWimpacket/examples/ntlmrelayx/utils/targetsutils.py70 # Check if we have a single target, with no URI formCOMMENT
LOW⚡impacket/examples/ntlmrelayx/servers/rdprelayserver.py371 # Check if SOCKS is enabled and if we support the target schemeCOMMENT
LOWimpacket/examples/ntlmrelayx/servers/rpcrelayserver.py425 # Check if SOCKS is enabled and if we support the target schemeCOMMENT
LOW…acket/examples/ntlmrelayx/servers/winrmsrelayserver.py571 # Check if SOCKS is enabled and if we support the target schemeCOMMENT
LOW…packet/examples/ntlmrelayx/servers/winrmrelayserver.py555 # Check if SOCKS is enabled and if we support the target schemeCOMMENT
LOWimpacket/examples/ntlmrelayx/servers/rawrelayserver.py187 # Check if SOCKS is enabled and if we support the target schemeCOMMENT
LOWimpacket/examples/ntlmrelayx/servers/smbrelayserver.py1002 # Check if SOCKS is enabled and if we support the target schemeCOMMENT
LOWimpacket/examples/ntlmrelayx/servers/httprelayserver.py557 # Check if SOCKS is enabled and if we support the target schemeCOMMENT
LOWimpacket/examples/ntlmrelayx/servers/wcfrelayserver.py333 # Check if SOCKS is enabled and if we support the target schemeCOMMENT
LOW…packet/examples/ntlmrelayx/servers/mssqlrelayserver.py475 # Check if SOCKS is enabled and if we support the target schemeCOMMENT
LOW…cket/examples/ntlmrelayx/servers/socksplugins/mssql.py166 # Check if we have a connection for the userCOMMENT
LOW…packet/examples/ntlmrelayx/servers/socksplugins/smb.py366 # Check if we have a connection for the userCOMMENT
LOW…packet/examples/ntlmrelayx/servers/socksplugins/smb.py522 # Check if we have a connection for the userCOMMENT
LOW…acket/examples/ntlmrelayx/servers/socksplugins/http.py65 # Check if we have a connection for the userCOMMENT
LOW…acket/examples/ntlmrelayx/servers/socksplugins/http.py179 # Check if the body is larger than 1 packetCOMMENT
LOW…acket/examples/ntlmrelayx/servers/socksplugins/smtp.py102 # Check if we have a connection for the userCOMMENT
LOW…acket/examples/ntlmrelayx/servers/socksplugins/imap.py95 # Check if we have a connection for the userCOMMENT
LOWimpacket/examples/ntlmrelayx/attacks/imapattack.py47 #Check if search workedCOMMENT
LOW⚡impacket/examples/ntlmrelayx/attacks/ldapattack.py611 # Check if the ACE has restrictions on object type (inherited case)COMMENT
LOW⚡impacket/examples/ntlmrelayx/attacks/ldapattack.py615 # Verify if the ACE applies to this object typeCOMMENT
LOW⚡impacket/examples/ntlmrelayx/attacks/ldapattack.py621 # Check if this applies to our objecttypeCOMMENT
LOWimpacket/examples/ntlmrelayx/attacks/ldapattack.py653 # Check if the ACE is an OBJECT ACE, if so the WRITE_DACL is applied toCOMMENT
LOWimpacket/examples/ntlmrelayx/attacks/ldapattack.py1408# Check if an ACE allows for creation of usersCOMMENT
LOWimpacket/examples/ntlmrelayx/attacks/ldapattack.py1416# Check if an ACE allows for adding membersCOMMENT
LOWtests/dcerpc/test_fsrvp.py27# Set this to a regular SMB share on the configured target (not an administrative share).COMMENT
LOWtests/dcerpc/test_fsrvp.py88 # Check if path shadow copied:COMMENT
LOWexamples/badsuccessor.py271 # Check if ACE has relevant rightsCOMMENT
LOWexamples/GetLAPSPassword.py108 # Check if item is in cacheCOMMENT
LOWexamples/raiseChild.py182 # Check if we need to copy a file for executionCOMMENT
LOWexamples/findDelegation.py37 # Check if SPN existsCOMMENT
LOWexamples/rpcdump.py110 # Display results.COMMENT
LOWexamples/samrdump.py89 # Display results.COMMENT
LOWexamples/split.py128 # Open fileCOMMENT
LOWexamples/goldenPac.py135 # Check if we need to copy a file for executionCOMMENT
LOWexamples/psexec.py158 # Check if we need to copy a file for executionCOMMENT
Cross-File Repetition9 hits · 45 pts
SeverityFileLineSnippetContext
HIGH…acket/examples/ntlmrelayx/servers/winrmsrelayserver.py0<?xml version="1.0"?><d:multistatus xmlns:d="dav:"><d:response><d:href>http://webdavrelay/file/image.jpg/</d:href><d:proSTRING
HIGH…packet/examples/ntlmrelayx/servers/winrmrelayserver.py0<?xml version="1.0"?><d:multistatus xmlns:d="dav:"><d:response><d:href>http://webdavrelay/file/image.jpg/</d:href><d:proSTRING
HIGHimpacket/examples/ntlmrelayx/servers/httprelayserver.py0<?xml version="1.0"?><d:multistatus xmlns:d="dav:"><d:response><d:href>http://webdavrelay/file/image.jpg/</d:href><d:proSTRING
HIGH…acket/examples/ntlmrelayx/servers/winrmsrelayserver.py0<?xml version="1.0"?><d:multistatus xmlns:d="dav:"><d:response><d:href>http://webdavrelay/file/</d:href><d:propstat><d:pSTRING
HIGH…packet/examples/ntlmrelayx/servers/winrmrelayserver.py0<?xml version="1.0"?><d:multistatus xmlns:d="dav:"><d:response><d:href>http://webdavrelay/file/</d:href><d:propstat><d:pSTRING
HIGHimpacket/examples/ntlmrelayx/servers/httprelayserver.py0<?xml version="1.0"?><d:multistatus xmlns:d="dav:"><d:response><d:href>http://webdavrelay/file/</d:href><d:propstat><d:pSTRING
HIGHexamples/raiseChild.py0lcd {path} - changes the current local directory to {path} exit - terminates the server process (and this session) lput STRING
HIGHexamples/goldenPac.py0lcd {path} - changes the current local directory to {path} exit - terminates the server process (and this session) lput STRING
HIGHexamples/psexec.py0lcd {path} - changes the current local directory to {path} exit - terminates the server process (and this session) lput STRING
AI Structural Patterns43 hits · 40 pts
SeverityFileLineSnippetContext
LOWimpacket/smb3.py187CODE
LOWimpacket/smb3.py726CODE
LOWimpacket/tds.py1206CODE
LOWimpacket/tds.py1365CODE
LOWimpacket/tds.py1741CODE
LOWimpacket/tds.py2066CODE
LOWimpacket/acl.py239CODE
LOWimpacket/nmb.py622CODE
LOWimpacket/smbconnection.py63CODE
LOWimpacket/smbconnection.py296CODE
LOWimpacket/smbconnection.py440CODE
LOWimpacket/smbconnection.py507CODE
LOWimpacket/dcerpc/v5/dcomrt.py995CODE
LOWimpacket/dcerpc/v5/dcomrt.py1175CODE
LOWimpacket/dcerpc/v5/transport.py477CODE
LOWimpacket/dcerpc/v5/transport.py603CODE
LOWimpacket/dcerpc/v5/scmr.py1334CODE
LOWimpacket/dcerpc/v5/scmr.py1352CODE
LOWimpacket/dcerpc/v5/scmr.py1372CODE
LOWimpacket/ldap/ldap.py206CODE
LOWimpacket/ldap/ldap.py521CODE
LOWimpacket/krb5/kpasswd.py284CODE
LOWimpacket/krb5/kpasswd.py319CODE
LOWimpacket/krb5/gssapi.py352CODE
LOWimpacket/krb5/gssapi.py357CODE
LOWimpacket/examples/secretsdump.py2159CODE
LOWimpacket/examples/secretsdump.py2818CODE
LOWimpacket/examples/utils.py91CODE
LOWimpacket/examples/regsecrets.py693CODE
LOW…acket/examples/ntlmrelayx/servers/socksplugins/smtp.py159CODE
LOWtests/SMB_RPC/test_rpcrt.py30CODE
LOWexamples/rpcmap.py55CODE
LOWexamples/samrdump.py40CODE
LOWexamples/machine_role.py51CODE
LOWexamples/lookupsid.py42CODE
LOWexamples/goldenPac.py428CODE
LOWexamples/changepasswd.py140CODE
LOWexamples/changepasswd.py183CODE
LOWexamples/dcomexec.py66CODE
LOWexamples/smbexec.py117CODE
LOWexamples/atexec.py46CODE
LOWexamples/wmiexec.py50CODE
LOWexamples/psexec.py68CODE
Cross-Language Confusion8 hits · 36 pts
SeverityFileLineSnippetContext
HIGHimpacket/hresult_errors.py2908 0xC026250A: ("ERROR_GRAPHICS_OPM_INVALID_POINTER", "The function failed because an invalid pointer parameter wasCODE
HIGHimpacket/hresult_errors.py2908 0xC026250A: ("ERROR_GRAPHICS_OPM_INVALID_POINTER", "The function failed because an invalid pointer parameter wasCODE
HIGHimpacket/smbserver.py82 """SHA-512(current || data), one step of the SMB 3.1.1 pre-auth integrity hash chain.STRING
HIGHimpacket/nt_errors.py1598 0xC01E050A: ("STATUS_GRAPHICS_OPM_INVALID_POINTER","The function failed because an invalid pointer parameter wasCODE
HIGHimpacket/nt_errors.py1598 0xC01E050A: ("STATUS_GRAPHICS_OPM_INVALID_POINTER","The function failed because an invalid pointer parameter wasCODE
HIGHimpacket/nt_errors.py1639 0xC01E05E4: ("STATUS_GRAPHICS_INVALID_POINTER","The function failed because an invalid pointer parameter was pasCODE
HIGHimpacket/nt_errors.py1639 0xC01E05E4: ("STATUS_GRAPHICS_INVALID_POINTER","The function failed because an invalid pointer parameter was pasCODE
HIGH⚡tests/SMB_RPC/test_wmi.py339 # PowerShell "gwmi win32_currenttime" command output shows it empty indicating it is $null, so it should be NoneSTRING
Decorative Section Separators12 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMimpacket/mapi_constants.py869# ====================COMMENT
MEDIUMimpacket/mapi_constants.py1565# ====================COMMENT
MEDIUMimpacket/examples/utils.py64# ----------COMMENT
MEDIUMimpacket/examples/utils.py249# ----------COMMENT
MEDIUMimpacket/examples/utils.py360# ----------COMMENT
MEDIUMimpacket/examples/utils.py385# ----------COMMENT
MEDIUMtests/misc/test_ntfs_read.py21# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/misc/test_ntfs_read.py23# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/misc/test_ntfs_read.py43# ===========================================================================COMMENT
MEDIUMtests/misc/test_ntfs_read.py45# ===========================================================================COMMENT
MEDIUMtests/misc/test_ntfs_read.py190# ===========================================================================COMMENT
MEDIUMtests/misc/test_ntfs_read.py192# ===========================================================================COMMENT
Hallucination Indicators3 hits · 22 pts
SeverityFileLineSnippetContext
CRITICAL⚡tests/SMB_RPC/test_wmi.py349 The following lines were added in the impacket.dcerpc.v5.dcom.wmi.IWbemClassObject.SpawnInstance():STRING
CRITICAL⚡tests/SMB_RPC/test_wmi.py355 # NOTE: I think these shouldn't be strings, see impacket.dcerpc.v5.dcom.wmi.ENCODED_VALUE.getValue() andSTRING
CRITICAL⚡tests/SMB_RPC/test_wmi.py356 # impacket.dcerpc.v5.dcom.wmi.CLASS_PART.getProperties() (links below). I won't change that code since ISTRING
AI Response Leakage2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHimpacket/dcerpc/v5/ndr.py228 # (In this version of NDR, n is one of {1, 2, 4, 8}.) An octet stream index indicatesCOMMENT
HIGHimpacket/dcerpc/v5/ndr.py257 # (In this version of NDR, n is one of {1, 2, 4, 8}.) An octet stream index indicatesCOMMENT
AI Slop Vocabulary7 hits · 11 pts
SeverityFileLineSnippetContext
LOWimpacket/smbserver.py711 # For now we just return fake valuesCOMMENT
LOWimpacket/smbserver.py3092 # just use the same keyCOMMENT
LOWimpacket/examples/secretsdump.py579 # If dwExtCaps is not included in the answer, let's just add it so we can unpack DRS_EXTENSIONS_INT right.COMMENT
LOWimpacket/examples/ntlmrelayx/clients/dcsyncclient.py239 # If dwExtCaps is not included in the answer, let's just add it so we can unpack DRS_EXTENSIONS_INT right.COMMENT
LOWtests/dcerpc/test_drsuapi.py56 # If dwExtCaps is not included in the answer, let's just add it so we can unpack DRS_EXTENSIONS_INT right.COMMENT
LOWexamples/raiseChild.py684 # If dwExtCaps is not included in the answer, let's just add it so we can unpack DRS_EXTENSIONS_INT right.STRING
MEDIUMexamples/smbexec.py21# Certainly not a stealthy way.COMMENT
Slop Phrases5 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMimpacket/dcerpc/v5/transport.py438 # But you can use set_rpc_proxy_url method to set any URL / query you want.COMMENT
LOWimpacket/examples/secretsdump.py2400 LOG.warning("Don't forget to remove sensitive content before sending the data in a Github issue.")CODE
LOWimpacket/examples/regsecrets.py925 LOG.warning("Don't forget to remove sensitive content before sending the data in a Github issue.")CODE
MEDIUMexamples/GetADUsers.py17# If no entries are returned that means users don't have email addresses specified. If so, you can use theCOMMENT
LOWexamples/ntlmrelayx.py293 "are optional, and don't forget to escape the '\\'). If unspecified, it will relay bacCODE
Modern Structural Boilerplate3 hits · 3 pts
SeverityFileLineSnippetContext
LOWimpacket/dcerpc/v5/enum.py15__all__ = ['Enum', 'IntEnum', 'unique']CODE
LOWimpacket/ldap/ldap.py51__all__ = [CODE
LOWimpacket/ldap/ldapasn1.py25__all__ = [CODE
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMimpacket/dcerpc/v5/enum.py671CODE
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWimpacket/negoex.py671 #NOTE: This function fails the exchange if the peer doesnt send or pick our authentication schemeCOMMENT