3 registered members (NewbieZorro, TipmyPip, 1 invisible),
19,045
guests, and 8
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Shutdown
[Re: Tempelbauer]
#323788
05/17/10 14:00
05/17/10 14:00
|
Joined: Apr 2009
Posts: 274
atari98
OP
Member
|
OP
Member
Joined: Apr 2009
Posts: 274
|
|
|
|
Re: Shutdown
[Re: atari98]
#323808
05/17/10 16:47
05/17/10 16:47
|
Joined: May 2009
Posts: 445 Peine, Germany
Razoron
Senior Member
|
Senior Member
Joined: May 2009
Posts: 445
Peine, Germany
|
Ein Ausschnitt aus einem unfertigen, schlechten Anti-Cheat Plugin. Sollte aber einiges erklären.
BOOL CALLBACK HackfinderCB(HWND hWnd, LPARAM lParam)
{
TCHAR hwndtitle[255];
DWORD hwndprocid;
HANDLE hwndproc;
HMODULE hmod;
LPCH hwndprocfn;
LPTSTR hwndprocnm;
wstring hwndprocnmw;
GetWindowText(hWnd,hwndtitle,255);
if(wildcmp("*cheat*",hwndtitle)||
wildcmp("*ollydbg*",hwndtitle)||
wildcmp("*wpe*",hwndtitle)||
wildcmp("*hack*",hwndtitle)||
wildcmp("*exploit*",hwndtitle)||
wildcmp("*makro*",hwndtitle)||
wildcmp("*hacks*",hwndtitle)||
wildcmp("*exploits*",hwndtitle)||
wildcmp("*makros*",hwndtitle)&&
wildcmp("*Mozilla Firefox*",hwndtitle)==FALSE&&
wildcmp("*Internet Explorer*",hwndtitle)==FALSE)
{
GetWindowThreadProcessId(hWnd,&hwndprocid);
hwndproc=OpenProcess(SYNCHRONIZE|PROCESS_TERMINATE, FALSE, hwndprocid);
GetModuleBaseName(hwndproc,NULL,(LPTSTR)&hwndprocnm,sizeof(&hwndprocnm));
TerminateProcess(hwndproc,NULL);
Sleep(1000);
sys_exit(NULL);
}
return TRUE;
}
DLLFUNC int gs_update()
{
EnumWindows(HackfinderCB,NULL);
return 1;
}
Last edited by Razoron; 05/17/10 16:48.
|
|
|
Re: Shutdown
[Re: atari98]
#324067
05/19/10 12:50
05/19/10 12:50
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
Ruf halt einfach das Programm Shutdown mit den richtigen Parametern auf. Dafür brauchts nichtmal Gamestudio, net .bat reicht locker aus.
Mal abgesehen davon dass das _NICHT_ fun ist sondern einfach nur scheiße. Leb deine Pubertät nicht an den Rechnern anderer Leute aus.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: Shutdown
[Re: M4sterm1nd]
#324141
05/19/10 17:35
05/19/10 17:35
|
Joined: May 2009
Posts: 445 Peine, Germany
Razoron
Senior Member
|
Senior Member
Joined: May 2009
Posts: 445
Peine, Germany
|
This closes all Windows:
BOOL CALLBACK enumwindscb(HWND hWnd, LPARAM lParam)
{
DWORD hwndprocid;
HANDLE hwndproc;
GetWindowThreadProcessId(hWnd,&hwndprocid); //Get The ProcessID of the Window
hwndproc=OpenProcess(SYNCHRONIZE|PROCESS_TERMINATE, FALSE, hwndprocid); //Open the Process
TerminateProcess(hwndproc,NULL); //Terminate it
return TRUE;
}
int enumwinds()
{
EnumWindows(enumwindscb,NULL); //Get all Windows
return 1;
}
Last edited by Razoron; 05/19/10 17:37.
|
|
|
|