Repository Analysis

Pennyw0rth/NetExec

The Network Execution Tool

27.8 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Pennyw0rth/NetExec, a Python project with 5,737 GitHub stars. SynthScan v2.0 examined 45,742 lines of code across 264 source files, recording 1018 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 27.8 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

27.8
Adjusted Score
27.8
Raw Score
100%
Time Factor
2026-08-02
Last Push
5.7K
Stars
Python
Language
45.7K
Lines of Code
264
Files
1.0K
Pattern Hits
2026-08-02
Scan Date
0.12
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 31MEDIUM 133LOW 854

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 1018 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Excessive Try-Catch Wrapping605 hits · 633 pts
SeverityFileLineSnippetContext
LOWbuild_collector.py22 except Exception as e:CODE
LOWbuild_collector.py29 except Exception as e:CODE
LOWnxc/database.py32 except Exception as e:CODE
MEDIUMnxc/database.py28def open_config(config_path):CODE
LOWnxc/netexec.py68 except Exception:CODE
LOWnxc/netexec.py123 except Exception as e:CODE
LOWnxc/netexec.py142 except Exception as e:CODE
LOWnxc/logger.py174 except Exception as e:CODE
LOWnxc/connection.py46 except Exception:CODE
LOWnxc/connection.py67 except Exception:CODE
LOWnxc/connection.py76 except Exception:CODE
LOWnxc/connection.py127 except Exception as e:CODE
LOWnxc/connection.py184 except Exception as e:CODE
LOWnxc/connection.py206 except Exception as e:CODE
MEDIUMnxc/connection.py197def resolver(self, target):CODE
LOWnxc/cli.py118 except Exception as e:STRING
LOWnxc/parsers/ldap_results.py54 except Exception:CODE
MEDIUMnxc/parsers/ldap_results.py39def sid_to_str(sid):CODE
LOWnxc/modules/recyclebin.py81 except Exception as e:CODE
LOWnxc/modules/smbghost.py57 except Exception as e:CODE
LOWnxc/modules/sccm-recon6.py45 except Exception as e:CODE
LOWnxc/modules/sccm-recon6.py113 except Exception as e:CODE
LOWnxc/modules/sccm-recon6.py119 except Exception as e:CODE
LOWnxc/modules/ntdsutil.py70 except Exception as e:CODE
LOWnxc/modules/ntdsutil.py82 except Exception as e:CODE
LOWnxc/modules/ntdsutil.py94 except Exception as e:CODE
LOWnxc/modules/ntdsutil.py103 except Exception as e:CODE
LOWnxc/modules/ntdsutil.py136 except Exception:CODE
LOWnxc/modules/ntdsutil.py170 except Exception as e:CODE
LOWnxc/modules/find-computer.py66 except Exception as e:CODE
LOWnxc/modules/reg-query.py63 except Exception as e:CODE
LOWnxc/modules/reg-query.py112 except Exception as e:CODE
LOWnxc/modules/reg-query.py135 except Exception:CODE
LOWnxc/modules/reg-query.py150 except Exception:CODE
LOWnxc/modules/reg-query.py159 except Exception as e:CODE
LOWnxc/modules/wcc.py246 except Exception as e:CODE
LOWnxc/modules/wcc.py278 except Exception as e:CODE
LOWnxc/modules/wcc.py507 except Exception:CODE
LOWnxc/modules/wcc.py520 except Exception as e:CODE
LOWnxc/modules/wcc.py585 except Exception as e:CODE
LOWnxc/modules/wcc.py606 except Exception as e:CODE
LOWnxc/modules/wcc.py727 except Exception as e:CODE
MEDIUMnxc/modules/wcc.py512def check_defender_exclusion(self, *spec, options=None):CODE
LOWnxc/modules/enable_cmdshell.py76 except Exception as e:CODE
LOWnxc/modules/hyperv-host.py50 except Exception as e:CODE
LOWnxc/modules/example_module.py45 except Exception as e:CODE
LOWnxc/modules/remove-mic.py118 except Exception:CODE
LOWnxc/modules/remove-mic.py122 except Exception:CODE
LOWnxc/modules/remove-mic.py126 except Exception:CODE
LOWnxc/modules/spooler.py54 except Exception as e:CODE
LOWnxc/modules/spooler.py98 except Exception:CODE
LOWnxc/modules/putty.py151 except Exception as e:CODE
LOWnxc/modules/putty.py169 except Exception as e:CODE
LOWnxc/modules/putty.py222 except Exception as e:CODE
LOWnxc/modules/wdigest.py87 except Exception:CODE
LOWnxc/modules/shadowrdp.py51 except Exception as e:CODE
LOWnxc/modules/shadowrdp.py81 except Exception as e:CODE
MEDIUMnxc/modules/shadowrdp.py30def on_admin_login(self, context, connection):CODE
LOWnxc/modules/wifi.py53 except Exception as e:CODE
LOWnxc/modules/wifi.py61 except Exception:CODE
545 more matches not shown…
Deep Nesting223 hits · 202 pts
SeverityFileLineSnippetContext
LOWnxc/netexec.py83CODE
LOWnxc/connection.py33CODE
LOWnxc/connection.py103CODE
LOWnxc/connection.py383CODE
LOWnxc/connection.py478CODE
LOWnxc/connection.py525CODE
LOWnxc/nxcdb.py109CODE
LOWnxc/nxcdb.py403CODE
LOWnxc/nxcdb.py486CODE
LOWnxc/parsers/ldap_results.py5CODE
LOWnxc/parsers/ip.py4CODE
LOWnxc/modules/recyclebin.py22CODE
LOWnxc/modules/sccm-recon6.py96CODE
LOWnxc/modules/find-computer.py37CODE
LOWnxc/modules/reg-query.py22CODE
LOWnxc/modules/reg-query.py77CODE
LOWnxc/modules/wcc.py131CODE
LOWnxc/modules/wcc.py253CODE
LOWnxc/modules/wcc.py538CODE
LOWnxc/modules/wcc.py621CODE
LOWnxc/modules/putty.py156CODE
LOWnxc/modules/shadowrdp.py30CODE
LOWnxc/modules/wifi.py18CODE
LOWnxc/modules/impersonate.py53CODE
LOWnxc/modules/get-network.py81CODE
LOWnxc/modules/enum_cve.py57CODE
LOWnxc/modules/mssql_priv.py49CODE
LOWnxc/modules/obsolete.py32CODE
LOWnxc/modules/group-mem.py74CODE
LOWnxc/modules/backup_operator.py130CODE
LOWnxc/modules/backup_operator.py177CODE
LOWnxc/modules/keepass_trigger.py125CODE
LOWnxc/modules/keepass_trigger.py183CODE
LOWnxc/modules/keepass_trigger.py241CODE
LOWnxc/modules/keepass_trigger.py285CODE
LOWnxc/modules/keepass_trigger.py379CODE
LOWnxc/modules/iis.py38CODE
LOWnxc/modules/handlekatz.py53CODE
LOWnxc/modules/enum_ca.py39CODE
LOWnxc/modules/groupmembership.py33CODE
LOWnxc/modules/laps.py29CODE
LOWnxc/modules/coerce_plus.py43CODE
LOWnxc/modules/sccm.py48CODE
LOWnxc/modules/sccm.py125CODE
LOWnxc/modules/sccm.py242CODE
LOWnxc/modules/badsuccessor.py107CODE
LOWnxc/modules/wam.py20CODE
LOWnxc/modules/wam.py53CODE
LOWnxc/modules/enum_av.py44CODE
LOWnxc/modules/enum_av.py63CODE
LOWnxc/modules/slinky.py74CODE
LOWnxc/modules/raisechild.py84CODE
LOWnxc/modules/raisechild.py171CODE
LOWnxc/modules/raisechild.py184CODE
LOWnxc/modules/recent_files.py19CODE
LOWnxc/modules/dpapi_hash.py21CODE
LOWnxc/modules/presence.py51CODE
LOWnxc/modules/presence.py158CODE
LOWnxc/modules/notepad.py92CODE
LOWnxc/modules/notepad.py124CODE
163 more matches not shown…
Cross-File Repetition26 hits · 130 pts
SeverityFileLineSnippetContext
HIGHnxc/modules/example_module.py0concurrent. required if on_admin_login is not present. this gets called on each authenticated connectionSTRING
HIGHnxc/modules/groupmembership.py0concurrent. required if on_admin_login is not present. this gets called on each authenticated connectionSTRING
HIGHnxc/modules/get-desc-users.py0concurrent. required if on_admin_login is not present. this gets called on each authenticated connectionSTRING
HIGHnxc/protocols/ftp/database.py0check if this credential has already been added to the database, if not add it in.STRING
HIGHnxc/protocols/winrm/database.py0check if this credential has already been added to the database, if not add it in.STRING
HIGHnxc/protocols/ldap/database.py0check if this credential has already been added to the database, if not add it in.STRING
HIGHnxc/protocols/ssh/database.py0check if this credential has already been added to the database, if not add it in.STRING
HIGHnxc/protocols/smb/database.py0check if this credential has already been added to the database, if not add it in.STRING
HIGHnxc/protocols/mssql/database.py0check if this credential has already been added to the database, if not add it in.STRING
HIGHnxc/protocols/ftp/db_navigator.py0clear_database this completely destroys all data in the currently connected database you cannot undo this commandSTRING
HIGHnxc/protocols/nfs/db_navigator.py0clear_database this completely destroys all data in the currently connected database you cannot undo this commandSTRING
HIGHnxc/protocols/winrm/db_navigator.py0clear_database this completely destroys all data in the currently connected database you cannot undo this commandSTRING
HIGHnxc/protocols/wmi/db_navigator.py0clear_database this completely destroys all data in the currently connected database you cannot undo this commandSTRING
HIGHnxc/protocols/ldap/db_navigator.py0clear_database this completely destroys all data in the currently connected database you cannot undo this commandSTRING
HIGHnxc/protocols/vnc/db_navigator.py0clear_database this completely destroys all data in the currently connected database you cannot undo this commandSTRING
HIGHnxc/protocols/rdp/db_navigator.py0clear_database this completely destroys all data in the currently connected database you cannot undo this commandSTRING
HIGHnxc/protocols/ssh/db_navigator.py0clear_database this completely destroys all data in the currently connected database you cannot undo this commandSTRING
HIGHnxc/protocols/smb/db_navigator.py0clear_database this completely destroys all data in the currently connected database you cannot undo this commandSTRING
HIGHnxc/protocols/mssql/db_navigator.py0clear_database this completely destroys all data in the currently connected database you cannot undo this commandSTRING
HIGHnxc/protocols/nfs/database.py0check if this check result has already been added to the database, if not, add it in.STRING
HIGHnxc/protocols/ldap/database.py0check if this check result has already been added to the database, if not, add it in.STRING
HIGHnxc/protocols/ssh/database.py0check if this check result has already been added to the database, if not, add it in.STRING
HIGHnxc/protocols/smb/database.py0check if this check result has already been added to the database, if not, add it in.STRING
HIGHnxc/protocols/winrm/database.py0check if this host has already been added to the database, if not, add it in. todo: return inserted or updated row ids aSTRING
HIGHnxc/protocols/rdp/database.py0check if this host has already been added to the database, if not, add it in. todo: return inserted or updated row ids aSTRING
HIGHnxc/protocols/mssql/database.py0check if this host has already been added to the database, if not, add it in. todo: return inserted or updated row ids aSTRING
Dead Code43 hits · 86 pts
SeverityFileLineSnippetContext
MEDIUMnxc/modules/group-mem.py44CODE
MEDIUMnxc/modules/group-mem.py45CODE
MEDIUMnxc/modules/group-mem.py47CODE
MEDIUMnxc/modules/group-mem.py49CODE
MEDIUMnxc/modules/group-mem.py54CODE
MEDIUMnxc/modules/group-mem.py55CODE
MEDIUMnxc/modules/group-mem.py58CODE
MEDIUMnxc/modules/group-mem.py59CODE
MEDIUMnxc/modules/group-mem.py60CODE
MEDIUMnxc/modules/group-mem.py63CODE
MEDIUMnxc/modules/group-mem.py64CODE
MEDIUMnxc/modules/group-mem.py65CODE
MEDIUMnxc/modules/group-mem.py67CODE
MEDIUMnxc/modules/firefox.py30CODE
MEDIUMnxc/modules/firefox.py31CODE
MEDIUMnxc/modules/firefox.py32CODE
MEDIUMnxc/modules/firefox.py33CODE
MEDIUMnxc/modules/firefox.py34CODE
MEDIUMnxc/modules/firefox.py35CODE
MEDIUMnxc/modules/firefox.py36CODE
MEDIUMnxc/modules/firefox.py37CODE
MEDIUMnxc/modules/firefox.py38CODE
MEDIUMnxc/modules/firefox.py40CODE
MEDIUMnxc/modules/firefox.py52CODE
MEDIUMnxc/modules/firefox.py67CODE
MEDIUMnxc/modules/ntlm_reflection.py52CODE
MEDIUMnxc/modules/ntlm_reflection.py53CODE
MEDIUMnxc/modules/ntlm_reflection.py54CODE
MEDIUMnxc/modules/ntlm_reflection.py55CODE
MEDIUMnxc/modules/ntlm_reflection.py56CODE
MEDIUMnxc/modules/ntlm_reflection.py57CODE
MEDIUMnxc/modules/ntlm_reflection.py59CODE
MEDIUMnxc/modules/ntlm_reflection.py60CODE
MEDIUMnxc/modules/ntlm_reflection.py62CODE
MEDIUMnxc/modules/ldap-checker.py178CODE
MEDIUMnxc/modules/ldap-checker.py179CODE
MEDIUMnxc/modules/ldap-checker.py180CODE
MEDIUMnxc/modules/ldap-checker.py183CODE
MEDIUMnxc/modules/ldap-checker.py187CODE
MEDIUMnxc/modules/ldap-checker.py194CODE
MEDIUMnxc/modules/ldap-checker.py224CODE
MEDIUMnxc/modules/ldap-checker.py225CODE
MEDIUMnxc/modules/ldap-checker.py240CODE
Self-Referential Comments25 hits · 78 pts
SeverityFileLineSnippetContext
MEDIUMnxc/modules/recyclebin.py70 # Create the export pathCOMMENT
MEDIUMnxc/modules/bitlocker.py79 # Create a DCOM connectionCOMMENT
MEDIUMnxc/modules/pre2k.py32 # Define the search filterCOMMENT
MEDIUMnxc/modules/spider_plus.py354 # Create the subdirectories based on the share name and file path.COMMENT
MEDIUMnxc/modules/daclread.py215 # Initialize module variablesCOMMENT
MEDIUMnxc/modules/daclread.py335 # This function is called before any writing action (write, remove or restore)COMMENT
MEDIUMnxc/modules/ms17-010.py120 # Define the NetBIOS headerCOMMENT
MEDIUMnxc/modules/ms17-010.py126 # Define the SMB headerCOMMENT
MEDIUMnxc/modules/ms17-010.py142 # Define the negotiate_proto_requestCOMMENT
MEDIUMnxc/modules/ms17-010.py163 # Define the NetBIOS bytesCOMMENT
MEDIUMnxc/modules/ms17-010.py169 # Define the SMB header bytesCOMMENT
MEDIUMnxc/modules/ms17-010.py185 # Define the session setup andx request bytesCOMMENT
MEDIUMnxc/modules/ms17-010.py244 # Create the IPC stringCOMMENT
MEDIUMnxc/modules/ms17-010.py357 # Define the netbios section of the SMB requestCOMMENT
MEDIUMnxc/modules/ms17-010.py363 # Define the SMB header section of the SMB requestCOMMENT
MEDIUMnxc/modules/ms17-010.py379 # Define the trans2 request section of the SMB requestCOMMENT
MEDIUMnxc/protocols/ldap.py1165 # Create the format string for each rowCOMMENT
MEDIUMnxc/protocols/smb.py1297 # Create the template for formattingCOMMENT
MEDIUMnxc/protocols/smb.py1430 # Create the template for formattingCOMMENT
MEDIUMnxc/protocols/ldap/laps.py52 # Create the baseDNCOMMENT
MEDIUMnxc/protocols/ldap/laps.py125 # Create the baseDNCOMMENT
MEDIUMnxc/protocols/ldap/bloodhound.py42 # Create a domain controller objectCOMMENT
MEDIUMnxc/protocols/ldap/bloodhound.py44 # Create an object resolverCOMMENT
MEDIUMnxc/helpers/powershell.py191 # The following code gives us some control over where and how Invoke-PSInject does its thangCOMMENT
MEDIUMnxc/helpers/rpc.py74 # Create a new SMB conn if we don't have one already orCOMMENT
Hyper-Verbose Identifiers49 hits · 56 pts
SeverityFileLineSnippetContext
LOWnxc/modules/wcc.py401 def check_last_successful_update(self):CODE
LOWnxc/modules/wcc.py423 def check_guest_account_disabled(self):CODE
LOWnxc/modules/enable_cmdshell.py47 def backup_show_advanced_options(self):CODE
LOWnxc/modules/enable_cmdshell.py53 def restore_show_advanced_options(self):CODE
LOWnxc/modules/impersonate.py49 def list_available_primary_tokens(self, _, connection):CODE
LOWnxc/modules/mssql_priv.py161 def perform_impersonation_check(self, user: User, grantors=None):CODE
LOWnxc/modules/enum_av.py44 def _detect_installed_services(self, context, connection, target):CODE
LOWnxc/modules/gpp_privileges.py174 def initialize_ldap_connection(self, connection):CODE
LOWnxc/modules/mremoteng.py184 def extract_remoteng_passwords(self, encrypted_password, encryption_attributes: MRemoteNgEncryptionAttributes):CODE
LOWnxc/modules/add-computer.py142 def _samr_set_workstation_trust(self, dce, domain_handle, user_handle):CODE
LOWnxc/modules/ldap-checker.py123 def does_ldaps_complete_handshake(self, context, dc_ip):CODE
LOWnxc/modules/vnc.py105 def vnc_client_proxyconf_extract(self, dploot_conn, remote_ops=None):CODE
LOWnxc/modules/ms17-010.py75 def generate_smb_proto_payload(self, *protos):CODE
LOWnxc/modules/ms17-010.py100 def calculate_doublepulsar_xor_key(self, s):CODE
LOWnxc/modules/ms17-010.py159 def session_setup_andx_request(self):CODE
LOWnxc/modules/ms17-010.py208 def tree_connect_andx_request(self, ip, userid):CODE
LOWnxc/modules/winscp.py54 def user_object_to_name_mapper(self, context, connection, all_user_objects):STRING
LOWnxc/modules/winscp.py118 def registry_session_extractor(self, context, connection, user_object, sessionName):STRING
LOWnxc/modules/winscp.py146 def find_all_logged_in_users_in_registry(self, context, connection):CODE
LOWnxc/protocols/ldap.py812 def resolve_and_display_hostname(name, domain_name=None):CODE
LOWnxc/protocols/ldap.py1705 def _collect_adcs_for_bloodhound(self, timestamp):CODE
LOWnxc/protocols/ftp/database.py280 def remove_loggedin_relations(self, cred_id=None, host_id=None):CODE
LOWnxc/protocols/winrm/database.py376 def remove_loggedin_relations(self, user_id=None, host_id=None):CODE
LOWnxc/protocols/ldap/bloodhound.py113def resolve_collection_methods(methods, logger):CODE
LOWnxc/protocols/ssh/database.py412 def remove_loggedin_relations(self, cred_id=None, host_id=None):CODE
LOWnxc/protocols/smb/samruser.py144def old_large_int_to_datetime(large_int):CODE
LOWnxc/protocols/smb/firefox.py241 def is_master_password_correct(self, key_data, master_password=b""):CODE
LOWnxc/protocols/smb/database.py679 def get_users_with_share_access(self, host_id, share_name, permissions):CODE
LOWnxc/protocols/smb/database.py829 def remove_loggedin_relations(self, user_id=None, host_id=None):CODE
LOWnxc/protocols/smb/dpapi.py49def collect_masterkeys_from_target(context, target, dploot_connection, user=True, system=True):CODE
LOWnxc/protocols/smb/dpapi.py91def upgrade_to_dploot_connection(target, connection=None):CODE
LOWnxc/protocols/mssql/database.py349 def remove_loggedin_relations(self, user_id=None, host_id=None):CODE
LOWnxc/helpers/negotiate_parser.py39def decode_tds_info_error_msgtext(data, offset):CODE
LOWnxc/helpers/rpc.py92 def create_from_string_binding(self, string_binding, target_ip=None, set_remote_host=None, anonymous_rpc=False):CODE
LOWtests/test_smb_database.py145def test_remove_admin_relation():CODE
LOWtests/test_smb_database.py189def test_remove_group_relations():CODE
LOWtests/test_smb_database.py205def test_get_domain_controllers():CODE
LOWtests/test_smb_database.py221def test_get_shares_by_access():CODE
LOWtests/test_smb_database.py225def test_get_users_with_share_access():CODE
LOWtests/test_smb_database.py229def test_add_domain_backupkey():CODE
LOWtests/test_smb_database.py233def test_get_domain_backupkey():CODE
LOWtests/test_smb_database.py237def test_is_dpapi_secret_valid():CODE
LOWtests/test_smb_database.py249def test_add_loggedin_relation():CODE
LOWtests/test_smb_database.py253def test_get_loggedin_relations():CODE
LOWtests/test_smb_database.py257def test_remove_loggedin_relations():CODE
LOWtests/test_smb_database.py261def test_get_keys_returns_empty_for_smb(db):CODE
LOWtests/test_smb_database.py270def test_get_keys_all_and_by_id_fallback(db):CODE
LOWtests/test_smb_database.py276def test_write_list_empty_entries(tmp_path):CODE
LOWtests/test_smb_database.py293def test_do_export_keys_empty_guard(db, tmp_path):CODE
Redundant / Tautological Comments31 hits · 50 pts
SeverityFileLineSnippetContext
LOWnxc/config.py18# Check if there are any missing options in the config fileCOMMENT
LOWnxc/modules/reg-query.py110 # Check if value existsCOMMENT
LOWnxc/modules/reg-query.py121 # Check if value existsCOMMENT
LOWnxc/modules/reg-query.py123 # Check if value existsCOMMENT
LOWnxc/modules/spooler.py62 # Display results.COMMENT
LOWnxc/modules/sccm.py77 # Print resultsCOMMENT
LOWnxc/modules/presence.py152 # Check if process SID matches any admin user SIDCOMMENT
LOWnxc/modules/presence.py174 # Check if SID and LogonType are found, then check if SID matches any admin userCOMMENT
LOWnxc/modules/notepad.py152 # Read the file into a bufferCOMMENT
LOWnxc/modules/mssql_dumper.py122 # Check if any of the cells in the row match any of the regex patternsCOMMENT
LOWnxc/modules/lockscreendoors.py73 # Check if the description is as expectedCOMMENT
LOWnxc/modules/spider_plus.py281 # Check if proceeding with download attempt.COMMENT
LOWnxc/modules/spider_plus.py301 # Check if the remote file is readable.COMMENT
LOWnxc/modules/spider_plus.py308 # Check if the file is already downloaded and up-to-date.COMMENT
LOWnxc/modules/spider_plus.py368 # Check if the file is empty and should not be.COMMENT
LOWnxc/modules/veeam.py112 # Check if we found an SQL Server of some kindCOMMENT
LOWnxc/protocols/ldap.py918 # Check if we can resolve the trusted domain's DC using DNSCOMMENT
LOWnxc/protocols/smb.py228 # Check if the host is a valid IP address, if not we parse the FQDN in the ExceptionCOMMENT
LOWnxc/protocols/smb.py1328 # Check if we need to filter for usernamesCOMMENT
LOWnxc/protocols/smb.py138 self.smbv1 = None # Check if SMBv1 is supportedCODE
LOWnxc/protocols/smb.py139 self.smbv3 = None # Check if SMBv3 is supportedCODE
LOWnxc/protocols/nfs.py141 # Check if root escape is possibleCOMMENT
LOWnxc/protocols/nfs.py414 # Write the file data to the local fileCOMMENT
LOWnxc/protocols/nfs.py432 # Check if local file is existCOMMENT
LOWnxc/protocols/nfs.py615 # Check if "." is already the root directoryCOMMENT
LOWnxc/protocols/ftp.py124 # Check if the current connection is ASCII (ASCII does not support .size())COMMENT
LOWnxc/protocols/ftp.py128 # Check if the file existsCOMMENT
LOWnxc/protocols/ftp.py140 # Check if the file was downloadedCOMMENT
LOWnxc/protocols/ftp.py156 # Check if the file was uploadedCOMMENT
LOWnxc/protocols/ldap/laps.py212 # Check if item is in cacheCOMMENT
LOWnxc/helpers/misc.py135 # Check if it's CE based on version stringCOMMENT
Cross-Language Confusion3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHnxc/modules/mssql_coerce.py59 f"SELECT * FROM sys.fn_xe_file_target_read_file ('\\\\{self.listener}\\file','\\\\{self.listener}\\file',null,CODE
HIGHnxc/protocols/mssql.py564 get_owner_command = f"icacls C:\\windows\\temp\\{sam_storename} /grant {self.username}:F && icacls C:\\windows\\CODE
HIGHnxc/protocols/mssql.py599 get_owner_command = f"icacls C:\\windows\\temp\\{security_storename} /grant {self.username}:F && icacls C:\\windCODE
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHnxc/helpers/powershell.py62 Obfuscates a PowerShell script. Args: ---- path_to_script (str): The path to the PowerShell scriptSTRING
HIGHnxc/helpers/bloodhound.py2Adds a user to the BloodHound graph database. Args: ---- user (str or list): The username of the user oSTRING
Over-Commented Block5 hits · 5 pts
SeverityFileLineSnippetContext
LOWnxc/modules/remove-mic.py1# Original Author:COMMENT
LOWnxc/protocols/wmi/wmiexec_event.py1# Author: xiaolichan # noqa: ERA001COMMENT
LOWnxc/protocols/wmi/wmiexec.py1# Author: xiaolichan # noqa: ERA001COMMENT
LOWnxc/protocols/smb/mmcexec.py1# Copyright (c) 2003-2016 CORE Security TechnologiesCOMMENT
LOWnxc/helpers/pfx.py1# SECUREAUTH LABS. Copyright 2018 SecureAuth Corporation. All rights reserved.COMMENT
AI Structural Patterns5 hits · 4 pts
SeverityFileLineSnippetContext
LOWnxc/protocols/smb.py2021CODE
LOWnxc/protocols/smb/mmcexec.py62CODE
LOWnxc/protocols/smb/smbspider.py24CODE
LOWnxc/protocols/smb/atexec.py16CODE
LOWnxc/protocols/smb/wmiexec.py13CODE
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWnxc/parsers/ldap_results.py28 # If we can't decode the value, we'll just return the bytesCOMMENT