Skip to content
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

Updated scapy concept to use PcapReader #519

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions docs/source/capturing_BLE_Wireshark.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,24 @@ Note: If you get `User encapsulation not handled: DLT=147, check your Preference

Capturing BLE in scapy
^^^^^^^^^^^^^^^^^^^^^^
#. Run ubertooth-btle to capture data

#. Do not use mkfifo for the filename, it will cause scapy to slow dramatically.
.. code-block:: sh

#. In a terminal, run ubertooth-btle:

.. code-block:: sh

ubertooth-btle -f -q /tmp/pipe
ubertooth-btle -n -c /tmp/bluesCap

#. Open python and run:

.. code-block:: sh
.. code-block:: py

from scapy.all import *
p = sniff(offline='/tmp/pipe')
import time
from scapy.all import *
snarf = PcapReader('/tmp/bluesCap')
pkts = [i for i in snarf]

p is now a list of the packets captured!
## Sleep for 3 seconds and then grab from the generator
time.sleep(3)
pkts = pkts + [i for i in snarf]



Expand Down