Skip to content

Add timeout parameter for scans #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Ansh5748 opened this issue Jan 23, 2025 · 1 comment · May be fixed by #43
Open

Add timeout parameter for scans #39

Ansh5748 opened this issue Jan 23, 2025 · 1 comment · May be fixed by #43

Comments

@Ansh5748
Copy link

What happened

Scans run indefinitely without timeout control

What did you expect to happen

  • Scans should timeout after specified duration
  • Clean termination of processes
  • Timeout status in report

How to reproduce

  1. Run scan: python main.py --target-ip localhost
  2. Notice scan continues indefinitely

Error messages and logs

No error handling for long-running scans

@Ansh5748
Copy link
Author

Ansh5748 commented Jan 23, 2025

I'll implement the timeout feature.

Implementation Details:

  1. Code Changes:

    • Add TimeoutManager class to handle scan timeouts
    • Implement graceful termination of running scans
    • Add timeout status to final report
  2. New Files:

    • timeout_manager.py: Core timeout logic
    • timeout_handler.py: Cleanup operations
  3. Modified Files:

    • main.py: Add timeout CLI argument
    • core.py: Integrate timeout checks
    • report_generator.py: Add timeout status
  4. Testing Strategy:

    • Test various timeout scenarios
    • Verify cleanup operations
    • Check report accuracy

Assign me this Issue

Ansh5748 added a commit to Ansh5748/honeyscanner that referenced this issue Jan 24, 2025
@Ansh5748 Ansh5748 linked a pull request Jan 24, 2025 that will close this issue
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 a pull request may close this issue.

1 participant