Skip to content

Commit a3ba052

Browse files
author
Diogo Osório
committed
Correct the first_run parameter usage on the scanner
1 parent 4d177da commit a3ba052

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/core/virtual_host_scanner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def scan(self):
147147
# add url and hash into array for likely matches
148148
self.results.append(hostname + ',' + page_hash)
149149

150-
if len(self.hosts) == 2 and self.first_hit:
150+
if len(self.hosts) >= 1 and self.first_hit:
151151
break
152152

153153
# rate limit the connection, if the int is 0 it is ignored
@@ -176,7 +176,7 @@ def likely_matches(self):
176176
lambda x: len(x) <= self.unique_depth
177177
)
178178

179-
return matches
179+
return segmented_data["key_col"].values.tolist()
180180

181181
def create_host(self, response, hostname, page_hash):
182182
"""

0 commit comments

Comments
 (0)