Skip to content

Commit

Permalink
some more printy prints
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrade committed Jul 24, 2020
1 parent edb8461 commit ad2d1c3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ EVTX log file ingestion (no Windows required) using amazing ![evtx-rs](https://g
## Usage

``` bash
tomm@dev-ubuntu:~/evtx-nom/evtx-nom$ python3 evtx_nom_cli.py
tomm@dev-ubuntu:python3 evtx_nom_cli.py
Getting Ready to Nom
found 1 source files
========================
Trying 'elastic_nom' Plugin
Ingesting files
Starting work on target sample_logs/Security.evtx
Finished Processing sample_logs/Security.evtx in 8 seconds. ingested 31828 out of 31828 events
Finished Processing sample_log
```

## Config File
Expand Down
6 changes: 6 additions & 0 deletions evtx_nom_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

# TODO args etc etc

print("Getting Ready to Nom")
# Open Config File
with open('config.json','r') as conf_file:
config = json.load(conf_file)
Expand All @@ -18,16 +19,21 @@
if f.endswith('.evtx'):
target_list.append(os.path.join(root, f))

print("found {} source files".format(len(target_list)))
print("=" * 24)
# Open Plugins
for output in config['outputs']:
if output['enabled']:
#es output
try:
print("Trying '{}' Plugin".format(output['name']))
nom_plugin = getattr(nom, output['name'])
actioner = nom_plugin(output)
except AttributeError:
print("Cannot find module '{}' have you messed up the spelling???".format(output['name']))
sys.exit()
# Ingest Files
print("Ingesting files")
for target in target_list:
actioner.ingest_file(target)
print("=" * 24)

0 comments on commit ad2d1c3

Please sign in to comment.