MCPcopy Index your code
hub / github.com/OWASP/Python-Honeypot / FileEventsData

Class FileEventsData

database/datatypes.py:215–235  ·  view source on GitHub ↗

Object to store file changes events data collected from modules such as ftp/ssh weak_password module. Attributes: file_path : the path of the file which is changed status: status of the file would be added/modified/deleted module_name : on which module client ac

Source from the content-addressed store, hash-verified

213
214
215class FileEventsData:
216 """
217 Object to store file changes events data collected from
218 modules such as ftp/ssh weak_password module.
219
220 Attributes:
221 file_path : the path of the file which is changed
222 status: status of the file would be added/modified/deleted
223 module_name : on which module client accessed
224 date : datetime of the event
225 is_directory: is directory?
226 """
227
228 def __init__(self, file_path, status, module_name, date, is_directory):
229 self.file_path = file_path
230 self.module_name = module_name
231 self.date = date
232 self.status = status
233 self.is_directory = is_directory
234 self.machine_name = None
235 self.file_content = None
236
237
238class FileArchive:

Callers 1

on_any_eventMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected