Skip to content

Import PCAP files#795

Merged
GyulyVGC merged 70 commits intomainfrom
import-pcap
Jun 6, 2025
Merged

Import PCAP files#795
GyulyVGC merged 70 commits intomainfrom
import-pcap

Conversation

@GyulyVGC
Copy link
Owner

@GyulyVGC GyulyVGC commented May 1, 2025

Finally introduce the possibility to read data from a PCAP file in addition to network adapters.

This PR makes Sniffnet fully compatible with the output produced by other network analysers: this means that now you can import data from other tools and visualise it in a Sniffnet interface.

Untitled.mp4

Fixes #283.

Note

PCAP export is already supported by Sniffnet since v1.3.0 (see #473).

Also note that a considerable amount of efforts of this PR come from #806


TODO list before merging:

  • Add generic capture source to abstract either a network adapter or a PCAP file
  • Add PCAP file selection in the UI
  • Read capture timestamps instead of assigning them manually
  • Change the logic of the app when importing data from a PCAP file
    • Replace the live chart with a representation that's more suitable for offline data
    • Find an alternative way to establish traffic directionality given that interface addresses are not available
    • Produce a Tick message each time 1 second elapses in the capture file metadata (made possible by Use asynchronous channels to update app state from backend #806)
    • Info column in overview page should include data about the file instead of the adapter name
    • Disable capture file export
    • Disable notifications sound
    • Update waiting screen

@GyulyVGC GyulyVGC added the enhancement New feature, request, or improvement label May 1, 2025
@GyulyVGC GyulyVGC added this to the v1.4.0 milestone May 1, 2025
@GyulyVGC GyulyVGC self-assigned this May 1, 2025
@GyulyVGC GyulyVGC marked this pull request as draft May 1, 2025 21:31
Use asynchronous channels to update app state from backend
@GyulyVGC GyulyVGC marked this pull request as ready for review June 6, 2025 00:18
Copy link
Owner Author

@GyulyVGC GyulyVGC left a comment

Choose a reason for hiding this comment

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

🚢

@GyulyVGC GyulyVGC merged commit 3391fac into main Jun 6, 2025
6 checks passed
@GyulyVGC GyulyVGC deleted the import-pcap branch June 6, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, request, or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to read PCAP files

1 participant