Skip to content

Commit

Permalink
Merge pull request blacklanternsecurity#1461 from blacklanternsecurit…
Browse files Browse the repository at this point in the history
…y/warn-if-cloud

Warn if target contains cloud domain
  • Loading branch information
TheTechromancer authored Jun 15, 2024
2 parents 41a75a3 + b9bf47a commit 6f77f91
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bbot/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,15 @@ async def _main():
# if we're on the terminal, enable keyboard interaction
if sys.stdin.isatty():

# warn if any targets belong directly to a cloud provider
for event in scanner.target.events:
if event.type == "DNS_NAME":
provider, _, _ = scanner.helpers.cloudcheck(event.host)
if provider:
scanner.hugewarning(
f'YOUR TARGET CONTAINS A CLOUD DOMAIN: "{event.host}". You\'re in for a wild ride!'
)

import fcntl
from bbot.core.helpers.misc import smart_decode

Expand Down

0 comments on commit 6f77f91

Please sign in to comment.