Projects STRLCPY LogonTracer Commits 7ff55c73
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    logontracer.py
    skipped 76 lines
    77 77  NEO4J_PORT = "7474"
    78 78  # Web application port
    79 79  WEB_PORT = 8080
     80 +# Web application address
     81 +WEB_HOST = "0.0.0.0"
    80 82   
    81 83  # Check Event Id
    82 84  EVENT_ID = [4624, 4625, 4662, 4768, 4769, 4776, 4672, 4720, 4726, 4728, 4729, 4732, 4733, 4756, 4757, 4719, 5137, 5141]
    skipped 94 lines
    177 179   help="Machine learning event logs using Hidden Markov Model.")
    178 180  parser.add_argument("-o", "--port", dest="port", action="store", type=int, metavar="PORT",
    179 181   help="Port number to be started web application. (default: 8080).")
     182 +parser.add_argument("--host", dest="host", action="store", type=str, metavar="HOST",
     183 + help="Host address to bind the web application. (default: 0.0.0.0).")
    180 184  parser.add_argument("-s", "--server", dest="server", action="store", type=str, metavar="SERVER",
    181 185   help="Neo4j server. (default: localhost)")
    182 186  parser.add_argument("-u", "--user", dest="user", action="store", type=str, metavar="USERNAME",
    skipped 80 lines
    263 267  if args.port:
    264 268   WEB_PORT = args.port
    265 269   
     270 +if args.host:
     271 + WEB_HOST = args.host
    266 272   
    267 273  # Web application index.html
    268 274  @app.route('/')
    skipped 793 lines
    1062 1068   
    1063 1069   if args.run:
    1064 1070   try:
    1065  - app.run(threaded=True, host="0.0.0.0", port=WEB_PORT)
     1071 + app.run(threaded=True, host=WEB_HOST, port=WEB_PORT)
    1066 1072   except:
    1067 1073   sys.exit("[!] Can't runnning web application.")
    1068 1074   
    skipped 23 lines
Please wait...
Page is in error, reload to recover