Ir ao conteúdo

Posts recomendados

Postado

boa tarde olha meu programa que fiz estar sendo reconhecido como um virus/trojan/mawewe mas ele não é

bem ele si comporta como um 😅 mais resumindo ele é um launcher  de game terro 

que faz atualização e baixar o arquivo no appdata " Dentro da pagina do jogo "

como sou um dev iniciante e pequei a base do launcher na youtube para adaptar depois .

e user meu pc como host.....

mais tirando isso

eu ate libero o codigo fonte porque e publico 
e o laucher so quero saber o que estou fazendo de errado
link do vitus total para vcs darem uma olhada e ver o relatório

https://www.virustotal.com/gui/file/48dfadb9f24f2d696c761c0f06682e34ac4459dfb632609fedf9aaba0b383788/detection

 

 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.IO.Compression;
using System.Net;
using System.Diagnostics;
using System.Threading;
using System.Security.Policy;
namespace Laucher
{
    public partial class Form1 : Form
    {
        
        bool baixarGameTerro;
        bool UpdateGame = false;
        string erro;
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

            if (!Directory.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/VMS_DRAGON"))
            {
                Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/VMS_DRAGON");
            }

            if (Directory.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/VMS_DRAGON/Filha_Do_Proprio_Mal/Game De Terro"))
            {
                baixarGameTerro = true;
                button1.Text = "Play";
                progressBar1.Value = 100;
            }
            WebClient wb = new WebClient();
            string URL = "http://vmsdragonstudios.ddns.net:81/Vercion.Ver";
      
            string NewVecion = wb.DownloadString(URL);
            if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/VMS_DRAGON/Filha_Do_Proprio_Mal/Game De Terro/Version.Ver"))
            {
                StreamReader sr = new StreamReader(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/VMS_DRAGON/Filha_Do_Proprio_Mal/Game De Terro/Version.Ver");
                string vercion = sr.ReadLine();
                sr.Close();
                if (vercion != NewVecion)
                {
                    UpdateGame = true;
                    button1.Text = "Updete!";
                }
            }


            CheckForIllegalCrossThreadCalls = false;
        }


        private void button1_Click(object sender, EventArgs e)
        {

            if (UpdateGame)
            {

                new Thread(update).Start();
            }
            else
            {
                if (baixarGameTerro)
                {
                    Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/VMS_DRAGON/Filha_Do_Proprio_Mal/Game De Terro/Jogo de terro VMS DAGON.exe");
                }
                else
                {
                    new Thread(baixarArquivosdojogo).Start();
                }
            }
        }
        void update()
        {
            
            UpdateGame = false;
            Directory.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/VMS_DRAGON/Filha_Do_Proprio_Mal",true);
            WebClient wc = new WebClient();


             string url = "http://vmsdragonstudios.ddns.net:81/GameDeTerro.zip";
         

            try
            {
                button1.Enabled = false;
                wc.DownloadProgressChanged += Wc_DownloadProgressChanged;
                wc.DownloadFileCompleted += Wc_DownloadFileCompleted;
                wc.DownloadFileAsync(new Uri(url), Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/VMS_DRAGON/GameDeTerro.zip");
            }
            catch (Exception ezx)
            {

                label2.Text = ezx.ToString();

            }
        }
        void baixarArquivosdojogo()
        {
            WebClient wc = new WebClient();


           string url = "http://vmsdragonstudios.ddns.net:81/GameDeTerro.zip";
         
           
            try
            {
                button1.Enabled = false;
                wc.DownloadProgressChanged += Wc_DownloadProgressChanged;
                 wc.DownloadFileCompleted += Wc_DownloadFileCompleted;
                wc.DownloadFileAsync(new Uri(url), Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/VMS_DRAGON/GameDeTerro.zip");
            }
            catch (Exception ezx)
            {

                label2.Text = ezx.ToString();

            }
        }
        void stracrit()
        {
            label2.Text = "Instaldado";
            Directory.CreateDirectory(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/VMS_DRAGON/Filha_Do_Proprio_Mal");
            ZipFile.ExtractToDirectory(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/VMS_DRAGON/GameDeTerro.zip", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/VMS_DRAGON/Filha_Do_Proprio_Mal");
            label2.Text = "Completo";
            button1.Text = "Play";
            button1.Enabled = true; 
           WebClient wc = new WebClient();
            string Version = "http://vmsdragonstudios.ddns.net:81/Vercion.Ver";
         
            File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/VMS_DRAGON/GameDeTerro.zip");
            wc.DownloadFileAsync(new Uri(Version), Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/VMS_DRAGON/Filha_Do_Proprio_Mal/Game De Terro/Version.Ver");

        }
        private void Wc_DownloadFileCompleted(object sender, AsyncCompletedEventArgs e)
        {
            label3.Text = "Completo";

            baixarGameTerro = true;
            new Thread(stracrit).Start();

        }

        private void Wc_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
        {
            label2.Text = "Baixando";
            progressBar1.Value = e.ProgressPercentage;
            label3.Text = SizeSurffis(e.BytesReceived) + " / " + SizeSurffis(e.TotalBytesToReceive);    
        }



        static readonly String[] SizeSurffiXes={"bytes","KB","MB","GB" ,"TB"};

        static string SizeSurffis(Int64 Value,int DecimalPlacas = 1)
        {
            if (DecimalPlacas < 0) { throw new ArgumentException("DecimalPlacas"); }
            if (Value < 0) { return  "." + SizeSurffis(-Value); }
            if (Value == 0) { return string.Format("{0:n" + DecimalPlacas + "} Bytes", 0); }
            int mag = (int)Math.Log(Value,1024);
            decimal adjustedSize = (Decimal)Value / (1L << (mag * 10));
            if(Math.Round(adjustedSize ,DecimalPlacas) >= 1000) {
                mag += 1;
                adjustedSize /= 1024;
            }
            return string.Format("{0:n" + DecimalPlacas + "} {1}",
                adjustedSize,
                SizeSurffiXes[mag]);
        }


    }
}

 

Captura de tela 2024-03-19 205820.png

  • Curtir 1

Crie uma conta ou entre para comentar

Você precisa ser um usuário para fazer um comentário

Criar uma conta

Crie uma nova conta em nossa comunidade. É fácil!

Crie uma nova conta

Entrar

Já tem uma conta? Faça o login.

Entrar agora

Sobre o Clube do Hardware

No ar desde 1996, o Clube do Hardware é uma das maiores, mais antigas e mais respeitadas comunidades sobre tecnologia do Brasil. Leia mais

Direitos autorais

Não permitimos a cópia ou reprodução do conteúdo do nosso site, fórum, newsletters e redes sociais, mesmo citando-se a fonte. Leia mais

×
×
  • Criar novo...

LANÇAMENTO!

eletronica2025-popup.jpg


CLIQUE AQUI E BAIXE AGORA MESMO!