Пример #1
0
        private void ulti_cd(char _key)
        {
            string _err = null;

            byte[] ActualBytes        = { 0x0F, 0x10, 0x70, 0x30 };
            long   UltiCD_BaseAddress = 0x1CCE771;
            string UltiCD_ModuleName  = "userassembly.dll";

            if (_key == 'n')
            {
                ActualBytes = new byte[] { 0x0, 0x0, 0x0, 0x0 }
            }
            ;

            if (GenPactMem.HardCoreMemoryWrite(out _err, ActualBytes, UltiCD_ModuleName, (IntPtr)UltiCD_BaseAddress, null))
            {
                if (_key == 'n')
                {
                    WriteLogs($"[ {++cnt} ] Success -> UltiCD is ON !", Color.YellowGreen, true);
                }
                else
                {
                    WriteLogs($"[ {++cnt} ] Success -> UltiCD is OFF !", Color.YellowGreen, true);
                }
            }
            else
            {
                WriteLogs($"[ {++cnt} ] {_err}", Color.Red, true);
            }
        }
Пример #2
0
        private bool Deactivate(string key)
        {
            switch (key)
            {
            case "InstantCharge":
                return(GenPactMem.HardCoreMemoryWrite(out LastErrorString, new byte[] { 0x0F, 0x11, 0x47, 0x10 }, "userassembly.dll", (IntPtr)0x346DCCF, null));

            case "FastAttacks":
                return(GenPactMem.HardCoreMemoryWrite(out LastErrorString, new byte[] { 0x41, 0x0F, 0x11, 0x07, 0x44, 0x88, 0x67, 0x7C }, "userassembly.dll", (IntPtr)0x120FF84, null));

            case "Esp Treasure Chest":
                if (!GenPactMem.HardCoreMemoryWrite(out LastErrorString, new byte[] { 0x74 }, "userassembly.dll", (IntPtr)0x1C6F317, null))
                {
                    return(false);
                }
                return(GenPactMem.HardCoreMemoryWrite(out LastErrorString, new byte[] { 0x74 }, "userassembly.dll", (IntPtr)0x1C6F39A, null));

            case "Monster's Level":
                return(GenPactMem.HardCoreMemoryWrite(out LastErrorString, new byte[] { 0x0F, 0x87 }, "userassembly.dll", (IntPtr)0x125AD3D, null));

            case "Monster's Hp":
                return(GenPactMem.HardCoreMemoryWrite(out LastErrorString, new byte[] { 0x76 }, "userassembly.dll", (IntPtr)0x12597BB, null));

            default:
                return(false);
            }
        }
Пример #3
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            string _tmp = GenPactMem.GetKeyCombinaison();

            if (string.IsNullOrEmpty(_tmp))
            {
                SkillCD_SwitcherValue.Text += _tmp;
            }
        }
Пример #4
0
        private void SpeedBar_Scroll(object sender, EventArgs e)
        {
            string __err = "";

            CurrentSpeed.Text = SpeedBar.Value.ToString();
            bool res = GenPactMem.HardCoreMemoryWrite(out __err, BitConverter.GetBytes((float)SpeedBar.Value), MainModuleName, (IntPtr)ModuleOffset, offset);

            if (!res)
            {
                WriteLogs(__err, Color.Red, true);
            }
            else
            {
                WriteLogs($"[ {++cnt} ] Succeded on changing the value !", Color.AliceBlue, true);
            }
        }
Пример #5
0
        private void RightSideMenu_Click(object sender, EventArgs e)
        {
            string flag = ((Control)sender).Tag.ToString();

            if (!string.IsNullOrEmpty(flag))
            {
                var _ = Resources.ResourceManager.GetStream($"sound_{flag}_lang");
                if (_ != null)
                {
                    GenPactMem.PlaySound(_);
                }

                Settings.Default.language = flag;
                title_bar_lang.Text       = $"[ {flag.ToUpper()} ]";
                Synch_Environment(Currently_In_Front_Uc);
            }
        }
Пример #6
0
        private void pictureBox8_Click(object sender, EventArgs e)
        {
            PictureBox ref_ctrl = ((PictureBox)sender);

            if (ref_ctrl.Tag.ToString() == "Sound_on")
            {
                GenPactMem.PlaySound(Resources.sound_Sound_off);

                ref_ctrl.Tag           = "Sound_off";
                ref_ctrl.Image         = Resources.sound_off;
                Settings.Default.Sound = false;
            }
            else
            {
                ref_ctrl.Tag           = "Sound_on";
                ref_ctrl.Image         = Resources.sound_on;
                Settings.Default.Sound = true;

                GenPactMem.PlaySound(Resources.sound_Sound_on);
            }
        }
Пример #7
0
        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            if (checkBox1.Checked)
            {
                GenPactMem.PlaySound(Resources.sound_you_dumb_fuck);

                DialogResult res = MessageBox.Show("Going over 5 might get you BANNED !", "Are you dumb ?", MessageBoxButtons.YesNo);

                if (res == DialogResult.Yes)
                {
                    DialogResult res1 = MessageBox.Show("Well i guess you are Dumb !\nAre you realy sure you want this ?", "Hmm ...", MessageBoxButtons.YesNo);
                    if (res1 == DialogResult.Yes)
                    {
                        SpeedBar.Minimum = 1;
                        SpeedBar.Maximum = 20;
                        SpeedBar.Update();
                        SpeedBar.Refresh();
                    }
                    else
                    {
                        checkBox1.Checked = false;
                        checkBox1.Update();
                        checkBox1.Refresh();
                        SpeedBar_Scroll(null, null);
                    }
                }
                else
                {
                    checkBox1.Checked = false;
                }
            }
            else
            {
                SpeedBar.Minimum = 1;
                SpeedBar.Maximum = 5;
                SpeedBar.Update();
                SpeedBar.Refresh();
                SpeedBar_Scroll(null, null);
            }
        }
Пример #8
0
        private void off_on_Switcher(object o, EventArgs a)
        {
            PictureBox _ref_tmp = ((PictureBox)o);

            if (_ref_tmp.Tag.ToString() == "off")
            {
                if (_ref_tmp.Name.Contains("UltiCD"))
                {
                    GenPactMem.PlaySound(Resources.sound_UltiCD_on);
                    ulti_cd('n');
                }
                else
                {
                    GenPactMem.PlaySound(Resources.sound_SkillCD_on);
                }

                _ref_tmp.Image = Resources.toggleon;
                _ref_tmp.Tag   = "on";
                Controls[_ref_tmp.Name + "Value"].Enabled = false;
            }
            else
            {
                if (_ref_tmp.Name.Contains("UltiCD"))
                {
                    GenPactMem.PlaySound(Resources.sound_UltiCD_off);
                    ulti_cd('f');
                }
                else
                {
                    GenPactMem.PlaySound(Resources.sound_SkillCD_off);
                }
                _ref_tmp.Image = Resources.toggleoff;
                _ref_tmp.Tag   = "off";
                Controls[_ref_tmp.Name + "Value"].Enabled = true;
            }
        }
Пример #9
0
        private void skill_cd(char _key)
        {
            string _err = null;

            byte[] ActualBytes        = { 0xF3, 0x0F, 0x58, 0x7B, 0x70 };
            long   UltiCD_BaseAddress = 0x1CCFD0D;
            string UltiCD_ModuleName  = "userassembly.dll";

            if (_key == 'n')
            {
                ActualBytes = new byte[] { 0x90, 0x90, 0x90, 0x90 }
            }
            ;

            if (GenPactMem.HardCoreMemoryWrite(out _err, ActualBytes, UltiCD_ModuleName, (IntPtr)UltiCD_BaseAddress, null))
            {
                WriteLogs($"[ {++cnt} ] Success -> UltiCD is ON !", Color.YellowGreen, true);
            }
            else
            {
                WriteLogs($"[ {++cnt} ]  Error happend -> {_err} !", Color.Red, true);
            }
        }
    }
Пример #10
0
        private void Form1_Load(object sender, EventArgs e)
        {
            #region INITIALISATIONS

            Directory.CreateDirectory("logs");
            if (!File.Exists(AndroidActionsFile))
            {
                File.Create(AndroidActionsFile);
            }
            if (!File.Exists(GenGineActionsFile))
            {
                File.Create(GenGineActionsFile);
            }



            LogsRichTb = new DisabledRichTextBox
            {
                //Dock = DockStyle.Fill,
                ReadOnly    = true,
                BackColor   = Color.Black,
                BorderStyle = BorderStyle.None,
                ForeColor   = Color.Orange,
                Parent      = LogsPanel,
                Bounds      = new Rectangle(10, 0, LogsPanel.Width - 11, LogsPanel.Height)
            };


            UcInitialize();
            Synch_Environment(homeUc);



            titlePanel.MouseMove += TitlePanel_MouseMove;
            titlePanel.MouseDown += TitlePanel_MouseDown;
            titlePanel.MouseUp   += TitlePanel_MouseUp;

            //chestEspTip.SetToolTip(chestEspBtn, "Ch3sts h@ck");
            //Speed_Cd_Tip.SetToolTip(Speed_Cd_btn, "Sp3ed & Cd h@cks");
            //OneHitKillTip.SetToolTip(OneHitKillBtn, "One hit Kill h@ck");
            //GodModTip.SetToolTip(GodModBtn, "g0d Mode h@ck");
            //InfinitStaminaTip.SetToolTip(InfinitStamina, "Endless Stam!na h@ck");
            GenGineTip.SetToolTip(GenGineBtn, "GenGine (mini CE)");
            AndroidVersionTip.SetToolTip(AndroidVersionBtn, "Hack Android Version");
            ClearLogsTip.SetToolTip(ClearLogsBtn, "Clear Logs");
            SaveLogsTip.SetToolTip(SaveLogsBtn, "Save Logs");
            SeekHelpTip.SetToolTip(SeekHelpBtn, "Seek for help");

            stateColor.BackColor = onHoldColor;

            WriteLogs("[ + ] Waiting for GenshinImpact ...", onHoldColor);
            #endregion

            #region THREADS


            try
            {
#if !DEBUG
                HttpWebRequest request = (HttpWebRequest)WebRequest.Create(news_link);
                request.AutomaticDecompression = DecompressionMethods.GZip;

                using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
                    using (Stream stream = response.GetResponseStream())
                        using (StreamReader reader = new StreamReader(stream))
                        {
                            news = reader.ReadToEnd();

                            string[] _news = news.Split('\n');

                            if (_news.Length >= 1)
                            {
                                if (_news[0].Contains("-"))
                                {
                                    if (_news[0].Split('-')[1].Trim() != version)
                                    {
                                        ProcessStartInfo pin = new ProcessStartInfo
                                        {
                                            CreateNoWindow  = true,
                                            UseShellExecute = false,
                                            FileName        = "cmd.exe",
                                            WindowStyle     = ProcessWindowStyle.Hidden,
                                            Arguments       = $"/C start {GenPact_download}"
                                        };

                                        MessageBox.Show(NewVersionMessage);
                                        Process.Start(pin);
                                        Environment.Exit(0);
                                    }
                                    else
                                    {
                                        if (news.StartsWith(ForcedPopUpKeyword))
                                        {
                                            MessageBox.Show(news);
                                        }

                                        else if (news.StartsWith(PopUpKeyword) && !File.Exists("GenPact.dmp"))
                                        {
                                            MessageBox.Show(news);
                                            File.Create("GenPact.dmp");
                                        }
                                    }
                                }
                                else
                                {
                                    Environment.Exit(0);
                                }
                            }
                            else
                            {
                                Environment.Exit(0);
                            }
                        }



                new Thread(new ThreadStart(() =>
                {
                    while (true)
                    {
                        HttpWebRequest req         = (HttpWebRequest)WebRequest.Create(news_link);
                        req.AutomaticDecompression = DecompressionMethods.GZip;

                        using (HttpWebResponse response = (HttpWebResponse)req.GetResponse())
                            using (Stream stream = response.GetResponseStream())
                                using (StreamReader reader = new StreamReader(stream))
                                {
                                    string __      = reader.ReadToEnd();
                                    string[] _news = __.Split('\n');

                                    if (_news.Length >= 1)
                                    {
                                        if (_news[0].Contains("-"))
                                        {
                                            if (_news[0].Split('-')[1].Trim() != version)
                                            {
                                                ProcessStartInfo pin = new ProcessStartInfo
                                                {
                                                    CreateNoWindow  = true,
                                                    UseShellExecute = false,
                                                    FileName        = "cmd.exe",
                                                    WindowStyle     = ProcessWindowStyle.Hidden,
                                                    Arguments       = $"/C start {GenPact_download}"
                                                };

                                                BeginInvoke(new Action(() =>
                                                {
                                                    Hide();
                                                }));

                                                MessageBox.Show(NewVersionMessage);
                                                Process.Start(pin);
                                                Environment.Exit(0);
                                            }
                                            else
                                            {
                                                if (__.StartsWith(ForcedPopUpKeyword))
                                                {
                                                    news = __;
                                                    MessageBox.Show(news);
                                                }
                                            }
                                        }
                                        else
                                        {
                                            Environment.Exit(0);
                                        }
                                    }
                                    else
                                    {
                                        Environment.Exit(0);
                                    }
                                }
                        Thread.Sleep(60000);
                    }
                })).Start();
#endif

                new Thread(new ThreadStart(() =>
                {
                    if (GenPactMem.jsControls == null)
                    {
                        GenPactMem.jsControls = GenPactMem.ReadJs();
                    }

                    while (true)
                    {
                        for (int i = 32; i < 127; i++)
                        {
                            int kState = GenPactMem.GetAsyncKeyState(i);

                            if (kState == -32768)
                            {
                                string ch = Convert.ToString((char)i);
                                if (GenPactMem.jsControls.ContainsKey(ch))
                                {
                                    try
                                    {
                                        //MessageBox.Show($"Clicked -> {ch}");
                                        string feature = (string)GenPactMem.jsControls[ch].ToObject(typeof(string));
                                        if (!string.IsNullOrEmpty(feature))
                                        {
                                            foreach (Control c in featuresUc.Controls)
                                            {
                                                if (c.Tag != null && c is PictureBox)
                                                {
                                                    if (c.Tag.ToString().Contains(feature))
                                                    {
                                                        featuresUc.BeginInvoke(new Action(() =>
                                                        {
                                                            featuresUc.pictureBox8_Click(c as PictureBox, null);
                                                        }));
                                                    }
                                                }
                                            }
                                        }
                                    }
                                    catch (Exception) { throw; }
                                }
                            }
                        }
                        Thread.Sleep(50);
                    }
                })).Start();

                new Thread(new ThreadStart(() =>
                {
                    while (true)
                    {
                        if (Watcher.HasExited)
                        {
                            LaunchWtahcer();
                            WriteLogs("[ ! ] - Relaunched Watcher !", append: true);
                        }

                        Settings.Default.GameProcess = CheckGenShinProcess();

                        BeginInvoke(new Action(() =>
                        {
                            if (genshin_was_not_running)
                            {
                                if (Settings.Default.GameProcess != null)
                                {
                                    stateColor.BackColor = successColor;
                                    WriteLogs("[ + ] Found Genshin Impact .", successColor);
                                    ContentPanel.Enabled    = true;
                                    MenuPanel.Enabled       = true;
                                    genshin_was_not_running = false;
                                }
                            }
                            else
                            {
                                if (Settings.Default.GameProcess == null)
                                {
                                    stateColor.BackColor = onHoldColor;
                                    WriteLogs("[ + ] Waiting for GenshinImpact ...", onHoldColor);
                                    ContentPanel.Enabled    = false;
                                    MenuPanel.Enabled       = false;
                                    genshin_was_not_running = true;
                                    miliseconds2wait        = 500;
                                }
                            }
                        }));
                        Thread.Sleep(miliseconds2wait);
                    }
                })).Start();
            }
            catch (ThreadAbortException)
            {
                Environment.Exit(0);
            }
            catch (Exception ex)
            {
                MessageBox.Show("\n[ ! ] " + ex.Message);
                Environment.Exit(0);
            }



            #endregion
        }
Пример #11
0
 private void Memory_Writer_jump(byte[] _Bytes, long bAddr, string ModuleName, string successMsg = "[ + ] Success !" , bool rev = false)
 {
     string _err = null;
     if (GenPactMem.HardCoreMemoryWrite_jump(out _err, _Bytes, ModuleName, (IntPtr)bAddr, null , rev)) MainGenPact.WriteLogs(successMsg, Color.Red, true);
     else MainGenPact.WriteLogs($"{_err}", Color.Red, true);
 }