Author: t0fx

Code:
//////////////////////////////////
// CD keyz recovering by t0fx ///
// give credits if you use it //
///////////////////////////////
/// 
using System;
using Microsoft.Win32;

namespace ConsoleApplication1
{
    class CDkeyz
    {
        static void Main()
        {

            CDkeyz_start();

        }

        public static void CDkeyz_start()
        {
            var key = Registry.LocalMachine;
            var key1 = Registry.CurrentUser;
            var cod1 = key.OpenSubKey("SOFTWARE\\ACTIVISION\\Call of Duty", false);
            var cod2 = key.OpenSubKey("SOFTWARE\\ACTIVISION\\Call of Duty 2", false);
            var cod4 = key.OpenSubKey("SOFTWARE\\ACTIVISION\\Call of Duty 4", false);
            var codWAW = key.OpenSubKey("SOFTWARE\\ACTIVISION\\Call of Duty WAW", false);
            var HL = key1.OpenSubKey("Software\\Valve\\Half-Life\\Settings", false);
            var CS = key1.OpenSubKey("Software\\Valve\\CounterStrike\\Settings", false);
            var Q3 = key.OpenSubKey("SOFTWARE\\id\\Quake III Arena\\InstallPath\\base", false);
            var D3 = key.OpenSubKey("SOFTWARE\\id\\Doom 3\\IntallPath\\base\\doomkey", false);
            var bf2 = key.OpenSubKey("SOFTWARE\\Electronic Arts\\EA Games\\Battlefield 2\\ergc", false);
            var bf1942 = key.OpenSubKey("SOFTWARE\\Electronic Arts\\EA GAMES\\Battlefield 1942\\ergc", false);
            var bf1942rtr = key.OpenSubKey("SOFTWARE\\Electronic Arts\\EA GAMES\\Battlefield 1942 The Road to Rome\\ergc", false);
            var ut2003 = key.OpenSubKey("SOFTWARE\\Unreal Technology\\Installed Apps\\UT2003", false);
            var pigi2 = key.OpenSubKey("IGI 2 Retail", false);
            var raven = key.OpenSubKey("SOFTWARE\\Red Storm Entertainment", false);
            var nfsu = key.OpenSubKey("SOFTWARE\\EA Games\\Need for Speed Undercover", false);
            var scpt = key.OpenSubKey("SOFTWARE\\Ubisoft\\Splinter Cell Pandora Tomorrow", false);
            var scct = key.OpenSubKey("SOFTWARE\\Ubisoft\\Splinter Cell Chaos Theory", false);
            var dow = key.OpenSubKey("SOFTWARE\\THQ\\Dawn of War", false);
            var fifa02 = key.OpenSubKey("SOFTWARE\\Electronic Arts\\EA Sports\\FIFA 2002", false);
            var mohaab = key.OpenSubKey("SOFTWARE\\Electronic Arts\\EA GAMES\\Medal of Honor Allied Assault Breakthrough\\ergc", false);
            var mohaa = key.OpenSubKey("Electronic Arts\\EA GAMES\\Medal of Honor Allied Assault\\egrc", false);
            var fifa03 = key.OpenSubKey("SOFTWARE\\Electronic Arts\\EA Sports\\FIFA 2003\\ergc", false);
            var fifa08 = key.OpenSubKey("SOFTWARE\\Electronic Arts\\EA Sports\\FIFA 2008\\ergc", false);
            var fifa09 = key.OpenSubKey("SOFTWARE\\Electronic Arts\\EA Sports\\FIFA 2009\\ergc", false);


            if (cod1 != null)
                Console.WriteLine("Call Of Duty 1 : " + cod1.GetValue("codkey"));

            if (cod2 != null)
                Console.WriteLine("Call Of Duty 2 : " + cod2.GetValue("codkey"));


            if (cod4 != null)
                Console.WriteLine("Call of Duty 4 : " + cod4.GetValue("codkey"));

            if (codWAW != null)
                Console.WriteLine("Call Of Duty WAW : " + codWAW.GetValue("codkey"));


            if (HL != null)
                Console.WriteLine("Half-Life : " + HL.GetValue("Key"));


            if (bf2 != null)
                Console.WriteLine("Battlefield 2 : " + bf2.GetValue(""));

            if (bf1942 != null)
                Console.WriteLine("Battlefield 1942 : " + bf1942.GetValue(""));


            if (bf1942rtr != null)
                Console.WriteLine("Battlefield 1942 The Road to Rome : " + bf1942rtr.GetValue(""));


            if (CS != null)
                Console.WriteLine("CounterStrike : " + CS.GetValue("Key"));



            if (Q3 != null)
                Console.WriteLine("Quake 3 : " + Q3.GetValue("q3key"));


            if (D3 != null)
                Console.WriteLine("Doom 3 : " + D3.GetValue(""));


            if (ut2003 != null)
                Console.WriteLine("UT 2003 3 : " + ut2003.GetValue("CDKey"));


            if (pigi2 != null)
                Console.WriteLine("IGI 2 : " + pigi2.GetValue("CDKey"));


            if (raven != null)
                Console.WriteLine("RAVENSHIELD : " + raven.GetValue("RAVENSHIELD"));

            if (nfsu != null)
                Console.WriteLine("Need for Speed Undercover : " + nfsu.GetValue("Product Guid"));


            if (scpt != null)
                Console.WriteLine("Splinter Cell Pandora Tomorrow : " + scpt.GetValue("DiscKey_SCCT"));


            if (scct != null)
                Console.WriteLine("Splinter Cell Chaos Theory : " + scct.GetValue("keys"));


            if (dow != null)
                Console.WriteLine("Dawn of War : " + dow.GetValue("CDKEY"));


            if (fifa02 != null)
                Console.WriteLine("FIFA 2002 : " + fifa02.GetValue(""));


            if (fifa03 != null)
                Console.WriteLine("FIFA 2003 : " + fifa03.GetValue(""));


            if (fifa08 != null)
                Console.WriteLine("FIFA 2008 : " + fifa08.GetValue(""));

            if (fifa09 != null)
                Console.WriteLine("FIFA 2009 : " + fifa09.GetValue(""));


            if (mohaab != null)
                Console.WriteLine("Medal of Honor Allied Assault Breakthrough : " + mohaab.GetValue(""));


            if (mohaa != null)
                Console.WriteLine("Medal of Honor Allied Assault : " + mohaa.GetValue(""));

        }

    }
}