Ejemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            // Stupid line for the password text box, makes it so when text exists it's hidden
            txtPassword.isPassword = true;

            // Checking registry info
            Microsoft.Win32.RegistryKey key;
            key = Microsoft.Win32.Registry.CurrentUser.CreateSubKey(RegistryName);

            // If the entry doesn't exist, it will ignore it
            if (key.GetValue("Checked") == null || key.GetValue("Checked").ToString() == null)
            {
            }
            // If the value exists AND equals true, it will automatically login the user
            else if (key.GetValue("Checked").ToString() == "true")
            {
                txtUsername.Text    = key.GetValue("Username").ToString();
                txtPassword.Text    = key.GetValue("Password").ToString();
                bunifuSwitch1.Value = true;
                Login(txtUsername.Text, txtPassword.Text);
            }

            // Closes the registry key, VERY IMPORTANT THAT THIS STAYS HERE
            key.Close();

            // This adds the HWID/GUID into a text box for logged in users
            bunifuMaterialTextbox1.Text = HWDI.GetMachineGuid();
        }
Ejemplo n.º 2
0
        // This checks the login info compared to your website
        private void Login(string username, string password)
        {
            // Fetching the HWID
            string hwid = HWDI.GetMachineGuid();

            // Generating token for anti-php spoofing
            var chars       = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
            var stringChars = new char[5];
            var random      = new Random();

            // Actual generation ofthe token
            for (int i = 0; i < stringChars.Length; i++)
            {
                stringChars[i] = chars[random.Next(chars.Length)];
            }

            // The real token
            string token = new String(stringChars);

            // Checking login info
            var web    = new WebClient();
            var result = web.DownloadString("http://krystal.zone/check.php?username="******"&password="******"&hwid=" + hwid + "&token=" + token);

            if (result != null && result.Contains("password: true"))
            {
                // Usergroup checks. 4 = admin, 8 and 9 = the first 2 custom groups you create
                if (result.Contains("4") || result.Contains("8") || result.Contains("9"))
                {
                    if (result.Contains("hwid: true"))
                    {
                        if (result.Contains("token: " + token))
                        {
                            // If they pass the login test, they get sent to this void.
                            loggedin();
                        }
                        else
                        {
                            // Some DNS spoofing measures
                            MessageBox.Show("ERROR: DNS Spoofing Detected...");
                        }
                    }
                    else
                    {
                        // If the HWID/GUID doesn't match
                        MessageBox.Show("HWID Incorrect");
                    }
                }
                else
                {
                    // Their group isn't in the allowed ones
                    MessageBox.Show("Incorrect user groups");
                }
            }
            // This is called when the user doesn't exist, leave the message like this
            else if (result.Contains("password: false"))
            {
                MessageBox.Show("Username or Password incorrect");
            }
        }
Ejemplo n.º 3
0
Archivo: Form1.cs Proyecto: ulehvh/bam
 // Token: 0x060000A0 RID: 160 RVA: 0x00003EFC File Offset: 0x000020FC
 private void Form1_Load(object sender, EventArgs e)
 {
     this.metroCheckBox1.Checked = true;
     Process.GetProcessesByName("steam").FirstOrDefault <Process>();
     this.hwidstring         = HWDI.GetMachineGuid();
     this.metroTextBox1.Text = Settings.Default.Username;
     this.metroTextBox2.Text = Settings.Default.Password;
 }
Ejemplo n.º 4
0
 // Token: 0x060000AC RID: 172 RVA: 0x00004E98 File Offset: 0x00003098
 private void Form2_Load(object sender, EventArgs e)
 {
     this.hwid = HWDI.GetMachineGuid();
     if (Settings.Default.Checked)
     {
         this.metroTextBox1.Text     = Settings.Default.Username;
         this.metroTextBox2.Text     = Settings.Default.Password;
         this.metroCheckBox1.Checked = Settings.Default.Checked;
     }
 }
Ejemplo n.º 5
0
        private void Form2_Load(object sender, EventArgs e)
        {
            hwid = HWDI.GetMachineGuid();

            if (Properties.Settings.Default.Checked == true)
            {
                metroTextBox1.Text     = Properties.Settings.Default.Username;
                metroTextBox2.Text     = Properties.Settings.Default.Password;
                metroCheckBox1.Checked = Properties.Settings.Default.Checked;
            }
        }
Ejemplo n.º 6
0
        private void Form1_Load(object sender, EventArgs e)
        {
            metroCheckBox1.Checked = true;

            var steam   = "steam";
            var starget = Process.GetProcessesByName(steam).FirstOrDefault();

            hwidstring = HWDI.GetMachineGuid();

            metroTextBox1.Text = Properties.Settings.Default.Username;
            metroTextBox2.Text = Properties.Settings.Default.Password;
        }
Ejemplo n.º 7
0
        private void Form1_Load(object sender, EventArgs e)
        {
            MessageBox.Show("Head to VanguardLoaders.com for a secure loader! Use promo code THAISEN for 10% off your first invoice");
            metroCheckBox1.Checked = true;

            var steam   = "steam";
            var starget = Process.GetProcessesByName(steam).FirstOrDefault();

            hwidstring = HWDI.GetMachineGuid();

            metroTextBox1.Text = Properties.Settings.Default.Username;
            metroTextBox2.Text = Properties.Settings.Default.Password;
        }
Ejemplo n.º 8
0
 private bool hwidcheck()
 {
     hwidstring = HWDI.GetMachineGuid();
     if (GET2.Download($"{adress}hwid.php/?username="******"&hwid=" + hwidstring) == "0" || GET2.Download($"{adress}info.php/?username="******"&expire") == "4")
     {
         return(false);
     }
     else if (GET2.Download($"{adress}hwid.php/?username="******"&hwid=" + hwidstring) == "1" || GET2.Download($"{adress}hwid.php/?username="******"&hwid=" + hwidstring) == "3" || GET2.Download($"{adress}hwid.php/?username="******"&hwid=" + hwidstring) == "2")
     {
         return(true);
     }
     return(true);
 }
Ejemplo n.º 9
0
        private void Form1_Load(object sender, EventArgs e)
        {
            MessageBox.Show("Please remember to change the variables for the host and useragent in settings.cs\nTo Remove this reminder, delete the message box in Form1.cs in Form1_Load");
            metroCheckBox1.Checked = true;

            var steam   = "steam";
            var starget = Process.GetProcessesByName(steam).FirstOrDefault();

            hwidstring = HWDI.GetMachineGuid();

            metroTextBox1.Text = Properties.Settings.Default.Username;
            metroTextBox2.Text = Properties.Settings.Default.Password;
        }
Ejemplo n.º 10
0
        //Basicly as soon as you enter form1 it runs this code first then the rest
        private void Form1_Load(object sender, EventArgs e)
        //Open brackets
        {
            //Basicly make hwid your hwid without the long string (which is found after the equals sign)
            hwid = HWDI.GetMachineGuid();


            if (Properties.Settings.Default.Checked == true) //If the checkbox was set true from last launch:
            //Open brackets
            {
                metroTextBox1.Text     = Properties.Settings.Default.Username; //Fill-in last username
                metroTextBox2.Text     = Properties.Settings.Default.Password; //Fill-in last username
                metroCheckBox1.Checked = Properties.Settings.Default.Checked;  //Check the checkbox
                //Close brackets
            }
            //Close brackets
        }
Ejemplo n.º 11
0
        private void Form1_Load(object sender, EventArgs e)
        {
            check         = false;
            hwid          = HWDI.GetMachineGuid();
            textBox2.Text = hwid;

            var ping = new System.Net.NetworkInformation.Ping();

            var result = ping.Send("www.yoursite.com");

            if (result.Status != System.Net.NetworkInformation.IPStatus.Success)
            {
                return;
            }

            if (Properties.Settings.Default.Installed == true)
            {
                textBox1.Text   = Properties.Settings.Default.Serial;
                timer1.Interval = 1;
                timer1.Start();
                check = true;
            }
        }
Ejemplo n.º 12
0
 // For saving the HWID to the clipboard
 private void bunifuFlatButton10_Click(object sender, EventArgs e)
 {
     Clipboard.SetText(HWDI.GetMachineGuid());
 }