Skip to content

ramz-021002/AutomatedPcapXray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutomatedPcapXray

The main source of this repository is from https://github.com/Srinivas11789/PcapXray I have tried to automate the analysis of this tool and removed GUI.
After cloning this repository there are few chages that are need to be done, in user_interface.py change self.pcap_file and self.destination_report as per your choice and in plot_lan_network.py and change pcapfile as done in user_interface.py

Installation procedure

  1. Initially clone the GitHub repository
git clone https://github.com/ramz-021002/AutomatedPcapXray.git
  1. Install a few requirements
sudo apt install python3-pip
sudo apt install python3-tk
sudo apt install graphviz
sudo apt install python3-pil python3-pil.imagetk
  1. Install other requirements using pip from the requirements.txt
sudo pip3 install -r requirements.txt
  1. In the file plot_lan_network.py. In the main definition add the path you have cloned the repository
  2. In user_interface.py add the path you have cloned the repository
  3. Now set the directory as follows
cd <your-path>/AutomatedPcapXray
  1. Run main.sh with sudo access (modify the command as per machine)
sudo ./main.sh
  1. Once the analysis of an iteration is done you can see the report file generated in the Report file inside the Module file.

Zeek Installation Procedure

  1. Update and Upgrade the Ubuntu machine
sudo apt-get update
sudo apt-get upgrade
  1. Install the dependencies
sudo apt-get install cmake make gcc g++ flex bison libpcap-dev libssl-dev python3-dev swig zlib1g-dev
  1. Go to zeek website and download source file of zeek.
  2. Change the directory to the downloaded folder, and run uncompress the file
tar -xzf zeek-<version>.tar.gz
  1. Change the directory to the Zeek folder and run
./configure
  1. Now run make and then sudo make install
make
sudo make install
  1. Once the above commands are done executing now edit to bashrc using
nano ~/.bashrc
  1. Add the path using
export PATH=/usr/local/zeek/bin:$PATH
  1. Run the source command and check the zeek path and zeek version
source ~./bashrc
which zeek
zeek --version
  1. Change the directory to /usr/local/zeek/etc folder and check your interface name using ifconfig
cd /usr/local/zeek/etc
ifconfig
  1. Change the interface to the system assigned interface in the node.cfg
nano node.cfg
  1. Now change directory to bin file and check the zeekctl
cd ..
cd bin
sudo ./zeekctl check
  1. Once you get zeek scripts are ok as output deploy zeekctl
sudo ./zeekctl deploy
  1. To check the status of zeek
sudo ./zeekctl status

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors