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
OptString.new('NEW_USERNAME',[true,'Username to be used when creating a new user with admin privileges',Faker::Internet.username.gsub('.','_')]),
42
+
OptString.new('NEW_USERNAME',[true,'Username to be used when creating a new user with admin privileges',Faker::Internet.username.gsub(/[^a-zA-Z0-9_-]/,'_')]),
43
43
OptString.new('NEW_PASSWORD',[true,'Password to be used when creating a new user with admin privileges',Rex::Text.rand_text_alpha(12)]),
fail_with(Failure::BadConfig,"Specified username is invalid. Username must contain only letters, numbers, underscores (_), and hyphens (-). Specify a different user name with 'set NEW_USERNAME <USER>'.")
120
-
else
121
-
fail_with(Failure::NotVulnerable,'Unexpected string found inside the title tag: ' + title_text)
fail_with(Failure::BadConfig,"Specified username is invalid. Username must contain only letters, numbers, underscores (_), and hyphens (-). Specify a different user name with 'set NEW_USERNAME <USER>'.")
123
120
else
124
-
fail_with(Failure::UnexpectedReply,'title tag not found.')
121
+
fail_with(Failure::NotVulnerable,'Unexpected string found inside the title tag: ' + title_text)
0 commit comments