Skip to content

Commit 7d7443e

Browse files
authored
Merge pull request #13 from codingo/codingo-refactoring
Codingo refactoring
2 parents f7c8611 + ebd52de commit 7d7443e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

VHostScan.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,24 @@ def main():
1616
print_banner()
1717
parser = ArgumentParser()
1818
parser.add_argument("-t", dest="target_hosts", required=True, help="Set a target range of addresses to target. Ex 10.11.1.1-255" )
19+
parser.add_argument("-w", dest="wordlist", required=False, type=str, help="Set the wordlist to use (default ./wordlists/virtual-host-scanning.txt)", default="./wordlists/virtual-host-scanning.txt")
1920
parser.add_argument("-b", dest="base_host", required=False, help="Set host to be used during substitution in wordlist (default to TARGET).", default=False)
20-
parser.add_argument("-w", dest="wordlist", required=False, type=str, help="Set the wordlist to use for generated commands. Ex /usr/share/wordlist.txt", default="./wordlists/virtual-host-scanning.txt")
2121
parser.add_argument("-p", dest="port", required=False, help="Set the port to use (default 80).", default=80)
2222
parser.add_argument("-r", dest="real_port", required=False, help="The real port of the webserver to use in headers when not 80 (see RFC2616 14.23), useful when pivoting through ssh/nc etc (default to PORT).", default=False)
2323

2424
parser.add_argument('--ignore-http-codes', dest='ignore_http_codes', type=str, help='Comma separated list of http codes to ignore with virtual host scans (default 404).', default='404')
25-
parser.add_argument('--ignore-content-length', dest='ignore_content_length', type=int, help='Ignore content lengths of specificed amount.', default=0)
25+
parser.add_argument('--ignore-content-length', dest='ignore_content_length', type=int, help='Ignore content lengths of specificed amount (default 0).', default=0)
2626
parser.add_argument('--unique-depth', dest='unique_depth', type=int, help='Show likely matches of page content that is found x times (default 1).', default=1)
27-
parser.add_argument("--ssl", dest="ssl", action="store_true", help="If set then connections will be made over HTTPS instead of HTTP.", default=False)
27+
parser.add_argument("--ssl", dest="ssl", action="store_true", help="If set then connections will be made over HTTPS instead of HTTP (default http).", default=False)
2828
arguments = parser.parse_args()
2929

3030
if not os.path.exists(arguments.wordlist):
3131
print("[!] Wordlist %s doesn't exist, ending scan." % arguments.wordlistt)
3232
sys.exit()
3333

34-
print("[+] Starting virtual host scan for %s using port %s and wordlist %s" % (arguments.target_hosts, str(arguments.port), arguments.wordlist))
34+
print("[+] Starting virtual host scan for %s using port %s and wordlist %s" % (arguments.target_hosts,
35+
str(arguments.port),
36+
arguments.wordlist))
3537

3638
if(arguments.ssl):
3739
print("[>] SSL flag set, sending all results over HTTPS")

0 commit comments

Comments
 (0)