Data Collection server. Collects, cleans and stores IPv6 packets for future study.
- Receive IPv6 packets from clients
- Hourly and daily zipping of data files
- python
- cron jobs
.
├── config.py
├── daily_zip.py
├── hourly_zip.py
└── README.md
- Clone the repository
git clone https://github.com/web-telescope/survey6.git
- Move to C&C Server
cd ../Data\ Aggregator/
- Create cron jobs
- Edit Crontab
sudo crontab -e
- Select your editor
- Add following two lines
0 * * * * sudo /usr/bin/python3 [Path to survey6]/Data\ Aggregator/hourly_zip.py
0 0 * * * sudo /usr/bin/python3 [Path to survey6]/Data\ Aggregator/daily_zip.py
Such as,
0 * * * * sudo /usr/bin/python3 /home/dhruvi/survey6/Data\ Aggregator/hourly_zip.py
0 0 * * * sudo /usr/bin/python3 /home/dhruvi/survey6/Data\ Aggregator/daily_zip.py
- To check
sudo crontab -l
grep CRON /var/log/syslog
.
├── clientEnd
│ └── dhruvi-HP-Pavilion-Laptop-15-cs2xxx //client dumps the files here
│ ├── f23-07-2023-16-32-19.json
│ ├── f23-07-2023-16-32-19.pcap
│ ├── f23-07-2023-16-32-34.pcap
│ └── f23-07-2023-16-32-38.pcap
└── processedFiles
└── dhruvi-HP-Pavilion-Laptop-15-cs2xxx
├── daily
│ ├── 2023-07-21.zip
│ └── 2023-07-22.zip
└── hourly
├── 2023-07-23_15-33.zip
├── 2023-07-23_14-29.zip
.
.