MCPcopy Create free account
hub / github.com/OWASP/Python-Honeypot / FileArchive

Class FileArchive

database/datatypes.py:238–254  ·  view source on GitHub ↗

Object to store details about captured network traffic files to be stored in the File Archive Attributes: file_path: the path of the PCAP file date: generation date and time of the file split_timeout: timeout value to be used to split PCAP files

Source from the content-addressed store, hash-verified

236
237
238class FileArchive:
239 """
240 Object to store details about captured network traffic files
241 to be stored in the File Archive
242
243 Attributes:
244 file_path: the path of the PCAP file
245 date: generation date and time of the file
246 split_timeout: timeout value to be used to split PCAP files
247 """
248
249 def __init__(self, file_path, date, split_timeout):
250 self.file_path = file_path
251 self.date = date
252 self.split_timeout = split_timeout
253 self.md5 = None
254 self.file_content = None

Callers 1

network_traffic_captureFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected