Skip to content

Commit 1b12214

Browse files
committed
change to new function name
1 parent ee844c6 commit 1b12214

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bbot/modules/waf_bypass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ async def finish(self):
268268
if self.search_ip_neighbors and ip not in self.cloud_ips:
269269
import ipaddress
270270

271-
orig_asns = await self.helpers.asn.get(str(ip))
271+
orig_asns = await self.helpers.asn.ip_to_subnets(str(ip))
272272
if orig_asns:
273273
neighbor_net = ipaddress.ip_network(f"{ip}/{self.neighbor_cidr}", strict=False)
274274
for neighbor_ip in neighbor_net.hosts():

bbot/test/test_step_2/module_tests/test_module_waf_bypass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async def setup_after_prep(self, module_test):
7575
self.dummy_module = self.DummyModule(module_test.scan)
7676
module_test.scan.modules["dummy_module"] = self.dummy_module
7777

78-
module_test.monkeypatch.setattr(ASNHelper, "asndb_url", "http://127.0.0.1:8888/v1/ip/")
78+
module_test.monkeypatch.setattr(ASNHelper, "asndb_ip_url", "http://127.0.0.1:8888/v1/ip/")
7979

8080
expect_args = {"method": "GET", "uri": "/v1/ip/127.0.0.2"}
8181
respond_args = {

0 commit comments

Comments
 (0)