mercredi 8 avril 2015

C# create wordlist with 8 uppercase letters


Vote count:

0




Hi i'm working on a c# programm to write a wordlist made out of 8 uppercase letters for example:


AAAAAAAA ABAAAAAA ACAAAAAA etc.


but i'm stuck i can't say where so check out my code:



using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace random_uppercase_numbers
{
class Program
{
static void Main(string[] args)
{
string[] array = { "A", "A", "A", "A", "A", "A", "A", "A" };
int[] check = { 66, 65, 65, 65, 65, 65, 65, 65 };
int count = 1;
string path = @"C:\\wordlist\list.txt";

for (int b = 0; b < 8; b++)
{
for (int i = 0; i < 26; i++)
{
array[b] = Convert.ToString((char)(check[b] + i - count));


using (StreamWriter sw = File.AppendText(path))
{
sw.WriteLine(array[0] + array[1] + array[2] + array[3] + array[4] + array[5] + array[6] + array[7]);
}
array[b] = Convert.ToString((char)check[b]);
}
}


}
}
}


thx for your help



asked 13 secs ago







C# create wordlist with 8 uppercase letters

Aucun commentaire:

Enregistrer un commentaire