private static void SetInfo() { PasswordGuessing temp = new PasswordGuessing(); ProcessingMessage._info.CountCore = Environment.ProcessorCount; ProcessingMessage._info.PasswordsPerSecond = temp.SpeedTest(); //надо как то узнать скорость подбора }
static void Main(string[] args) { PasswordGuessing temp = new PasswordGuessing(); Info.CountCore = Environment.ProcessorCount; Info.PasswordsPerSecond = temp.SpeedTest(); if (!ProcessingMessage.Connecting(@"FormatName:DIRECT=OS:winserver\private$\mainqueue")) { Environment.Exit(1); } while (true) { ProcessingMessage.ChekMessage(QueueReceive); } }
public static void newThreadBruteForce(TaskMessage message) { PasswordGuessing passwordGuessing = new PasswordGuessing(); passwordGuessing.Brute(message.Start, message.Stop, message.Task.Hash); if (passwordGuessing.Pass == "") { TaskMessage messageSend = new TaskMessage(0, _idAgent, message.Task, message.Start, message.Stop); _queueSend.Send(messageSend); } else { Task compliteTask = new Task(message.Task.Hash, message.Task.IdTask); compliteTask = message.Task; compliteTask.ReadyPassword = passwordGuessing.Pass; compliteTask.Complete = true; TaskMessage messageSend = new TaskMessage(0, _idAgent, compliteTask, message.Start, message.Stop); _queueSend.Send(messageSend); } }