This forum is in archive mode. You will not be able to post new content.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ionutica

Pages: [1]
1
Operating System / I made a new windows 8 activator based on kms
« on: June 05, 2013, 10:27:18 AM »
8) I worked a lot on it and it simply works great!
Code: [Select]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
namespace Windows_8_Activator
{
   
    public partial class Form1 : Form
    {
        const string win8pro = "NG4HW-VH26C-733KW-K6F98-J8CK4";
        const string win8profn = "XCVCF-2NXM9-723PB-MHCB7-2RYQQ";
        const string win8enterprise = "32JNW-9KQ84-P47T8-D8GGY-CWCK7";
        const string win8enterprisen = "JMNMF-RHW7P-DMY6X-RF3DR-X2BQT";
        const string winsrv2012core = "BN3D2-R7TKB-3YPBD-8DRP2-27GG4";
        const string winsrv2012coren = "8N2M2-HWPGY-7PGT9-HGDD8-GVGGY";
        public string currentkey = "";
        public Form1()
        {
            InitializeComponent();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            if ((Environment.OSVersion.Version.Minor != 2) && (Environment.OSVersion.Version.Major != 6))
            {
                MessageBox.Show("You are NOT running windows 8", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                Application.Exit();
            }
        }
        public void activate(string key, int tick)
        {
            switch (tick)
            {
                case 1:
                    Process.Start("slmgr.vbs", "/ipk " + key);
                    break;
                case 2:
                    Process.Start("slmgr.vbs", "/skms 127.0.0.1:1688");
                    break;
                case 3:
                    Process.Start("srv.exe");
                    break;
                case 4:
                    Process.Start("slmgr.vbs", "/ato");
                    break;
                case 5:
                    Process.Start("slmgr.vbs", "/ckms");
                    break;
            }
         
        }
        private void timer1_Tick(object sender, EventArgs e)
        {
            progressBar1.Value += 1;
            if (progressBar1.Value % 20 == 0)
            {
                activate(currentkey, progressBar1.Value / 20);
            }
            if (progressBar1.Value == 100)
            {
                timer1.Stop();
                progressBar1.Value = 0;
                System.Threading.Thread.Sleep(5000);
                Process.Start("shutdown", "-r -t 00");
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Process.Start("ipconfig", "/release");
            progressBar1.Value = 0;
            timer1.Start();
            currentkey = win8pro;
        }
       
        private void button2_Click(object sender, EventArgs e)
        {
            Process.Start("ipconfig", "/release");
            progressBar1.Value = 0;
            timer1.Start();
            currentkey = win8profn;
        }
        private void button3_Click(object sender, EventArgs e)
        {
            Process.Start("ipconfig", "/release");
            progressBar1.Value = 0;
            timer1.Start();
            currentkey = win8enterprise;
        }
        private void button4_Click(object sender, EventArgs e)
        {
            Process.Start("ipconfig", "/release");
            progressBar1.Value = 0;
            timer1.Start();
            currentkey = win8enterprisen;
        }
        private void button5_Click(object sender, EventArgs e)
        {
            Process.Start("ipconfig", "/release");
            progressBar1.Value = 0;
            timer1.Start();
            currentkey = winsrv2012core;
        }
        private void button6_Click(object sender, EventArgs e)
        {
            Process.Start("ipconfig", "/release");
            progressBar1.Value = 0;
            timer1.Start();
            currentkey = winsrv2012coren;
        }
    }
}

Pages: [1]


Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.