Skip to content

Commit

Permalink
fix PTR tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Feb 1, 2024
1 parent 05b181d commit f7725d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bbot/test/test_step_1/test_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async def test_scan(
assert not scan2.in_scope("1.0.0.1")

dns_table = {
"1.1.1.1": {"PTR": ["one.one.one.one"]},
"1.1.1.1.in-addr.arpa": {"PTR": ["one.one.one.one"]},
"one.one.one.one": {"A": ["1.1.1.1"]},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class TestAffiliates(ModuleTestBase):
async def setup_before_prep(self, module_test):
module_test.mock_dns(
{
"8.8.8.8": {"PTR": ["dns.google"]},
"8.8.8.8.in-addr.arpa": {"PTR": ["dns.google"]},
"dns.google": {"A": ["8.8.8.8"], "NS": ["ns1.zdns.google"]},
"ns1.zdns.google": {"A": ["1.2.3.4"]},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TestAsset_Inventory(ModuleTestBase):
async def setup_before_prep(self, module_test):
module_test.mock_dns(
{
"127.0.0.1": {"PTR": ["www.bbottest.notreal"]},
"1.0.0.127.in-addr.arpa": {"PTR": ["www.bbottest.notreal"]},
"www.bbottest.notreal": {"A": ["127.0.0.1"]},
}
)
Expand Down

0 comments on commit f7725d4

Please sign in to comment.