示例#1
0
        private void EmailIcon_Click(object sender, EventArgs e)
        {
            var formEmail = new Form_Email();

            formEmail.Show();
            Process.newProcess("Email Client", DateTime.Now);
        }
示例#2
0
        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;
            }
        }