Skip to content

Commit

Permalink
Renamed email_addresses to emails
Browse files Browse the repository at this point in the history
  • Loading branch information
domwhewell-sage committed Dec 23, 2023
1 parent 2546e35 commit 8a4d67d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
from bbot.modules.output.human import Human


class email_addresses(Human):
class Emails(Human):
watched_events = ["EMAIL_ADDRESS"]
flags = ["email-enum"]
meta = {"description": "Output any email addresses found belonging to the target domain"}
options = {"output_file": ""}
options_desc = {"output_file": "Output to file"}
in_scope_only = True

output_filename = "email_addresses.txt"
output_filename = "emails.txt"

async def setup(self):
return await super().setup()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from .base import ModuleTestBase


class TestEmail_Addresses(ModuleTestBase):
modules_overrides = ["email_addresses", "emailformat"]
class TestEmais(ModuleTestBase):
modules_overrides = ["emails", "emailformat"]

async def setup_before_prep(self, module_test):
module_test.httpx_mock.add_response(
Expand All @@ -11,6 +11,6 @@ async def setup_before_prep(self, module_test):
)

def check(self, module_test, events):
sub_file = module_test.scan.home / "email_addresses.txt"
email_addresses = set(open(sub_file).read().splitlines())
assert email_addresses == {"[email protected]"}
sub_file = module_test.scan.home / "emails.txt"
emails = set(open(sub_file).read().splitlines())
assert emails == {"[email protected]"}

0 comments on commit 8a4d67d

Please sign in to comment.