Why Alway Realeasing DETECTED SCripts/Hacks etc. Its a bit like eating Cold Pizza
Well since my thread got deleted and I don't want to rescan and re do everything, I'm releasing this EASY ASS SOURCE. Don't ask for help, it's like 60 lines and if you can't get it to work... lmao read a book
Code:#include <Windows.h> #include <iostream> void pauseConsole(); // prototype void sleepAlert(); // int main(int argc, char* argv[]) { BYTE NoSpread[] = { 0x74, 0x15 }; BYTE NoRecoil[] = { 0x75, 0x08 }; HWND hWnd = FindWindow(NULL, TEXT("Call of Duty 4")); if(hWnd == NULL) { std::cerr << "\n\n\nERROR :: Cannot find CoD4 window" << std::endl; } else { DWORD pId; GetWindowThreadProcessId(hWnd, &pId); HANDLE hProc = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pId); if(!hProc) { std::cerr << "\n\n\nERROR :: Cannot open process" << std::endl; } else { for(;;) { if(WriteProcessMemory(hProc, (void*)0x00416C7B, &NoSpread, 2, 0) && WriteProcessMemory(hProc, (void*)0x0041A7BD, &NoRecoil, 2, 0)) { sleepAlert(); } } CloseHandle(hProc); } } pauseConsole(); return 0; } void pauseConsole() { std::cout << "\n\n\tPress <Enter> to continue..."; std::cin.clear(); std::cin.ignore(); } void sleepAlert() { std::clog << "\n\n\nSUCCESS :: Process memory written" << std::endl; Sleep(10000); }
Last edited by LEGiiTxCHAOTiiC; 07-19-2012 at 09:39 PM.
Why Alway Realeasing DETECTED SCripts/Hacks etc. Its a bit like eating Cold Pizza
It was for lazy people and people just wanting a working fully functional no recoil without any work really. If I wanted to release something worth more, I'd make the downloaders/copy and pasters do some work.
Umm compile the source, I use g++ and then run it. Run as Administrator if on Win Vista/7/8 to make sure it writes the process memory because otherwise you might come across permission / security alerts / errors.
---------- Post added at 10:50 PM ---------- Previous post was at 10:48 PM ----------
Use this instead, I think I changed some stuff, I don't remember and I don't really care either, the first one works but I'm trying to improve it all the time, anyways, here:
Code:#include <Windows.h> #include <iostream> void pauseConsole(int sleepTime); // prototype void sleepAlert(); int main(int argc, char* argv[]) { SetConsoleTitleA(TEXT("Call of Duty 4 - No Recoil / No Spread")); byte NoSpread[] = { 0x74, 0x15 }; byte NoRecoil[] = { 0x75, 0x08 }; HWND hWnd = FindWindow(NULL, TEXT("Call of Duty 4")); if(hWnd == NULL) { std::cerr << "ERROR :: Cannot find window\n" << std::endl; } else { DWORD pId; GetWindowThreadProcessId(hWnd, &pId); HANDLE hProc = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pId); if(!hProc) { std::cerr << "ERROR :: Cannot open process\n" << std::endl; } else { for(;;) { if(WriteProcessMemory(hProc, (void*)0x00416C7B, &NoSpread, 2, 0) && WriteProcessMemory(hProc, (void*)0x0041A7BD, &NoRecoil, 2, 0)) { sleepAlert(); } } CloseHandle(hProc); } } pauseConsole(0); return 0; } void pauseConsole(int sleepTime) { if(sleepTime == 0) { std::clog << "\nPress <Enter> to continue..."; std::cin.clear(); std::cin.ignore(); } else { Sleep(sleepTime); std::clog << "\nPress <Enter> to continue..."; std::cin.clear(); std::cin.ignore(); } } void sleepAlert() { std::clog << "SUCCESS :: Process memory written\n\n" << std::endl; Sleep(60000); }
Last edited by LEGiiTxCHAOTiiC; 07-24-2012 at 08:52 PM.
I use GNU G++, but you can use say anything like that including Cygwin (I don't recommend), MingW, and regular GCC or really anything. If you want to use Visual Studio, change int main to int _tmain and char* to _TCHAR* in the main method. There's probably more you'd need to change but I haven't used VS in a while. Anyways, good luck. Hope I was of some help.
UPDATE:
How to use:Code:#include <Windows.h> #include <iostream> void pauseConsole(int sleepTime); // prototype void sleepAlert(void); int main(int argc, char* argv[]) { SetConsoleTitleA(TEXT("Call of Duty 4 - No Recoil / No Spread")); byte NoSpread[] = { 0x74, 0x15 }; byte NoRecoil[] = { 0x75, 0x08 }; HWND hWnd = FindWindow(NULL, TEXT("Call of Duty 4")); if(hWnd == NULL) { std::cerr << "ERROR :: Cannot find window\n" << std::endl; } else { DWORD pId; GetWindowThreadProcessId(hWnd, &pId); HANDLE hProc = OpenProcess(PROCESS_VM_WRITE | PROCESS_VM_OPERATION, FALSE, pId); if(!hProc) { std::cerr << "ERROR :: Cannot open process\n" << std::endl; } else { WriteProcessMemory(hProc, (void*)0x00416C7B, &NoSpread, 2, 0); WriteProcessMemory(hProc, (void*)0x0041A7BD, &NoRecoil, 2, 0); VirtualProtectEx(hProc, (void*)0x00416C7B, 2, 0x02, (DWORD*)&NoSpread); VirtualProtectEx(hProc, (void*)0x0041A7BD, 2, 0x02, (DWORD*)&NoRecoil); } CloseHandle(hProc); } pauseConsole(0); return 0; } void pauseConsole(int sleepTime) { if(sleepTime == 0) { std::clog << "\nPress <Enter> to continue..."; std::cin.clear(); std::cin.ignore(); } else { Sleep(sleepTime); std::clog << "\nPress <Enter> to continue..."; std::cin.clear(); std::cin.ignore(); } } void sleepAlert(void) { std::clog << "SUCCESS :: Process memory written\n\n" << std::endl; Sleep(60000); }
- Compile with G++ (preferably)
- Run CoD4 first
- Run this program
- Close this program
- Play CoD4 with no recoil on non PB servers
Thank you so much.