File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,18 @@ def write_normal(self, filename):
1515 file .write_file (self .generate_header () + self .output_normal_likely () + self .output_normal_detail ())
1616
1717 def output_normal_likely (self ):
18- output = "\n [+] Most likely matches with a unique count of {} or less:" .format (str (self .scanner .unique_depth ))
19- for p in self .scanner .likely_matches (): output += "\n \t [>] {}" .format (p )
20-
21- return output
18+ uniques = False
19+ depth = str (self .scanner .unique_depth )
20+ output = "\n [+] Most likely matches with a unique count of {} or less:" .format (depth )
21+
22+ for p in self .scanner .likely_matches ():
23+ output += "\n \t [>] {}" .format (p )
24+ uniques = True
25+
26+ if (uniques ):
27+ return output
28+ else :
29+ return "\n [!] No matches with a unique count of {} or less." .format (depth )
2230
2331 def output_normal_detail (self ):
2432 output = "\n \n [+] Full scan results"
@@ -35,4 +43,4 @@ def generate_header(self):
3543 output += "\n \t Real Port {}\n \t Ignore HTTP Codes: {}" .format (self .scanner .real_port ,self .scanner .ignore_http_codes )
3644 output += "\n \t Ignore Content Length: {}\n \t Wordlist: {}" .format (self .scanner .ignore_content_length , self .scanner .wordlist )
3745 output += "\n \t Unique Depth: {}\n \t SSL: {}\n \t " .format (self .scanner .unique_depth , self .scanner .ssl )
38- return output
46+ return output
You can’t perform that action at this time.
0 commit comments