Exemplo n.º 1
0
 private void savetimer_Tick(object sender, EventArgs e)
 {
     if (isTextpadopen)
     {
         Props.SaveTextpad(richTextBox1.Text);
     }
 }
Exemplo n.º 2
0
 private void closeButton_Click(object sender, EventArgs e)
 {
     Props.SaveTextpad(richTextBox1.Text);
     isTextpadopen = false;
     this.Hide();
 }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (this.CmdLine.Text != "")
            {
                this.lastCmd = this.CmdLine.Text;
            }

            if (lastCmd.StartsWith("ping"))
            {
                if (lastCmd.StartsWith("ping "))
                {
                    string site = lastCmd.Substring(lastCmd.LastIndexOf(' '));

                    if (site == " ")
                    {
                        acceptcommand("Empty parameter");
                    }
                    else
                    {
                        site = site.Remove(0, 1);
                        string secs = rand.Next(666, 666420).ToString();
                        acceptcommand("DDoSing " + site + " for " + secs + " seconds!");
                    }
                }
                else
                {
                    acceptcommand("Usage: ping 127.0.0.1");
                }
            }
            else
            if (lastCmd.StartsWith("spoof"))
            {
                if (lastCmd.StartsWith("spoof "))
                {
                    string site = lastCmd.Substring(lastCmd.LastIndexOf(' '));

                    if (site == " ")
                    {
                        acceptcommand("Empty parameter");
                    }
                    else
                    {
                        site = site.Remove(0, 1);
                        string secs  = rand.Next(666, 42069).ToString();
                        string secs2 = rand.Next(666, 42069).ToString();

                        acceptcommand("Using neighbours spoofed location for " + site + " with lat/lon: " + secs + "/" + secs2 + "!");
                    }
                }
                else
                {
                    acceptcommand("Usage: spoof <router>");
                }
            }
            else if (lastCmd.Equals("clear"))
            {
                Terminal.Items.Clear();
                CmdLine.Location = StoredPoint;
                CmdLine.Text     = "";
                acceptcommand("");
            }
            else if (lastCmd.Equals("reset all"))
            {
                Microsoft.Win32.Registry.CurrentUser.DeleteSubKey("Software\\SkidSimulator");
                acceptcommand("Every setting has been reset, restart skid sim.");
            }
            else if (lastCmd.StartsWith("name"))
            {
                if (lastCmd.StartsWith("name "))
                {
                    string name = lastCmd.Substring(lastCmd.IndexOf(' '));

                    if (name == " ")
                    {
                        acceptcommand("Empty parameter");
                    }
                    else
                    {
                        name = name.Remove(0, 1);

                        if (name.Length > 15)
                        {
                            acceptcommand("Sorry, max skid name length is 15!");
                            return;
                        }

                        if (name.ToLower().Contains("ama"))
                        {
                            Props.SetSkidName(Environment.UserName);
                        }
                        else
                        {
                            Props.SetSkidName(name);
                        }
                        acceptcommand("Your skid name has been set!");
                    }
                }
                else
                {
                    acceptcommand("Usage: name PlayingoHD");
                }
            }
            else if (lastCmd == "help")
            {
                acceptcommand("Help has been written into your textpad.");

                Props.staticpad.richTextBox1.Text += ("\n\nCMD Commands help:\nname <name> (Sets your name that you originally select on start menu)\nclear (Clears everything in cmd)\nping <ip> (Big Ddos attack)\nspoof <router>(Spoof your neighbours wifi location, playingo style!)\nreset all (Reset every single changed setting so far)");
                Props.SaveTextpad(Props.staticpad.richTextBox1.Text);
            }
            else if (lastCmd != "")
            {
                this.acceptcommand("Unknown Command, type 'help' for help");
            }
            return;
        }