Skip to content

GuillaumeMilan/networkex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetworkAnalyser

Network packet analyser written in elixir. The objective of the projet is to be able to read an output file from the tcpdump command

Installation

If available in Hex, the package can be installed by adding network_analyser to your list of dependencies in mix.exs:

def deps do
  [
    {:networkex, git: "https://github.com/GuillaumeMilan/networkex.git", branch: "master"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/network_analyser.

Usage example

Assuming example.txt is containing an output result of the tcpdump command, you can use the parsers as follow:

streamed_packets = Parser.Tcpdump.stream_tcpdump("example.txt")
translated_packets = Stream.map(streamed_packets, fn %{message: message} -> Parser.Applier.extract_layers_info(message, [Network, Transport]) end)
translated_packets |> Enum.take 1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages