Skip to content

Commit 96bbc86

Browse files
committed
Fix test email format
1 parent 4eee041 commit 96bbc86

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bbot/modules/emailformat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async def handle_event(self, event):
3434

3535
key = int(enc[:2], 16)
3636

37-
email = "".join([chr(int(enc[i : i + 2], 16) ^ key) for i in range(0, len(enc), 2)]).lower()
37+
email = "".join([chr(int(enc[i : i + 2], 16) ^ key) for i in range(2, len(enc), 2)]).lower()
3838

3939
if email.endswith(query):
4040
await self.emit_event(

bbot/test/test_step_2/module_tests/test_module_emailformat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class TestEmailFormat(ModuleTestBase):
55
async def setup_before_prep(self, module_test):
66
module_test.httpx_mock.add_response(
77
url="https://www.email-format.com/d/blacklanternsecurity.com/",
8-
text="<p>info@blacklanternsecurity.com</a>",
8+
text="""<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0a63646c654a68666b6961666b647e6f7864796f697f78637e7324696567">[email&#160;protected]</a>""",
99
)
1010

1111
def check(self, module_test, events):

0 commit comments

Comments
 (0)