예제 #1
0
        public static PasswordListBuilder AddUriCsvSource(this PasswordListBuilder builder, Uri uri, string columnName = null)
        {
            var source = new HttpPasswordListSource(uri, stream => new CsvPasswordListSource(stream, columnName));

            builder.AddSource(source);

            return(builder);
        }
예제 #2
0
        public static PasswordListBuilder AddUriCsvSource(this PasswordListBuilder builder, string uri, int columnNumber)
        {
            var source = new HttpPasswordListSource(uri, stream => new CsvPasswordListSource(stream, columnNumber));

            builder.AddSource(source);

            return(builder);
        }
예제 #3
0
        public static PasswordListBuilder AddUriSource(this PasswordListBuilder builder, string uri, IPasswordListDeserializer passwordListDeserializer = null)
        {
            passwordListDeserializer = passwordListDeserializer ?? new NewLineSeparatedPasswordListDeserializer();

            var source = new HttpPasswordListSource(uri, stream => new StreamPasswordListSource(stream, passwordListDeserializer));

            builder.AddSource(source);

            return(builder);
        }