forked from blacklanternsecurity/bbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switched scope test --> emails=False
- Loading branch information
github-actions
committed
Aug 26, 2024
1 parent
e5a7182
commit 06c262a
Showing
1 changed file
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,16 +31,14 @@ def check(self, module_test, events): | |
assert not any(str(e.data) == "[email protected]" for e in events) | ||
|
||
|
||
class TestSecurityTxtInScopeFalse(TestSecurityTxt): | ||
class TestSecurityTxtEmailsFalse(TestSecurityTxt): | ||
config_overrides = { | ||
"scope": {"report_distance": 1}, | ||
"modules": {"securitytxt": {"in_scope_only": False}}, | ||
"modules": {"securitytxt": {"emails": False}}, | ||
} | ||
|
||
def check(self, module_test, events): | ||
assert any( | ||
e.type == "EMAIL_ADDRESS" and e.data == "[email protected]" for e in events | ||
), "Failed to detect email address" | ||
assert not any(e.type == "EMAIL_ADDRESS" for e in events), "Detected email address when emails=False" | ||
assert any( | ||
e.type == "URL_UNVERIFIED" and e.data == "https://vdp.example.com/" for e in events | ||
), "Failed to detect URL" | ||
|