Пример #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     Program.guiform.Close();
     Diearator.denyhost(false);
 }
Пример #2
0
        static void Main(string[] args)
        {
            if (args.Length == 0)
            {
                Console.WriteLine("Diearator Failure. Arguments required...");
            }
            if (args.Length > 0)
            {
                if (args[0] == "scan")
                {
                    Diearator.Scan();
                }
            }

            if (args.Length > 0)
            {
                if (args[0] == "activate")
                {
                    Diearator.DieActiv();
                }
            }
            if (args.Length > 0)
            {
                if (args[0] == "denyhost")
                {
                    Diearator.denyhost(true);
                }
            }
            if (args.Length == 2)
            {
                if (args[0] == "deny")
                {
                    Diearator.denyIp(args[1]);
                }
            }
            //Graphical user interface command
            if (args.Length > 0)
            {
                if (args[0] == "gui")
                {
                    Diearator.DieActiv();
                    Console.WriteLine("Generating Form...");

                    guiform.ShowDialog();
                    Console.WriteLine("Press any key to close...");
                    Console.ReadKey();
                }
            }

            if (args.Length > 0)
            {
                if (args[0] == "AMIDIBOSS")
                {
                    ami.amidiboss();
                }
            }
            if (args.Length > 0)
            {
                if (args[0] == "ihavenofriends...")
                {
                    ami.hellodarkness();
                }
            }
        }
Пример #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     textBox1.Text = Diearator.Scan();
 }