Skip to content

srinithisundar/Network-Security-pcap-analysis-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Network Security - Pcap File Analysis using tcpdump

This repository contains scripts and resources for analyzing a pcap file using tcpdump. It includes general commands for working with tcpdump and a specific analysis script that examines a given pcap file.

Overview

  • tcpdump.sh → Contains general tcpdump commands that can be used for packet capturing, filtering, and analysis.
  • pcap_analysis.sh → A script that specifically analyzes the pcap file and extracts relevant network traffic information.
  • screenshots/ → Contains screenshots of important command outputs from the analysis.

Pcap File Source

The pcap file used for analysis was obtained from:
[https://github.com/MalwareCube/SOC101/blob/main/course_files/02_Network_Security.zip]

Thank you TCM security for providing this pcap file.

Note: The pcap file is not included in this repository.

How to Use

  1. Ensure tcpdump is installed:

    sudo apt-get install tcpdump
  2. To view general tcpdump commands:

    cat tcpdump.sh
  3. To run the pcap file analysis script:

    bash pcap_analysis.sh
  4. Refer to the screenshots/ folder for captured results.

Screenshots

###Below screenshots shows the output and the commands

  1. The total number of packets and icmp packets no_of_packets.png

  2. ASN
    getandpostreqs.png

  3. HTTP GET and POST requests cut.png

  4. Extract the fields and excluding the date cut.png

  5. Host information in the ASCII format userinfo.png

  6. Found Credentials credentials.png

  7. Other well-known TCP port other than HTTP port 80 filterport.png

  8. Credentials used to access the file sharing server for sharing file ftp_cred.png

  9. Finding unique user from User-Agent unique_user.png

  10. OSINT to find the Malware OSINT.png

  11. URL that the endpoint tried to connect to the User-Agent urltoconnect.png

About

Analyzing network traffic from pcap files using tcpdump.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages