forked from p34709852/monkey
22 lines
762 B
Python
22 lines
762 B
Python
from gevent import monkey as gevent_monkey
|
|
|
|
gevent_monkey.patch_all()
|
|
|
|
from monkey_island.cc.main import main
|
|
|
|
|
|
def parse_cli_args():
|
|
import argparse
|
|
parser = argparse.ArgumentParser(description="Infection Monkey Island CnC Server. See https://infectionmonkey.com")
|
|
parser.add_argument("-s", "--setup-only", action="store_true",
|
|
help="Pass this flag to cause the Island to setup and exit without actually starting. "
|
|
"This is useful for preparing Island to boot faster later-on, so for "
|
|
"compiling/packaging Islands.")
|
|
args = parser.parse_args()
|
|
return args.setup_only
|
|
|
|
|
|
if "__main__" == __name__:
|
|
is_setup_only = parse_cli_args()
|
|
main(is_setup_only)
|