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

Method run

core/file_monitor.py:62–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

60 self.observer.stop()
61
62 def run(self):
63 event_handler = ContainerFilesHandler()
64 event_handler.log_filename = self.log_filename
65 event_handler.EXCLUDES = self.EXCLUDES
66 event_handler.module_name = self.module_name
67
68 # set 777 permission and allow container read/write/execute
69 oschmod.set_mode(self.DIRECTORY_TO_WATCH, '777')
70
71 self.observer.schedule(event_handler, self.DIRECTORY_TO_WATCH, recursive=True)
72 self.observer.start()
73 while not self.stop_execution:
74 try:
75 time.sleep(0.1)
76 except Exception:
77 pass

Callers 3

start_api_serverFunction · 0.45
uFunction · 0.45
ptFunction · 0.45

Calls 1

Tested by

no test coverage detected