aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'PassCrackerClient')
-rwxr-xr-xPassCrackerClient/PassCrackerClient/Program.cs32
1 files changed, 21 insertions, 11 deletions
diff --git a/PassCrackerClient/PassCrackerClient/Program.cs b/PassCrackerClient/PassCrackerClient/Program.cs
index 7bf3859..be3b6b4 100755
--- a/PassCrackerClient/PassCrackerClient/Program.cs
+++ b/PassCrackerClient/PassCrackerClient/Program.cs
@@ -25,14 +25,22 @@ namespace PassCrackerClient
string dictionary = ParseData(data);
string[,] splitDictionary = SplitDictionary(dictionary);
- List<UserInfoClearText> result;
+ List<UserInfoClearText> result = new List<UserInfoClearText>();
for(int i = 0; i < 5; i++)
{
- int rowLength = splitDictionary.GetLength(i);
+ int rowLength = splitDictionary.GetLength(1);
string[] chunk = new string[rowLength];
for (int j = 0; j < rowLength; j++)
chunk[j] = splitDictionary[i, j];
- Task.Run(() => result = DecryptPassword(chunk));
+ result = DecryptPassword(chunk);
+ }
+ if (result.Count != 0)
+ {
+ sw.WriteLine(result[0].ToStr