Skip to content

按照会话解包, 然后提取明文txt信息, 让ChatGPT来判断一下是否存在攻击行为

Notifications You must be signed in to change notification settings

VitoYane/PcapSplit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fbd4afb · Mar 7, 2023

History

10 Commits
Feb 27, 2023
Feb 17, 2023
Mar 7, 2023
Feb 17, 2023
Feb 17, 2023
Feb 25, 2023
Feb 17, 2023

Repository files navigation

PcapSplit

PcapSplit

依赖库

pip install -r requirements.txt

解包

python3 a_split_pcap.py 原始pcap文件 解包目录

可以将大的pcap文件, 使用tshark命令按照会话提取为单个pcap文件. 因为使用Python自己的库提取的会话都不太对, 所以调用的tshark程序(运行环境 linux), 速度较慢.

提取明文

python3 b_get_http.py 待提取的pcap文件目录

会遍历目录下所有pcap文件, 转化成明文txt文件

提交检测

python3 c_get_result.py 待判断的pcap文件目录

会遍历目录下所有txt文件, 提交到ChatGPT的接口进行攻击判断

image

About

按照会话解包, 然后提取明文txt信息, 让ChatGPT来判断一下是否存在攻击行为

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages