Class ProtocolAnalyser

java.lang.Object
marauroa.tools.protocolanalyser.ProtocolAnalyser

public class ProtocolAnalyser extends Object
A protocol analyser. You can sniff the network dump with tools like Wireshark or Tcpdump. The let Wireshark "follow the tcp stream", and save the result in raw format.
Author:
hendrik
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    dump​(InputStream is, boolean dumpRawData)
    reads a network dump file and prints the packages, their content and the way how Marauroa parses the data.
    static void
    main​(String[] args)
    reads a network dump file and prints the packages, their content and the way how Marauroa parses the data.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProtocolAnalyser

      public ProtocolAnalyser()
  • Method Details

    • dump

      public void dump(InputStream is, boolean dumpRawData) throws IOException, InvalidVersionException
      reads a network dump file and prints the packages, their content and the way how Marauroa parses the data.
      Parameters:
      is - InputStream
      dumpRawData - should the raw data be dumped as hex?
      Throws:
      IOException - in case of an I/O error
      InvalidVersionException - if the version of Marauroa used to create the dump and the one used to parse it are incompatible
    • main

      public static void main(String[] args) throws IOException, InvalidVersionException
      reads a network dump file and prints the packages, their content and the way how Marauroa parses the data.
      Parameters:
      args - name of dump file
      Throws:
      IOException - in case of an input/output error
      InvalidVersionException - in case the dump was created using a version of marauroa that cannot be understood by the version used in this analyse run.