sockmister / Network_Packet_Counter

Program that counts specific types of network packet given a dump file (generated from Wireshark).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Network_Packet_Counter


-------------------------------------------------------------------------------------------------------
Description:
Program parses a hexadecimal dump file generated by Wireshark and counts specific types network packets. 

Sample Output (using the provided dump file):
total number of Ethernet (IP + ARP) packets = 4021
total number of IP packets = 4011
total number of ARP packets = 10
total number of ICMP packets = 1098
total number of TCP packets = 1645
total number of UDP packets = 1262
total number of Ping packets = 1097
total number of DHCP packets = 14
total number of DNS packets = 1171


-------------------------------------------------------------------------------------------------------
Files:
Driver.java
Use Driver.java for a console I/O.

Count.java
Count.java contains the checking and counting. It recursively descends into the packet to check for the packet type.

hex.dat
Sample dump file. (Use a good text editor to open otherwise it might take a while)  


-------------------------------------------------------------------------------------------------------
To Run:
Compile Driver.java with Count.java in the same directory.
	"javac Driver.java"
Run.
	"java Driver"

About

Program that counts specific types of network packet given a dump file (generated from Wireshark).


Languages

Language:Java 100.0%