Skip to content

Commit

Permalink
fixing bug with tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidsec committed Feb 7, 2024
1 parent fa6be6e commit ba9236a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bbot/modules/baddns.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,21 @@ async def handle_event(self, event):
"host": str(event.host),
}
await self.emit_event(
data, "VULNERABILITY", event, tags=[f"baddns-{ModuleClass.name.lower()}"]
data, "VULNERABILITY", event, tags=[f"baddns-{module_instance.name.lower()}"]
)

elif r_dict["confidence"] in ["UNLIKELY", "POSSIBLE"] and not self.only_high_confidence:
data = {
"description": f"{r_dict['description']} Confidence: [{r_dict['confidence']}] Signature: [{r_dict['signature']}] Indicator: [{r_dict['indicator']}] Trigger: [{r_dict['trigger']}] baddns Module: [{r_dict['module']}]",
"host": str(event.host),
}
await self.emit_event(data, "FINDING", event, tags=[f"baddns-{ModuleClass.name.lower()}"])
await self.emit_event(data, "FINDING", event, tags=[f"baddns-{module_instance.name.lower()}"])
else:
self.warning(f"Got unrecognized confidence level: {r['confidence']}")

found_domains = r_dict.get("found_domains", None)
if found_domains:
for found_domain in found_domains:
await self.emit_event(
found_domain, "DNS_NAME", event, tags=[f"baddns-{ModuleClass.name.lower()}"]
found_domain, "DNS_NAME", event, tags=[f"baddns-{module_instance.name.lower()}"]
)

0 comments on commit ba9236a

Please sign in to comment.