Skip to content

Commit

Permalink
Merge pull request #864 from cclauss/patch-3
Browse files Browse the repository at this point in the history
Fix undefined names in sigma2misp.py
  • Loading branch information
thomaspatzke authored Jul 5, 2020
2 parents 4aae3a6 + 9dc3940 commit 57cb255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/sigma/sigma2misp.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
urllib3.disable_warnings()
from pymisp import PyMISP

def create_new_event():
def create_new_event(args, misp):
if hasattr(misp, "new_event"):
return misp.new_event(info=args.info)["Event"]["id"]

Expand Down Expand Up @@ -55,7 +55,7 @@ def main():

for sigma in paths:
if not args.event and (first or not args.same_event):
eventid = create_new_event()
eventid = create_new_event(args, misp)
print("Importing Sigma rule {} into MISP event {}...".format(sigma, eventid, end=""))
f = sigma.open("rt")

Expand Down

0 comments on commit 57cb255

Please sign in to comment.