fabric-DDoS-Double_spending_attack-Dataset
收藏资源简介:
一个用于Hyperledger Fabric联盟区块链中DDoS攻击和双重花费攻击的数据集。文件1.txt和2.txt包含攻击者的攻击日志,记录了每次双重花费攻击的执行时间和每次DDoS攻击的开始和结束时间。文件node_info_1.txt和node_info_2.txt包含节点的信息,每行描述一个节点,格式为ip type main_port,其中类型3表示对等节点,类型2表示排序节点,类型1表示其他IP,类型0表示网关。
A dataset for DDoS attacks and double-spending attacks in the Hyperledger Fabric consortium blockchain. Files 1.txt and 2.txt contain the attacker's attack logs, recording the execution time of each double-spending attack and the start and end times of each DDoS attack. Files node_info_1.txt and node_info_2.txt contain node information, with each line describing a node in the format ip type main_port, where type 3 represents a peer node, type 2 represents an ordering node, type 1 represents other IPs, and type 0 represents a gateway.
数据集概述
文件说明
-
攻击日志
- 文件名:1.txt 和 2.txt
- 内容:记录每次双花攻击的执行时间和每次DDoS攻击的开始及结束时间。
-
节点信息
- 文件名:node_info_1.txt 和 node_info_2.txt
- 内容:每行描述一个节点,格式为 "ip type main_port"。
- 类型说明:
- 类型3:peer节点
- 类型2:orderer节点
- 类型1:其他IP
- 类型0:网关
数据处理
- 使用命令 "python structure.py pcapfile pklfile attack_log node_info" 可将pcap文件转换为pickle文件。
- 注意:程序使用追加模式,如需覆盖pkl文件,请手动清理。




