Skip to content

Commit

Permalink
increase max dnscommonsrv handlers, small masscan bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Feb 2, 2024
1 parent 4a55633 commit 2692914
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bbot/modules/dnscommonsrv.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class dnscommonsrv(BaseModule):
produced_events = ["DNS_NAME"]
flags = ["subdomain-enum", "passive", "safe"]
meta = {"description": "Check for common SRV records"}
_max_event_handlers = 5
_max_event_handlers = 10

async def filter_event(self, event):
# skip SRV wildcards
Expand Down
6 changes: 4 additions & 2 deletions bbot/modules/masscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,11 @@ async def emit_from_cache(self):
await self.emit_event(line, "OPEN_TCP_PORT", source=source_event)

def get_source_event(self, host):
source_event = self.scan.whitelist.get(host)
source_event = self.scan.target.get(host)
if source_event is None:
source_event = self.scan.root_event
source_event = self.scan.whitelist.get(host)
if source_event is None:
source_event = self.scan.root_event
return source_event

async def cleanup(self):
Expand Down

0 comments on commit 2692914

Please sign in to comment.