Skip to content

Commit 92884b3

Browse files
authored
Minor formatting updates for code readability
1 parent be44cf5 commit 92884b3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/core/virtual_host_scanner.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def scan(self):
7474
page_hash = hashlib.sha256(res.text.encode('utf-8')).hexdigest()
7575
output = '[#] Found: {} (code: {}, length: {}, hash: {})\n'.format(hostname, res.status_code,
7676
res.headers.get('content-length'), page_hash)
77-
# temporary host class code
7877
host = discovered_host()
7978
host.hostname = hostname
8079
host.response_code = res.status_code
@@ -84,11 +83,11 @@ def scan(self):
8483
output += ' {}: {}\n'.format(key, val)
8584
host.keys.append('{}: {}'.format(key, val))
8685

86+
self.hosts.append(host)
87+
8788
# print current results so feedback remains in "realtime"
8889
print(output)
8990

90-
self.hosts.append(host)
91-
9291
# add url and hash into array for likely matches
9392
self.results.append(hostname + ',' + page_hash)
9493

0 commit comments

Comments
 (0)