private void Window_Loaded(object sender, RoutedEventArgs e) { _languageControl.FindLang(); var lootedFileControl = new LootedFileControl(); try { Dispatcher.BeginInvoke(DispatcherPriority.Send, (Action) delegate { btnGet.Content = _languageControl.SelectedLanguage.GetString("ButtonRunCommand"); cbi1.Content = _languageControl.SelectedLanguage.GetString("EnumContent1"); cbi2.Content = _languageControl.SelectedLanguage.GetString("EnumContent2"); cbi3.Content = _languageControl.SelectedLanguage.GetString("EnumContent3"); cbi4.Content = _languageControl.SelectedLanguage.GetString("EnumContent4"); cbi5.Content = _languageControl.SelectedLanguage.GetString("EnumContent5"); cbi6.Content = _languageControl.SelectedLanguage.GetString("EnumContent6"); cbi7.Content = _languageControl.SelectedLanguage.GetString("EnumContent7"); cbi8.Content = _languageControl.SelectedLanguage.GetString("EnumContent8"); Title = _languageControl.SelectedLanguage.GetString("TitleEnumeration"); lootedFileControl.FileControl(); var lootedList = lootedFileControl.LootedList; foreach (var t in lootedList) { lstLooted.Items.Add(t); } lstLooted.SelectedIndex = 0; var toolStripControl = new ToolStripInformation { SelectedLootedServer = lstLooted.SelectedItem.ToString(), Command = "sp_server_info", }; toolStripControl.SqlServerInformation(); lblStrip.Content = string.Empty; lblStrip.Content = toolStripControl.SqlServerInfo; }); } catch (Exception exp) { Dispatcher.BeginInvoke(DispatcherPriority.Send, (Action) delegate { txtStatus.AppendText(lootedFileControl.Exception); }); } }
private void LootedControl() { var lootedFileControl = new LootedFileControl(); try { lootedFileControl.FileControl(); var lootedList = lootedFileControl.LootedList; foreach (var t in lootedList) { LootedList.Add(t); } } catch (Exception exp) { Exception = lootedFileControl.Exception; } }
private void Window_Loaded(object sender, RoutedEventArgs e) { _languageControl.FindLang(); var lootedFileControl = new LootedFileControl(); try { Dispatcher.BeginInvoke(DispatcherPriority.Send, (Action) delegate { btnDownloadExecute.Content = _languageControl.SelectedLanguage.GetString("ButtonDownload"); lblMalware.Content = _languageControl.SelectedLanguage.GetString("LabelMalwareUrl"); lblSaveLocation.Content = _languageControl.SelectedLanguage.GetString("LabelSaveLocation"); lblTech.Content = _languageControl.SelectedLanguage.GetString("LabelTechnique"); rdBits.Content = _languageControl.SelectedLanguage.GetString("RadioBits"); rdPs.Content = _languageControl.SelectedLanguage.GetString("RadioPs"); Title = _languageControl.SelectedLanguage.GetString("TitleRevConn"); rdPs.IsChecked = true; lootedFileControl.FileControl(); var lootedList = lootedFileControl.LootedList; foreach (var t in lootedList) { lstLooted.Items.Add(t); } lstLooted.SelectedIndex = 0; var toolStripControl = new ToolStripInformation { SelectedLootedServer = lstLooted.SelectedItem.ToString(), Command = "sp_server_info", }; toolStripControl.SqlServerInformation(); lblStrip.Content = string.Empty; lblStrip.Content = toolStripControl.SqlServerInfo; }); } catch (Exception exp) { Dispatcher.BeginInvoke(DispatcherPriority.Send, (Action) delegate { txtStatus.AppendText(lootedFileControl.Exception); }); } }
private void Window_Loaded(object sender, RoutedEventArgs e) { _languageControl.FindLang(); var lootedFileControl = new LootedFileControl(); try { Dispatcher.Invoke((Action) delegate { btnSelectFile.Content = _languageControl.SelectedLanguage.GetString("ButtonSelectFile"); btnUpload.Content = _languageControl.SelectedLanguage.GetString("ButtonUpload"); lblDetails.Content = _languageControl.SelectedLanguage.GetString("LabelDetails"); lblLooted.Content = _languageControl.SelectedLanguage.GetString("GroupBoxLooted"); Title = _languageControl.SelectedLanguage.GetString("TitleSendFileToMsSqlServer"); btnUpload.IsEnabled = false; lootedFileControl.FileControl(); var lootedList = lootedFileControl.LootedList; foreach (var t in lootedList) { lstLooted.Items.Add(t); } lstLooted.SelectedIndex = 0; var toolStripControl = new ToolStripInformation { SelectedLootedServer = lstLooted.SelectedItem.ToString(), Command = "sp_server_info", }; toolStripControl.SqlServerInformation(); lblStrip.Content = string.Empty; lblStrip.Content = toolStripControl.SqlServerInfo; }); } catch (Exception exp) { Dispatcher.BeginInvoke(DispatcherPriority.Send, (Action) delegate { txtStatus.AppendText(lootedFileControl.Exception); }); } }
private void FrmAntiForensics_OnLoaded(object sender, RoutedEventArgs e) { _languageControl.FindLang(); var lootedFileControl = new LootedFileControl(); try { Dispatcher.BeginInvoke(DispatcherPriority.Send, (Action) delegate { btnGet.Content = _languageControl.SelectedLanguage.GetString("ButtonForensics"); cbi1.Content = _languageControl.SelectedLanguage.GetString("ComboBoxClearLog"); cbi2.Content = _languageControl.SelectedLanguage.GetString("ComboBoxClearMssqlLog"); cbi3.Content = _languageControl.SelectedLanguage.GetString("ComboBoxStopWinEvent"); Title = _languageControl.SelectedLanguage.GetString("TitleAntiForensics"); lootedFileControl.FileControl(); var lootedList = lootedFileControl.LootedList; foreach (var t in lootedList) { lstLooted.Items.Add(t); } lstLooted.SelectedIndex = 0; var toolStripControl = new ToolStripInformation { SelectedLootedServer = lstLooted.SelectedItem.ToString(), Command = "sp_server_info", }; toolStripControl.SqlServerInformation(); lblStrip.Content = string.Empty; lblStrip.Content = toolStripControl.SqlServerInfo; }); } catch (Exception exp) { Dispatcher.BeginInvoke(DispatcherPriority.Send, (Action) delegate { txtStatus.AppendText(lootedFileControl.Exception); }); } }
private void Window_Loaded(object sender, RoutedEventArgs e) { _languageControl.FindLang(); var lootedFileControl = new LootedFileControl(); try { Dispatcher.Invoke((Action) delegate { btnRunPS.Content = _languageControl.SelectedLanguage.GetString("ButtonRunPsCommand"); btnBase64.Content = _languageControl.SelectedLanguage.GetString("ButtonBase64Tool"); Title = _languageControl.SelectedLanguage.GetString("TitlePowershell"); lootedFileControl.FileControl(); var lootedList = lootedFileControl.LootedList; foreach (var t in lootedList) { lstLooted.Items.Add(t); } lstLooted.SelectedIndex = 0; var toolStripControl = new ToolStripInformation { SelectedLootedServer = lstLooted.SelectedItem.ToString(), Command = "sp_server_info", }; toolStripControl.SqlServerInformation(); lblStrip.Content = string.Empty; lblStrip.Content = toolStripControl.SqlServerInfo; }); } catch (Exception exp) { Dispatcher.BeginInvoke(DispatcherPriority.Send, (Action) delegate { txtStatus.AppendText(lootedFileControl.Exception); }); } }
private void Window_Loaded(object sender, RoutedEventArgs e) { _languageControl.FindLang(); var lootedFileControl = new LootedFileControl(); try { Dispatcher.Invoke((Action) delegate { btnSearch.Content = _languageControl.SelectedLanguage.GetString("ButtonSearch"); btnShowFile.Content = _languageControl.SelectedLanguage.GetString("ButtonShow"); btnCommand.Content = _languageControl.SelectedLanguage.GetString("ButtonRunCommand"); lblAdvCommand.Content = _languageControl.SelectedLanguage.GetString("GroupBoxAdvanced"); lblLooted.Content = _languageControl.SelectedLanguage.GetString("GroupBoxLooted"); lblLocalDirectory.Content = _languageControl.SelectedLanguage.GetString("GroupBoxDirectory"); lblVolumeList.Content = _languageControl.SelectedLanguage.GetString("GroupBoxVolume"); Title = _languageControl.SelectedLanguage.GetString("TitleDirectoryManager"); lootedFileControl.FileControl(); var lootedList = lootedFileControl.LootedList; foreach (var t in lootedList) { lstLooted.Items.Add(t); } lstLooted.SelectedIndex = 0; var toolStripControl = new ToolStripInformation { SelectedLootedServer = lstLooted.SelectedItem.ToString(), Command = "sp_server_info", }; toolStripControl.SqlServerInformation(); lblStrip.Content = string.Empty; lblStrip.Content = toolStripControl.SqlServerInfo; }); var isActivated = cmdControl.isActivated; var isExecuted = cmdControl.isExecuted; if (isActivated == false && isExecuted == false) { var enableXpCmdShell = new EnableXpCmdShell { LootedServer = lstLooted.SelectedItem.ToString() }; try { Dispatcher.Invoke((Action) delegate { enableXpCmdShell.XpCmdShellStatus(); txtStatus.AppendText(enableXpCmdShell.Result); var cmdLandResult = _languageControl.SelectedLanguage.GetString("XPCmdShell2"); var contains = enableXpCmdShell.Result.Contains(cmdLandResult); if (contains == true) { isActivated = true; isExecuted = true; } }); } catch (Exception) { Dispatcher.BeginInvoke(DispatcherPriority.Send, (Action) delegate { txtStatus.AppendText(enableXpCmdShell.CmdException); }); } } if (isExecuted == true && isActivated == true) { Dispatcher.BeginInvoke(DispatcherPriority.Send, (Action) delegate { try { _postExploitation.SelectedItem = lstLooted.SelectedItem.ToString(); _postExploitation.SqlCommand = "wmic logicaldisk get caption"; _postExploitation.SqlExploitation(); lstDirectory.Items.Clear(); for (var i = 0; i < _postExploitation.VolumeList.Count; i++) { lstDirectory.Items.Add(_postExploitation.VolumeList[i]); lstDirectory.Items.Remove(""); } } catch (Exception exp) { txtStatus.AppendText(string.Format("{2}{3}{0}{1}", Environment.NewLine, exp.Message, _languageControl.SelectedLanguage.GetString("GeneralError1"), _languageControl.SelectedLanguage.GetString("GeneralError2"))); } }); } } catch (Exception exp) { Dispatcher.BeginInvoke(DispatcherPriority.Send, (Action) delegate { txtStatus.AppendText(lootedFileControl.Exception); }); } }