Skip to content

Commit

Permalink
fix: naabu localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
ocervell committed Dec 3, 2024
1 parent ece973e commit 258a648
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions secator/tasks/naabu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
4 changes: 2 additions & 2 deletions tests/integration/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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']
}

0 comments on commit 258a648

Please sign in to comment.