//kaarelyb , mrexy add !! private void winbutton_Click(object sender, EventArgs e) { if (textBox1.Text.ToLower().Contains("ama")) { Props.ShowMessage("No"); // return; } else { Props.SetSkidName(textBox1.Text); Props.SetHackType(Props.hacker); Props.mainForm.StartMessage(); this.Hide(); } }
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; }
private void Form1_Load(object sender, EventArgs e) { this.SetStyle(ControlStyles.SupportsTransparentBackColor, true); RegistryKey key = Registry.CurrentUser.OpenSubKey("Software\\SkidSimulator"); if (key == null) { Registry.CurrentUser.CreateSubKey("Software\\SkidSimulator"); } key = Registry.CurrentUser.OpenSubKey("Software\\SkidSimulator"); if (key != null) { Object o = key.GetValue("BgPath"); if (o != null) { string path = o as String; try { if (File.Exists(path)) { this.BackgroundImage = Image.FromFile(path); } } catch { MessageBox.Show("Cannot load or find background image path."); } } Object o2 = key.GetValue("skidName"); if (o2 != null) { string name = o2 as String; Props.SetSkidName(name); } Object o3 = key.GetValue("newSkid"); if (o3 != null) { Props.ShowMessage("Welcome back " + skidName.Text); } else { Selector selector = new Selector(); Props.mainForm.Controls.Add(selector); } Object o4 = key.GetValue("hackerType"); if (o4 != null) { string hType = o4 as String; Props.hacker = (Props.hackerType)Enum.Parse(typeof(Props.hackerType), hType); } Object o5 = key.GetValue("Fullscreen"); if (o5 != null) { bool full = bool.Parse(o5 as string); if (full) { Props.HandleFullscreen(); } } } if (Props.hacker == Props.hackerType.Hecks) { Props.AddNotification("How does a condom work?"); } this.DoubleBuffered = true; Keyhook.Initialize(); Props.staticpad = new Textpad(); Props.staticmd = new CMD(); itemImage1.OpenForm = Props.staticmd; itemImage2.OpenForm = Props.staticpad; itemImage4.isGT = true; Props.doWeInit = true; UpdateTime(); }