Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What is monitor parameter in python scapy?

from scapy.all import *
print(sniff(monitor=True))

What is monitor parameter in scapy and why my wifi adapter get disconnected every time i run the script ?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

The monitor argument uses tells your WiFi card to use monitor mode. In monitor mode, your WiFi card receives all wireless packets, not just the ones it is supposed to receive. This is very useful for sniffing.

A consequence of this is that if you’re receiving all packets, then you don’t know which packets are for you. Because of this, you essentially loose internet access from that card until monitor mode is turned off (which is when scapy exits).

So, your WiFi card isn’t actually disconnecting, it is switching to monitor mode. However the effects are the same. The only solution is to have two network interfaces (one for scapy and one for internet access). This can be done with another WiFi card or an ethernet connection.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading