private void EmailIcon_Click(object sender, EventArgs e) { var formEmail = new Form_Email(); formEmail.Show(); Process.newProcess("Email Client", DateTime.Now); }
private void emailButtonClick(object sender, EventArgs e) { // Email Browser implementation //Form_Email Test = new Form_Email(); //Test.Show(); var formEmail = new Form_Email(); formEmail.ShowDialog(); }
private void btn_Send_Click(object sender, System.EventArgs e) { /// check to see if the target field has a valid address string target = targetTXT.Text; if (target.Contains("@") && target.Contains(".")) { if (this.email_subjectTXT.Text == "") { const string mes = "Your email should have a subject."; var res = MessageBox.Show(mes); } else { if (this.email_bodyTXT.Text == "") { const string mes = "Your email should have a body."; var res = MessageBox.Show(mes); } else { // Valid Address const string message = "Email has been sent."; var result = MessageBox.Show(message); this.Dispose(); var formEmail = new Form_Email(); formEmail.ShowDialog(); } } } else { // Invalid Address const string message = "You have entered an invalid email address"; var result = MessageBox.Show(message); } }
public Form_Email() { InitializeComponent(); _formEmail = this; }
private void checkCommand(string command) { if (command.Contains("RUN%")) { string[] action = command.Split(' '); MessageBox.Show("EVENT CHECK", "SUCCESSFUL"); MessageBox.Show(action[1], "COMMAND"); switch (action[1]) { case "Form_Email": var formEmail = new Form_Email(); formEmail.Show(); break; case "Form_InternetBrowser": var formInternetBrowser = new Form_InternetBrowser(); formInternetBrowser.Show(); break; default: return; } } if (command.Contains("DELETE%")) { // TBD: ONCE FILE MANAGEMENT IS IMPLEMENTED } if (command.Contains("DIR%")) { string[] path = command.Split(' '); string currentDir = path.Last(); cliDirectory += "\\" + currentDir; cliText.AppendText(Environment.NewLine + cliDirectory); cliCurrentLine += 1; } if (command.Contains("ECHO%")) { string[] output = command.Split(' '); foreach (string segment in output) { cliText.AppendText(Environment.NewLine + segment); } cliCurrentLine += output.Length; } if (command.Contains("EXIT%")) { Application.Exit(); } if (command.Contains("IPCONFIG%")) { cliText.AppendText(Environment.NewLine + "IP Address. . . . . . . . . . . . : 192.168.201.245"); cliText.AppendText(Environment.NewLine + "Subnet Mask . . . . . . . . . . . : 255.255.255.0"); cliText.AppendText(Environment.NewLine + "Default Gateway . . . . . . . . . : 192.168.201.1"); cliCurrentLine += 3; } if (command.Contains("HELP%")) { cliText.AppendText(Environment.NewLine + "---------------- COMMAND LINE INSTRUCTIONS ----------------"); cliText.AppendText(Environment.NewLine + "HERE YOU CAN ENTER A COMMAND FOR THE HACKERMAN SOFTWARE TO TRIGGER CERTAIN ACTIONS"); cliText.AppendText(Environment.NewLine + "TO TRIGGER A CERTAIN ACTION, ENTER THE KEYWORD FOLLOWED BY %"); cliText.AppendText(Environment.NewLine + "COMMANDS ARE LISTED BELOW"); cliText.AppendText(Environment.NewLine + "RUN_X - RUNS A SPECIFIC DESKTOP APPLICATION "); cliText.AppendText(Environment.NewLine + "ECHO_X - ECHOS THE ENTERED TEXT "); cliText.AppendText(Environment.NewLine + "EXIT - EXITS THE COMMAND LINE INTERFACE"); cliText.AppendText(Environment.NewLine + "IPCONFIG - DISPLAYS INTERNET PROTOCOL INFORMATION"); cliText.AppendText(Environment.NewLine + "-----------------------------------------------------------"); cliCurrentLine += 9; } if (command.Contains("PHISH%")) { cliText.AppendText(Environment.NewLine + "---------------- TRIGGERING PHISHING SIMULATION ----------------"); Class_Progress.PhishSimulation(); cliCurrentLine += 1; } if (command.Contains("RANSOMWARE%")) { cliText.AppendText(Environment.NewLine + "---------------- TRIGGERING RANSOMWARE SIMULATION ----------------"); Class_Progress.RansomwareSimulation(); cliCurrentLine += 1; } }