Skip to content

Commit 67b525f

Browse files
author
Michael Skelton
committed
Fixed bug with oN when --fuzzy-logic not true
1 parent fee1ae4 commit 67b525f

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

VHostScan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def main():
8181
arguments.unique_depth, arguments.ignore_http_codes, arguments.ignore_content_length, arguments.fuzzy_logic, arguments.add_waf_bypass_headers)
8282

8383
scanner.scan()
84-
output = output_helper(scanner)
84+
output = output_helper(scanner, arguments)
8585

8686
print(output.output_normal_likely())
8787

lib/helpers/output_helper.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,26 @@
77

88

99
class output_helper(object):
10-
def __init__(self, scanner):
10+
def __init__(self, scanner, arguments):
1111
self.scanner = scanner
12+
self.arguments = arguments
1213

1314
def write_normal(self, filename):
1415

1516
file = file_helper(filename)
1617

1718
# todo: finish check_directory (needs regex to split out filename)
1819
# file.check_directory(filename)
19-
file.write_file(self.generate_header() + self.output_normal_likely() + self.output_fuzzy() + self.output_normal_detail())
20+
21+
output = self.generate_header()
22+
output += self.output_normal_likely()
23+
24+
if(self.arguments.fuzzy_logic):
25+
output += self.output_fuzzy()
26+
27+
output += self.output_normal_detail()
28+
29+
file.write_file(output)
2030

2131
def output_normal_likely(self):
2232
uniques = False
@@ -34,7 +44,7 @@ def output_normal_likely(self):
3444

3545

3646
def output_fuzzy(self):
37-
output = "\n[+] Match similarity using fuzzy logic:"
47+
output = "\n\n[+] Match similarity using fuzzy logic:"
3848
request_hashes = {}
3949

4050
for host in self.scanner.hosts:

0 commit comments

Comments
 (0)