Example #1
0
        private void smashPayloadBtnEvent(object sender, EventArgs args)
        {
            if (payloadBtn.File == null)
            {
                sendMessage("Please choose a payload first!");
                return;
            }

            sendMessage($"Attempting to smash with {payloadBtn.File.Basename}.");

            // Checking prerequisites
            if (!FuseeHandler.hasPython3())
            {
                sendMessage("Please install Python 3 before continuing! Canceling smash...");
                return;
            }

            //var queue = new DownloadQueueOld();
            FuseeHandler.checkAndDownloadFusee(this, queue);
            if (queue.isEmpty())
            {
                FuseeHandler.smashPayload(this, payloadBtn.File.Path);
            }
            else
            {
                sendMessage("Attempting to download missing files");
                setStates(StateFlags.Insensitive);
                backgroundWorker.RunWorkerAsync();
            }
        }
Example #2
0
        private void backgroundWorkingComplete(object sender, RunWorkerCompletedEventArgs args)
        {
            if (failed)
            {
                failed = false;
                sendMessage("Failed to download missing files! Stopping...");
            }
            else
            {
                FuseeHandler.smashPayload(this, payloadBtn.File.Path);
            }

            setStates(StateFlags.Active);
        }