Skip to content

Commit

Permalink
Fixed issue #5 flask installed check
Browse files Browse the repository at this point in the history
  • Loading branch information
shu-tom committed Dec 8, 2017
1 parent 309108d commit 9df3492
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions logontracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@
EVTX_HEADER = b"\x45\x6C\x66\x46\x69\x6C\x65\x00"

# Flask instance
app = Flask(__name__)
if not has_flask:
sys.exit("[!] Flask must be installed for this script.")
else:
app = Flask(__name__)

parser = argparse.ArgumentParser(description="Visualizing and analyzing active directory Windows logon event logs.")
parser.add_argument("-r", "--run", action="store_true", default=False,
Expand Down Expand Up @@ -468,9 +471,6 @@ def main():
if not has_changefinder:
sys.exit("[!] changefinder must be installed for this script.")

if not has_flask:
sys.exit("[!] Flask must be installed for this script.")

try:
graph_http = "http://" + NEO4J_USER + ":" + NEO4J_PASSWORD +"@" + NEO4J_SERVER + ":" + NEO4J_PORT + "/db/data/"
GRAPH = Graph(graph_http)
Expand Down

0 comments on commit 9df3492

Please sign in to comment.