Skip to content

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

Notifications You must be signed in to change notification settings

sockmister/Network_Packet_Counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages