Skip to content

Commit

Permalink
code formatting, tweaking source correlation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Aug 31, 2023
1 parent ee16634 commit ea66ab7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bbot/modules/deadly/nuclei.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,11 @@ async def handle_batch(self, *events):
cleaned_host = temp_target.get(host)
source_event = self.correlate_event(events, cleaned_host)

if url == "":
if not source_event:
if not source_event:
continue
url = str(source_event.data)

if url == "":
url = str(source_event.data)

description_string = f"template: [{template}], name: [{name}]"
if len(extracted_results) > 0:
Expand Down

0 comments on commit ea66ab7

Please sign in to comment.