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
| --fuzzy-logic | If set then all unique content replies are compared and a similarity ratio is given for each pair. This helps to isolate vhosts in situations where a default page isn't static (such as having the time on it). |
44
44
| --no-lookups | Disbale reverse lookups (identifies new targets and append to wordlist, on by default). |
45
45
| --rate-limit | Amount of time in seconds to delay between each scan (default 0). |
46
+
| --random-agent | If set, each scan will use a random user-agent from a predefined list. |
47
+
| --user-agent | Specify a user agent to use for scans. |
46
48
| --waf | If set then simple WAF bypass headers will be sent. |
47
49
| -oN OUTPUT_NORMAL | Normal output printed to a file when the -oN option is specified with a filename argument. |
48
50
| - | By passing a blank '-' you tell VHostScan to expect input from stdin (pipe). |
parser.add_argument("--fuzzy-logic", dest="fuzzy_logic", action="store_true", help="If set then fuzzy match will be performed against unique hosts (default off).", default=False)
34
34
parser.add_argument("--no-lookups", dest="no_lookup", action="store_true", help="Disable reverse lookups (identifies new targets and appends to wordlist, on by default).", default=False)
35
35
parser.add_argument("--rate-limit", dest="rate_limit", type=int, help='Amount of time in seconds to delay between each scan (default 0).', default=0)
36
+
parser.add_argument('--random-agent', dest='random_agent', action='store_true', help='If set, then each scan will use random user-agent from predefined list.', default=False)
37
+
parser.add_argument('--user-agent', dest='user_agent', type=str, help='Specify a user-agent to use for scans')
36
38
parser.add_argument("--waf", dest="add_waf_bypass_headers", action="store_true", help="If set then simple WAF bypass headers will be sent.", default=False)
37
39
parser.add_argument("-oN", dest="output_normal", help="Normal output printed to a file when the -oN option is specified with a filename argument." )
38
40
parser.add_argument("-", dest="stdin", action="store_true", help="By passing a blank '-' you tell VHostScan to expect input from stdin (pipe).", default=False)
@@ -64,6 +66,14 @@ def main():
64
66
inputs=', '.join(word_list_types),
65
67
))
66
68
69
+
user_agents= []
70
+
ifarguments.user_agent:
71
+
print('[>] User-Agent specified, using it')
72
+
user_agents= [arguments.user_agent]
73
+
elifarguments.random_agent:
74
+
print('[>] Random User-Agent flag set')
75
+
user_agents=load_random_user_agents()
76
+
67
77
if(arguments.ssl):
68
78
print("[>] SSL flag set, sending all results over HTTPS")
0 commit comments