Skip to content

Commit

Permalink
Dumping json to a file
Browse files Browse the repository at this point in the history
  • Loading branch information
archcloudlabs committed Nov 11, 2020
1 parent 033fa7b commit 0526e60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions r2elk.py
Expand Up @@ -97,8 +97,8 @@ def write_output(self, fname, json_blob):
"""

try:
import pdb; pdb.set_trace()
with open(fname+".json", json_blob) as fout:
name = fname.split("/")[-1]
with open(name+".json", "w") as fout:
fout.write(json.dumps(json_blob))
except IOError as io_err:
print("io_err")
Expand Down Expand Up @@ -368,7 +368,7 @@ def run_triage(self, yarascan=None):
required=False, help="Elasticsearch Index")

parser.add_argument("-y", "--yara", type=str, default=None, required=False, help="Yara files to process")
parser.add_argument("-v", "--verbose", action="store_true", default=False, required=False, help="Write data out")
parser.add_argument("-v", "--verbose", action="store_true", default=None, required=False, help="Write data out")

args = parser.parse_args()
util = Utils()
Expand Down

0 comments on commit 0526e60

Please sign in to comment.