Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }