protocol analysis Lab 5- Tshark on Linux
#!/bin/bash
# minute hour day month weekday command
crontab -r to remove
crontab -l to list content
crontab -e to edit the user’s crontab using editor
part A
–Login- mit641
mit641
–create desktop folder alwarawrehlab5
–pscp.exe
–open cmd
–cd to Desktop\alwarawrehlab5
–putty-ssh-ip
–group15
group15
part B
cd Desktop or mkdir Desktop
mkdir lab5
cd lab5
vi sniff.sh*
/usr/sbin/tshark -i1 -a duration:90 -w /home/group15/Desktop/lab5/results$(date +”%s”).cap
chmod +x sniff.sh
./sniff.sh
part C
use pscp.exe
pscp group15@192.168.x.x:Desktop/lab5/*.cap.
group15
group15
after fiish -use wireshark to save
part D
crontab -e
20,22,24 * * * * /home/group15/Desktop/lab5/sniff.sh
pscp group15@192.168.x.x:Desktop/lab5/*.cap.
Merge them into a single Wireshark file—File -> Merge
Leave a reply