mirror of
https://github.com/SpecterOps/Nemesis
synced 2026-06-08 12:36:42 +00:00
b63813e300
- Add centralized PostgreSQL connection string helper in common/db.py - Replace ntpath with posixpath - Add get_drive_from_path() helper for extracting drive letters from paths - Update all modules to use centralized DB connection helper instead of individual Dapr client calls - Improve path normalization across Chromium, DPAPI, and file enrichment modules - Added dependencies to local libraries - Expand file linking tests with comprehensive rule engine test cases - Refactor masterkey path construction to use posixpath.normpath for proper path joining - Update state helpers and API models to use centralized connection - Updated web API to use strongly typed models instead of dicts internally - Improve DPAPI core functionality with better error handling and path normalization
Naming Conventions
Projects and libraries should follow Python's PEP8 naming conventions:
Modules should have short, all-lowercase names. Underscores can be used in the module name if it improves readability. Python packages should also have short, all-lowercase names, although the use of underscores is discouraged.
When an extension module written in C or C++ has an accompanying Python module that provides a higher level (e.g. more object oriented) interface, the C/C++ module has a leading underscore (e.g. _socket).