Skip to content

Document keyboard interrupt of sniff() #3734

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

Closed
porceCodes opened this issue Sep 9, 2022 · 1 comment
Closed

Document keyboard interrupt of sniff() #3734

porceCodes opened this issue Sep 9, 2022 · 1 comment

Comments

@porceCodes
Copy link

porceCodes commented Sep 9, 2022

Brief description

#989 raised a question how to stop in the middle of sniff() before either timeout or count. After a lengthy discussion, #1999 was suggested as a permanent solution, but there is no documentation how to achieve this.

The goal is aligned with #989. Can we type CTRL-C and stop sniffing?

Ask: Document how to.

Scapy version

2.5.0rc1

Python version

3.9.6

Operating system

macOS 13

Additional environment information

No response

How to reproduce

In scapy,

>>> sniff(iface="en0", count=10)
Type CTRL-C

Actual result

No response

Expected result

No response

Related resources

No response

@porceCodes
Copy link
Author

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

No branches or pull requests

1 participant