-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
29 lines (23 loc) · 705 Bytes
/
main.py
File metadata and controls
29 lines (23 loc) · 705 Bytes
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
import argparse, sys, cmds, subprocess
from plugin_man import PluginManager
def build(scenario):
print(f"Building scenario: {scenario}")
def main():
plugin_man = PluginManager()
parser = argparse.ArgumentParser(description = "OMEN: Extensible orchestration engine for vulnerable VM networks")
parser.add_argument(
"command",
type = str,
help = "Command to run"
)
parser.add_argument(
"-s", "--scenario",
required = True,
dest = "scenario",
type = str,
help = "Path of the scenario file"
)
args = parser.parse_args()
cmds.cmdhandler(args, plugin_man)
if __name__ == "__main__":
main()