Questions tagged [pyshark]

PyShark is a Python wrapper allowing packet parsing using Wireshark dissectors. This package allows parsing from a capture file or a live capture, using all installed Wireshark dissectors.

PyShark is a Python wrapper allowing packet parsing using Wireshark dissectors. This package allows parsing from a capture file or a live capture, using all installed Wireshark dissectors.

189 questions
0
votes
1 answer

Display double vlan using pyshark

How can you get a list of vlans if you have more than one, for example if i have this packet.. Layer ETH: Destination: 00:99:88:77:66:55 (00:99:88:77:66:55) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) …
user2988257
  • 882
  • 4
  • 25
  • 43
0
votes
1 answer

pyshark packets queue and pickle errors

I am trying to use pyshark to capture packets live. I get the following error when I try to get the packets from a multiprocessing.Queue or to un-pickle them: python2.7/site-packages/pyshark/packet/layer.py", line 48, in __getattr__ val =…
d6bels
  • 1,432
  • 2
  • 18
  • 30
-1
votes
0 answers

saving packets in the pcap file with python packages

i have a list of packets that read from pyshark package in python packets = [] # list of packets that read with pyshark how I can save them in the pcap file ? i don't know how i can convert them to the bynary ?
amir.h
  • 1
  • 1
-1
votes
0 answers

saving packets in pcap file with wireshark

i have a list of packets i want to save packets in pcap file with pyshark I can't convert packets to bynary of that packets = [] # List to store filtered packets # Loop through packets and filter based on the capture filter for…
amir.h
  • 1
  • 1
-1
votes
1 answer

Print packet protocol type using PyShark

I want to print all the protocols of the packet (ie: ICMP, ARP, TCP, UDP, etc.) but I am getting only TCP and UDP. I am using pyshark and python to capture packets. import pyshark capture =…
-1
votes
1 answer

SIP Packet Parsing using python

I have a pcap file captured during the VOIP call. From this file, I would like to filter out only the SIP packets and I would like to parse the SIP packets to read the information present in the "SIP message Header" and "SIP Message body" using…
-1
votes
2 answers

why does my code show this error when using Pyshark library

while am trying to use pyshark for some ctf tasks i got this output: traceback (most recent call last): File "test.py", line 5, in if ("TCP" or "TLSv1.2") and ((packet.ip.src=="172.217.18.227" or packet.ip.src=="192.168.1.100")) in…
Feres Hammemi
  • 29
  • 1
  • 1
  • 6
-1
votes
1 answer

What is the reason of "No module found error" for pyshark module?

I wanted to take some suggestion and learn the reason of getting "No module found error" for pyshark module. I installed it however I'm still getting error. You can see short record below. https://asciinema.org/a/MHAX4PeIg5yWSm40KcYqWQBDi Thanks in…
geek
  • 51
  • 9
-2
votes
6 answers

How Do I get Packets from Locally hosted website on remote computer with pyshark

I am trying to get packets from a website hosted locally on remote computer(Test purpose) using pyshark. Here is my code: import pyshark def print_live_dns(): capture = pyshark.LiveCapture("wlan0") for packet in capture: #…
Bruno
  • 655
  • 8
  • 18
1 2 3
12
13