| 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 |