Skip to content

Commit

Permalink
add log message
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Nov 6, 2024
1 parent 004f008 commit b91d950
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bbot/presets/spider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ description: Recursive web spider
modules:
- httpx

blacklist:
# Prevent spider from invalidating sessions by logging out
- "RE:/.*(sign[_-]?out|log[_-]?out)"

config:
web:
# how many links to follow in a row
Expand Down
2 changes: 1 addition & 1 deletion bbot/scanner/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ async def _prep(self):
f.write(self.preset.to_yaml())

# log scan overview
start_msg = f"Scan with {len(self.preset.scan_modules):,} modules seeded with {len(self.seeds):,} targets"
start_msg = f"Scan seeded with {len(self.seeds):,} targets"
details = []
if self.whitelist != self.target:
details.append(f"{len(self.whitelist):,} in whitelist")
Expand Down
1 change: 1 addition & 0 deletions bbot/scanner/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ def __init__(self, *args, **kwargs):
@special_target_type(r"^(?:RE|REGEX):(.*)")
def handle_regex(self, match):
pattern = match.group(1)
log.info(f"Blacklisting by custom regex: {pattern}")
blacklist_regex = re.compile(pattern, re.IGNORECASE)
self.blacklist_regexes.add(blacklist_regex)
return []
Expand Down

0 comments on commit b91d950

Please sign in to comment.