You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/scapy/troubleshooting.rst
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,20 @@ Troubleshooting
5
5
FAQ
6
6
===
7
7
8
+
I can't sniff/inject packets in monitor mode.
9
+
---------------------------------------------
10
+
11
+
The use monitor mode varies greatly depending on the platform.
12
+
13
+
- **Windows/OSX - ``conf.use_pcap = True``**
14
+
The pcap providers must be called differently by Scapy in order for them to create the sockets in monitor mode. You will need to pass the ``monitor=True`` to any calls that open a socket on their own (``send``, ``sniff``...) or to a Scapy socket that you create yourself (``conf.L2Socket``...)
15
+
- **Linux native (with pcap disabled):**
16
+
You should set the interface in monitor mode on your own. Scapy provides utilitary functions: ``set_iface_monitor`` and ``get_iface_mode`` (linux only), that may be used (they do system calls to ``iwconfig`` and will restart the adapter).
17
+
18
+
Note that many adapters do not support monitor mode, especially on Windows, or may incorrectly report the headers. See `the Wireshark doc about this <https://wiki.wireshark.org/CaptureSetup/WLAN>`_
19
+
20
+
We make our best to make this work, if your adapter works with Wireshark for instance, but not with Scapy, feel free to report an issue.
21
+
8
22
My TCP connections are reset by Scapy or by my kernel.
The kernel is not aware of what Scapy is doing behind his back. If Scapy sends a SYN, the target replies with a SYN-ACK and your kernel sees it, it will reply with a RST. To prevent this, use local firewall rules (e.g. NetFilter for Linux). Scapy does not mind about local firewalls.
0 commit comments