chore: format Python code and update README#7
Merged
CyberRoute merged 5 commits intomainfrom Apr 9, 2026
Merged
Conversation
Owner
CyberRoute
commented
Apr 9, 2026
- Applied black formatter and isort to all Python source files
- Added new core modules: db.py, mitm.py, ollama_analyst.py, spoof_detector.py
- Updated README to document MITM, LLM analysis, spoof detection, device history, PCAP/export features, and project architecture
- Applied black formatter and isort to all Python source files - Added new core modules: db.py, mitm.py, ollama_analyst.py, spoof_detector.py - Updated README to document MITM, LLM analysis, spoof detection, device history, PCAP/export features, and project architecture Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add module/class/method docstrings where missing - Fix import order and use from-import style - Add check= to all subprocess.run calls - Suppress protected-access on _saved_rules function attribute pattern - Remove unused QObject import in spoof_detector - Fix closeEvent invalid-name with pylint disable (Qt override) - Remove unnecessary lambda in _SnifferThread.run - Move device_details_window init to __init__ - Suppress lazy scapy imports (wrpcap, QApplication) with disable comment - Update .pylintrc: raise design limits, disable too-few-public-methods and import-outside-toplevel globally Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
86f4039 to
cd025b0
Compare
- Change default model to llama3.2:1b for faster responses - Increase read timeout to 300s (connect stays 5s) to handle slow models - Add explicit ReadTimeout handler with actionable error message - Rewrite system prompt focused on IoT/embedded device analysis: plaintext protocols, credentials in clear, CVE patterns, firmware update mechanisms, beaconing and C2 indicators Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Wrap long SYSTEM_PROMPT line to stay within 100 chars - Replace PyQt6 import with PySide6 in sniffer.py (project uses PySide6) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
OllamaThread now accepts device_vendor and hostname parameters and injects them into the prompt before the packet, giving the model manufacturer and device identity context for more targeted IoT vulnerability analysis. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.