Finish user hacking.

This commit is contained in:
Michael 2017-03-07 16:13:53 -05:00
parent 2a747334bd
commit 449d43d22c
2 changed files with 10 additions and 5 deletions

View file

@ -386,12 +386,13 @@ namespace ShiftOS.WinForms
Console.WriteLine(pass);
Console.WriteLine();
Console.WriteLine("--password breached. Operation took " + sw.ElapsedMilliseconds + " milliseconds.");
ServerManager.MessageReceived -= msgReceived;
}
else if(msg.Name == "user_data_not_found")
{
Console.WriteLine("--access denied.");
ServerManager.MessageReceived -= msgReceived;
}
ServerManager.MessageReceived -= msgReceived;
};
Console.WriteLine("--beginning brute-force attack on " + usr + "@" + sys + "...");
@ -440,13 +441,14 @@ namespace ShiftOS.WinForms
{
Console.WriteLine("--access denied.");
}
ServerManager.MessageReceived -= msgReceived;
}
else if (msg.Name == "user_data_not_found")
{
Console.WriteLine("--access denied.");
ServerManager.MessageReceived -= msgReceived;
}
ServerManager.MessageReceived -= msgReceived;
};
Console.WriteLine("--contacting multi-user domain...");
@ -508,12 +510,13 @@ namespace ShiftOS.WinForms
Console.WriteLine("--access denied.");
}
ServerManager.MessageReceived -= msgReceived;
}
else if (msg.Name == "user_data_not_found")
{
Console.WriteLine("--access denied.");
ServerManager.MessageReceived -= msgReceived;
}
ServerManager.MessageReceived -= msgReceived;
};
Console.WriteLine("--contacting multi-user domain...");

View file

@ -70,8 +70,10 @@ namespace ShiftOS.WinForms
NotificationDaemon.NotificationRead += () =>
{
//Soon this will pop a balloon note.
btnnotifications.Text = "Notifications (" + NotificationDaemon.GetUnreadCount().ToString() + ")";
this.Invoke(new Action(() =>
{
btnnotifications.Text = "Notifications (" + NotificationDaemon.GetUnreadCount().ToString() + ")";
}));
};
this.LocationChanged += (o, a) =>