This is a repository for Tenkey to upload some codes during the experiment by SongTian.
Tenkey will update it occasionally.
This tool aims to capture network packets and unpack them, to show you on your screen and finally save those packets in a .pcap
file which can be opened by network-packet-capture tools like Wireshark.
- You choose which network interface yoo want to capture.
- You can set filter to get packets by conforming the Berkeley Packet Filter(BPF) syntax.
- Also you can name your
.pcap
files or it will be automatically named by the timestamp.
In the beginning of this program,you can choose different Network interface to capture packets (if not, the default Network interface will be ens33
,which you can change in the codes),and afterwards you can set BPF syntax to filter the enormous packets.
packets structure will be like that by Stripping packets through DPKT
you can just save by youself, it is up to you.
Codes: tk_cap.py