Principal arrow Utilitários arrow Programas e Aplicativos arrow Windows Genuine AC
Advertisement
Windows Genuine AC PDF Imprimir E-mail
Patch utilizado pelo programa Microsoft Windows Genuine, onde apenas usuários com licença do Microsoft Windows podem ter acesso a atualizações do Windows Update (baseado na dll LegitCheckControl.dll)


#include <stdio.h>

typedef struct bytepair BYTEPAIR;
struct bytepair
{
    long offset;
    char val;
};

static const BYTEPAIR byte_pairs[3]= {
    {0x2BE98, 0x33},
    {0x2BE99, 0xC0},
    {0x2BE9A, 0x90},
};

int main(int argc, char *argv[])
{
    FILE *lp;
    int i;

    getchar();
    lp = fopen("LegitCheckControl.dll", "r+");

    if( lp == (FILE *)0 ) {
        printf("LegitCheckControl.dll não encontrado. Abortando.\n\n");
        return 1;
    }

    for (i = 0; i < 3; i++)
    {
        fseek( lp, byte_pairs[i].offset, SEEK_SET );
        fwrite( &byte_pairs[i].val, 1, 1, lp );
    }

    fclose( lp );
    printf( "Patch executado.\n\n" );

    return 0;
}
 
Tag it:
Delicious
Furl it!
YahooMyWeb
Technorati
Digg