-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathrun.py
More file actions
executable file
·27 lines (22 loc) · 859 Bytes
/
run.py
File metadata and controls
executable file
·27 lines (22 loc) · 859 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
#from app import app
import argparse
parser = argparse.ArgumentParser(
description="ThreatKB is THE knowledge base workflow management tool for Yara rules and C2 artifacts (IP, DNS, SSL Certificates)."
)
# Define accepted arguments and metadata.
parser.add_argument('--listen-on',
action='store',
type=str,
default="127.0.0.1",
dest='listen_on',
help='Specify the IP address to listen on.')
parser.add_argument('--listen-port',
action='store',
type=int,
default=5000,
dest='listen_port',
help='Specify the port to listen on.')
args = parser.parse_args()
#app.run(debug=True)
import app
app.run(debug=True, host=args.listen_on, port=args.listen_port)