Skip to content

Conversation

tranzmatt
Copy link

This allows FileCapture to read from a FIFO, which can be useful for parsing the kismet pcapng stream.

mkfifo /tmp/sharkfin || true
wireshark -k -i /tmp/sharkfin &
curl -N -u user:password http://localhost:2501/pcap/all_packets.pcapng > /tmp/sharkfin &

Copy link

@XChikuX XChikuX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please implement said fix

"""
for layer in self.layers:
if layer.layer_name == item:
if layer.layer_name.lower() == item:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to:
if layer.layer_name.lower() == item.lower():

@KimiNewt
Copy link
Owner

There appear to be a bunch of unrelated things in this PR, please only contain the feature in the PR title.

params = super(LiveCapture, self).get_parameters(
packet_count=packet_count)
# Read directly from interfaces
for interface in self.interfaces:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't related to this PR, and there's a reason we use dumpcap and don't read directly from the interface

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

Successfully merging this pull request may close these issues.

3 participants