Skip to content

chore: format Python code and update README#7

Merged
CyberRoute merged 5 commits intomainfrom
timeout_progress
Apr 9, 2026
Merged

chore: format Python code and update README#7
CyberRoute merged 5 commits intomainfrom
timeout_progress

Conversation

@CyberRoute
Copy link
Copy Markdown
Owner

  • 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

CyberRoute and others added 2 commits April 9, 2026 19:56
- 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>
CyberRoute and others added 3 commits April 9, 2026 20:21
- 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>
@CyberRoute CyberRoute merged commit c885113 into main Apr 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant