Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // firstshacks.cpp : Defines the exported functions for the DLL application.
- //
- #include "stdafx.h"
- #include <windows.h>
- #include <stdio.h>
- #include <iostream>
- #include <windows.h>
- bool IsGameReadyForHook()
- {
- if( GetModuleHandleA( "ClientFX.fxd" ) != NULL
- && GetModuleHandleA( "CShell.dll" ) != NULL )
- return true;
- return false;
- }
- void main()
- {
- while (!IsGameReadyForHook()){
- Sleep(20);
- }
- bool super = false;
- bool glass = false;
- while(true){
- if (GetAsyncKeyState(VK_NUMPAD1)<0)
- super=!super;
- if (super){
- Sleep(200);
- memcpy((LPVOID)0x374B44F6, "\x0F\x94\xC0", 3);
- }else{
- Sleep(200);
- memcpy((LPVOID)0x374B44F6, "\x90\x90\x90", 3);
- }
- if(GetAsyncKeyState(VK_NUMPAD2)<0)
- glass=!glass;
- if (glass){
- Sleep(200);
- memcpy((LPVOID)0x57275A, "\x6A\x01", 2);
- }else{
- Sleep(200);
- memcpy((LPVOID)0x57275A, "\x6A\x00", 2);
- }
- }
- }
- BOOL APIENTRY DllMain( HMODULE hModule,
- DWORD ul_reason_for_call,
- LPVOID lpReserved
- )
- {
- switch (ul_reason_for_call)
- {
- case DLL_PROCESS_ATTACH:
- CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&main, NULL, 0,NULL);
- break;
- case DLL_THREAD_ATTACH:
- case DLL_THREAD_DETACH:
- case DLL_PROCESS_DETACH:
- break;
- }
- return TRUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement