forked from EmpireProject/Empire
-
-
Notifications
You must be signed in to change notification settings - Fork 679
Expand file tree
/
Copy pathempire.py
More file actions
32 lines (21 loc) · 750 Bytes
/
empire.py
File metadata and controls
32 lines (21 loc) · 750 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
30
31
32
#! /usr/bin/env python3
import sys
from empire import arguments
if __name__ == "__main__":
args = arguments.args
if args.subparser_name == "server":
from empire.server import server
server.run(args)
elif args.subparser_name == "api_export":
from empire.scripts.api_export import api_export
api_export(args)
elif args.subparser_name == "sync-starkiller":
import yaml
from empire.scripts.sync_starkiller import sync_starkiller
with open("empire/server/config.yaml") as f:
config = yaml.safe_load(f)
sync_starkiller(config)
elif args.subparser_name == "client":
from empire.client import client
client.start(args)
sys.exit(0)