Projects STRLCPY LogonTracer Commits 21bf2c9d
🤬
  • Fixed a bug where the parse status over 100%.

  • Loading...
  • shu-tom committed 6 years ago
    21bf2c9d
    1 parent 3b168157
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    docker/Dockerfile
    skipped 73 lines
    74 74   
    75 75  ## Create setup file
    76 76  RUN echo "#!/bin/bash" > setup.sh \
    77  - && echo "sleep 30" >> setup.sh \
     77 + && echo "sleep 40" >> setup.sh \
    78 78   && echo "curl -H \"Content-Type: application/json\" -X POST -d '{\"password\":\"password\"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password" >> setup.sh \
    79 79   && echo "rm -f /usr/local/src/setup.sh" >> setup.sh \
    80 80   && chmod 755 setup.sh
    81 81  RUN echo "#!/bin/bash" > run.sh \
     82 + && echo "sleep 40" >> run.sh \
    82 83   && echo "cd /usr/local/src/LogonTracer" >> run.sh \
    83 84   && echo "python3 logontracer.py -r -o 8080 -u neo4j -p password -s \${LTHOSTNAME}" >> run.sh \
    84 85   && chmod 755 run.sh
    skipped 9 lines
  • images/upload.gif
  • ■ ■ ■ ■ ■ ■
    logontracer.py
    skipped 269 lines
    270 270   print("[*] Parse the EVTX file %s." % evtx_file)
    271 271   with Evtx(evtx_file) as evtx:
    272 272   fh = evtx.get_file_header()
    273  - nx_number = fh.next_record_number()
    274  - print("[*] Next recode number is %i." % int(nx_number))
     273 + last_chunk = list(evtx.chunks())[-1]
     274 + last_record = last_chunk.file_first_record_number()
     275 + print("[*] Last recode number is %i." % int(last_record))
    275 276   
    276 277   if args.timezone:
    277 278   try:
    skipped 203 lines
    481 482   
    482 483   if args.run:
    483 484   try:
    484  - app.run(host="0.0.0.0", port=WEB_PORT)
     485 + app.run(threaded=True, host="0.0.0.0", port=WEB_PORT)
    485 486   except:
    486 487   sys.exit("[!] Can't runnning web application.")
    487 488   
    skipped 24 lines
  • ■ ■ ■ ■ ■
    templates/index.html
    skipped 148 lines
    149 149   <div class="modal-footer">
    150 150   <button type="submit" class="btn btn-primary" onclick="file_upload()">Upload</button>
    151 151   <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
     152 + <a href="log" target="_blank"><button type="button" class="btn btn-default">Log</button></a>
    152 153   </div>
    153 154   </div>
    154 155   </div>
    skipped 776 lines
    931 932   function searchError() {
    932 933   var elemMsg = document.getElementById("error");
    933 934   elemMsg.innerHTML =
    934  - '<div class="alert alert-warning alert-dismissible" role="alert"><button type="button" class="close" data-dismiss="alert" aria-label="close">\
     935 + '<div class="alert alert-warning alert-dismissible" id="alertfadeout" role="alert"><button type="button" class="close" data-dismiss="alert" aria-label="close">\
    935 936   <span aria-hidden="true">×</span></button><strong>WARNING</strong>: Search failed!</div>';
     937 + $(document).ready(function() {
     938 + $('#alertfadeout').fadeIn(2000).delay(4000).fadeOut(2000);
     939 + });
    936 940   }
    937 941   
    938 942   function file_upload() {
    skipped 86 lines
Please wait...
Page is in error, reload to recover