Skip to content

Fix/loot timeout#55

Open
anupddas wants to merge 2 commits into
blacklanternsecurity:trevorspray-v2from
anupddas:fix/loot-timeout
Open

Fix/loot timeout#55
anupddas wants to merge 2 commits into
blacklanternsecurity:trevorspray-v2from
anupddas:fix/loot-timeout

Conversation

@anupddas

@anupddas anupddas commented Jun 1, 2026

Copy link
Copy Markdown

Summary Fixes #29 — SMTP/IMAP/POP3 looters could hang indefinitely.

Root cause

  • IMAP4_SSL and POP3_SSL constructors had no timeout parameter.
  • smtplib.SMTP used a hardcoded 5-second timeout ignoring --timeout.
  • socket.timeout was not explicitly caught by protocol-specific handlers.

Changes

  • looters/base.py: Added timeout property that reads --timeout (default 10s).
  • looters/msol.py: Pass self.timeout to IMAP4_SSL, SMTP, and POP3_SSL.
  • looters/msol.py: Added socket.timeout / OSError to each except clause.

Closes #29

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.

Add Loot timeout

1 participant