diff options
| author | Michael <[email protected]> | 2017-03-07 16:13:53 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-07 16:13:53 -0500 |
| commit | 449d43d22c1d12ce6aa0243fbb4ea94481ff8f4c (patch) | |
| tree | 863d9c4a3dab9b029ce46245fae90bd2627ed223 /ShiftOS.WinForms | |
| parent | 2a747334bd926d79537b9e8d4f38c79a815752e5 (diff) | |
| download | shiftos_thereturn-449d43d22c1d12ce6aa0243fbb4ea94481ff8f4c.tar.gz shiftos_thereturn-449d43d22c1d12ce6aa0243fbb4ea94481ff8f4c.tar.bz2 shiftos_thereturn-449d43d22c1d12ce6aa0243fbb4ea94481ff8f4c.zip | |
Finish user hacking.
Diffstat (limited to 'ShiftOS.WinForms')
| -rw-r--r-- | ShiftOS.WinForms/HackerCommands.cs | 9 | ||||
| -rw-r--r-- | ShiftOS.WinForms/WinformsDesktop.cs | 6 |
2 files changed, 10 insertions, 5 deletions
diff --git a/ShiftOS.WinForms/HackerCommands.cs b/ShiftOS.WinForms/HackerCommands.cs index 7938fd0..7861981 100644 --- a/ShiftOS.WinForms/HackerCommands.cs +++ b/ShiftOS.WinForms/HackerCommands.cs @@ -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..."); diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs index a53ae3a..8900a69 100644 --- a/ShiftOS.WinForms/WinformsDesktop.cs +++ b/ShiftOS.WinForms/WinformsDesktop.cs @@ -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) => |
