You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# VHostScan
2
-
A virtual host scanner that can pivot over hosts, detect catch-all scenarios, aliases and dynamic default pages. First presented at SecTalks BNE in September 2017 ().
2
+
A virtual host scanner that can be used with pivot tools, detect catch-all scenarios, aliases and dynamic default pages. First presented at SecTalks BNE in September 2017 ([slidedeck](https://docs.google.com/presentation/d/1KDY7bnCpCGabJn8UpmHGSb6z_hi_WGf3ETxzykTNjWY)).
@@ -24,21 +24,30 @@ A virtual host scanner that can pivot over hosts, detect catch-all scenarios, al
24
24
| -h, --help | Display help message and exit |
25
25
| -t TARGET_HOSTS | Set the target host. |
26
26
| -b BASE_HOST | Set host to be used during substitution in wordlist (default to TARGET).|
27
-
| -w WORDLIST | Set the wordlist to use for generated commands. Ex /usr/share/wordlist.txt |
27
+
| -w WORDLIST | Set the wordlist to use (default ./wordlists/virtual-host-scanning.txt)|
28
28
| -p PORT | Set the port to use (default 80). |
29
29
| -r REAL_PORT | 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). |
30
30
| --ignore-http-codes IGNORE_HTTP_CODES | Comma separated list of http codes to ignore with virtual host scans (default 404). |
| --unique-depth UNIQUE_DEPTH | Show likely matches of page content that is found x times (default 1). |
33
33
| --ssl | If set then connections will be made over HTTPS instead of HTTP. |
34
+
| --waf | If set then simple WAF bypass headers will be sent. |
35
+
| -oN OUTPUT_NORMAL | Normal output printed to a file when the -oN option is specified with a filename argument. |
36
+
| - | By passing a blank '-' you tell VHostScan to expect input from stdin (pipe). |
34
37
35
38
## Usage Examples
39
+
40
+
_Note that a number of these examples reference 10.10.10.29. This IP refers to BANK.HTB, a retired target machine from HackTheBox (https://www.hackthebox.eu/)._
41
+
36
42
### Quick Example
37
43
The most straightforward example runs the default wordlist against example.com using the default of port 80:
Say you have an SSH port forward listening on port 4444 fowarding traffic to port 80 on example.com's development machine. You could use the following to make VHostScan connect through your SSH tunnel via localhost:4444 but format the header requests to suit connecting straight to port 80:
Copy file name to clipboardExpand all lines: VHostScan.py
+19-12Lines changed: 19 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ def main():
18
18
print_banner()
19
19
parser=ArgumentParser()
20
20
parser.add_argument("-t", dest="target_hosts", required=True, help="Set a target range of addresses to target. Ex 10.11.1.1-255" )
21
-
parser.add_argument("-w", dest="wordlist", required=False, type=str, help="Set the wordlist to use (default ./wordlists/virtual-host-scanning.txt)")
21
+
parser.add_argument("-w", dest="wordlist", required=False, type=str, help="Set the wordlist to use (default ./wordlists/virtual-host-scanning.txt)", default=False)
22
22
parser.add_argument("-b", dest="base_host", required=False, help="Set host to be used during substitution in wordlist (default to TARGET).", default=False)
23
23
parser.add_argument("-p", dest="port", required=False, help="Set the port to use (default 80).", default=80)
24
24
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)
0 commit comments