forked from ARL-UTEP-OC/eceld
-
Notifications
You must be signed in to change notification settings - Fork 1
/
start.py
82 lines (75 loc) · 3.1 KB
/
start.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/env python
import logging
import time
from engine.engine import Engine
def execute_tshark_test():
logging.getLogger().setLevel(logging.DEBUG)
logging.debug("Starting Program")
logging.debug("Engine_invoker: getting engine instance")
engine = Engine()
logging.debug("Engine_invoker: Removing all previous data")
engine.delete_all()
logging.debug("Engine_invoker: invoking print_collector_names")
engine.print_collector_names()
logging.debug("Engine_invoker: obtaining tshark collector")
c = engine.get_collector("tshark")
logging.debug("Engine_invoker: starting collector")
engine.start_collector(c)
def execute_pykeylogger_test():
logging.getLogger().setLevel(logging.DEBUG)
logging.debug("Starting Program")
logging.debug("Engine_invoker: getting engine instance")
engine = Engine()
logging.debug("Engine_invoker: Removing all previous data")
engine.delete_all()
logging.debug("Engine_invoker: invoking print_collector_names")
engine.print_collector_names()
logging.debug("Engine_invoker: obtaining pykeylogger collector")
c = engine.get_collector("pykeylogger")
logging.debug("Engine_invoker: starting collector")
engine.start_collector(c)
def execute_nmap_test():
logging.getLogger().setLevel(logging.DEBUG)
logging.debug("Starting Program")
logging.debug("Engine_invoker: getting engine instance")
engine = Engine()
logging.debug("Engine_invoker: Removing all previous data")
engine.delete_all()
logging.debug("Engine_invoker: invoking print_collector_names")
engine.print_collector_names()
logging.debug("Engine_invoker: obtaining nmap collector")
c = engine.get_collector("nmap")
logging.debug("Engine_invoker: starting collector")
engine.start_collector(c)
def execute_manualscreenshot_test():
logging.getLogger().setLevel(logging.DEBUG)
logging.debug("Starting Program")
logging.debug("Engine_invoker: getting engine instance")
engine = Engine()
logging.debug("Engine_invoker: Removing all previous data")
engine.delete_all()
logging.debug("Engine_invoker: invoking print_collector_names")
engine.print_collector_names()
logging.debug("Engine_invoker: obtaining manualscreenshot collector")
c = engine.get_collector("manualscreenshot")
logging.debug("Engine_invoker: starting collector")
engine.start_collector(c)
def execute_snoopy_test():
logging.getLogger().setLevel(logging.DEBUG)
logging.debug("Starting Program")
logging.debug("Engine_invoker: getting engine instance")
engine = Engine()
logging.debug("Engine_invoker: Removing all previous data")
engine.delete_all()
logging.debug("Engine_invoker: invoking print_collector_names")
engine.print_collector_names()
logging.debug("Engine_invoker: obtaining snoopy collector")
c = engine.get_collector("snoopy")
logging.debug("Engine_invoker: starting collector")
engine.start_collector(c)
if __name__ == "__main__":
execute_tshark_test()
execute_pykeylogger_test()
execute_nmap_test()
#execute_manualscreenshot_test()
execute_snoopy_test()