diff --git a/secator/tasks/naabu.py b/secator/tasks/naabu.py index 26eeacda..c9c69c83 100644 --- a/secator/tasks/naabu.py +++ b/secator/tasks/naabu.py @@ -53,3 +53,9 @@ class naabu(ReconPort): proxy_socks5 = True proxy_http = False profile = 'io' + + @staticmethod + def before_init(self): + for ix, input in enumerate(self.inputs): + if input == 'localhost': + self.inputs[ix] = '127.0.0.1' diff --git a/tests/integration/inputs.py b/tests/integration/inputs.py index cedf18f9..2675e623 100644 --- a/tests/integration/inputs.py +++ b/tests/integration/inputs.py @@ -4,7 +4,7 @@ URL: 'http://localhost:3000/', HOST: 'localhost', USERNAME: 'ocervell', - IP: '127.0.0.1', + IP: 'localhost', CIDR_RANGE: '192.168.1.0/24', 'bup': 'http://localhost:3000/ftp/coupons_2013.md.bak', 'dalfox': 'http://testphp.vulnweb.com/listproducts.php?cat=123&artist=123&asdf=ff', @@ -37,7 +37,7 @@ INPUTS_SCANS = { 'domain': 'testphp.vulnweb.com', - 'host': ['localhost', '127.0.0.1'], + 'host': ['localhost'], 'network': '127.0.0.1/24', 'url': ['http://localhost:3000', 'http://localhost:8080'] } \ No newline at end of file