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
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
37
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
38
parser.add_argument("-", dest="stdin", action="store_true", help="By passing a blank '-' you tell VHostScan to expect input from stdin (pipe).", default=False)
39
+
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)
40
+
parser.add_argument('--user-agent', dest='user_agent', type=str, help='User-agent for scans')
39
41
40
42
arguments=parser.parse_args()
41
43
wordlist= []
@@ -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