Thursday, May 26, 2016

TyranO's time for 1.24e


TyranO's time for 1.24e


This is an old I had on my computer. I MADE THIS IN 1.22 (SOURCE IS BELOW) Back in the day people thought this would "kill battle.net" (y right).

Three modes:

F4: Longloads for 4 min 30 seconds (I think max is 5 minutes before you d/c and lose), customizable. Only press ONCE, as soon as loading starts.
F5: Longloads manually until you press F6. Press before or during loading.
F6. Longload is OFF (won't work if you pressed the F4 mode though).

This is pretty useless and simple, but hey, it's a zmap fture.


Quote Originally Posted by undd_warrior View Post
dude Tyrano, i hrd rumors that you're the next bendik... I rlly hope it's ain't so but in these pass few weeks, you're acting more and more like him... WAT THE **** DUDE..??
Quote Originally Posted by hohodyret View Post
But he still missing to credit someone....
Quote Originally Posted by Jolinar View Post
I second that.
This is the kind of shit that makes me want to lve this site for good. I have nobody to credit.

You guys are killing me. This is my , I wrote it in 1.22 and I just updated the offset. And no it isn't detected. Who should I give credit to? This is my offset, I found it, wrote the program. How did I get the id to make it? Some guy on msn told me back in the day to make a that pauses loading. I told him it was sy to make and that there were tons of "longload" offsets and methods, made this with hot as it was simpler to use.

Have I ever ripped a ? I mn, COME ON.

:

#include <.h>
#include
#include
#include "inirder.h"
#include "colors.cpp"

using namespace std;

DWORD GetPID (char* proc);
void EnableDebugPriv();
DWORD GetDLL (char* DllName, DWORD tPid);

#define write(addr, ...) __write(addr, __VA_ARGS__, -1)
void __write(DWORD addr, ...);

int main(void)
{

EnableDebugPriv();
bool bPressed[4] = {false, false, false, false}; //Whoop, don't trigger multiple times
SetConsoleTitle("TyranO's Time (LongLoad) for 1.24e");
DWORD Address = 0x60A33F;

CIniRder iniRder(".\\config.ini");
int sleep = iniRder.RdInteger("Settings", "sleep", 270000);

if (GetPID("war3.exe") == 0)
{
cout << "WC3 Not found." << endl << endl; system("Pause"); exit(0); } else { SetColor(9); cout << "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||"; cout << "|||||||| ||||||||||||||||||||||||||||||||||||||||||||||| ||||||||||"; SetColor(11); cout << "|||||||||||| |||||||| |||||| |||||||||||||||||||||||||||||||||| ||||| |||||||||"; cout << "|||||||||||| |||||||| |||| |||| |||||||| |||||||| |||| |||| ||||||| ||||||||"; SetColor(10); cout << "|||||||||||| ||||||||| ||||| |||| | ||||||| ||| |||| ||||||| ||||||||"; cout << "|||||||||||| ||||||||||| ||||||| |||||| ||| |||||| | ||| |||| ||||||| ||||||||"; SetColor(12); cout << "|||||||||||| ||||||||||| ||||||| ||||| ||||| || || |||| ||||||| ||||||||"; cout << "|||||||||||| ||||||||||| ||||||| |||| ||||||| |||| ||| | ||||| ||||| |||||||||"; SetColor(-1); cout << "|||||||||||| ||||||||||| ||||||| ||| ||||||||| ||| |||| |||||| ||||||||||"; cout << "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||" << endl; SetColor(-3); cout << "Press F4 to pause loading for "; cout << sleep/1000; cout << " seconds (Automatic). PRESS F4 only ONCE." << endl << "F4 mode cannot be stopped until timer is over. Default is 4 min 30 sec." << endl << endl; cout << "Press F5 to pause loading. " << endl << endl; cout << "Press F6 to stop longload. " << endl << endl; for(;;) { SetColor(-5); if(GetAsyncState(VK_F4) && GetAsyncState(VK_F4) && !bPressed[0]){ bPressed[0] = true; write (Address,0x00); cout << "Time (automatic) is ON. It will be off in "; cout << sleep/1000; cout << " seconds."; Sleep(sleep); write (Address,0x01); cout << "Time is now OFF." << endl << endl; } else if (!GetAsyncState(VK_F4)) bPressed[0] = false; if(GetAsyncState(VK_F5) && GetAsyncState(VK_F5) && !bPressed[1]){ bPressed[1] = true; write (Address,0x00); cout << "Time (manual) is ON."<< endl << endl; } else if (!GetAsyncState(VK_F5)) bPressed[1] = false; if(GetAsyncState(VK_F6) && GetAsyncState(VK_F6) && !bPressed[2]){ bPressed[2] = true; write (Address,0x01); cout << "Time is OFF."<< endl << endl; } else if (!GetAsyncState(VK_F6)) bPressed[2] = false; } } } DWORD GetPID (char* proc) { BOOL working=0; PROCESSENTRY32 lppe= {0}; DWORD targetPid=0; HANDLE hSnapshot=CrteToolhelp32Snapshot(TH32CS_SNAPPROCESS ,0); if (hSnapshot) { lppe.dwSize=sizeof(lppe); working=Process32First(hSnapshot,&lppe); while (working) { if (_stricmp(lppe.szExeFile,proc)==0) { targetPid=lppe.th32ProcessID; brk; } working=Process32Next(hSnapshot,&lppe); } } CloseHandle( hSnapshot ); return targetPid; } void EnableDebugPriv() { HANDLE hToken; LUID sedebugnameValue; TOKEN_PRIVILEGES tkp; OpenProcessToken( GetCurrentProcess( ), TOKEN_ADJUST_PRIVILEGES |TOKEN_QUERY, &hToken ); LookupPrivilegeValue( , SE_DEBUG_NAME, &sedebugnameValue ); tkp.PrivilegeCount = 1; tkp.Privileges[0].Luid = sedebugnameValue; tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED; AdjustTokenPrivileges( hToken, false, &tkp, sizeof( tkp ), , ); CloseHandle( hToken ); } DWORD GetDLL(char* DllName, DWORD tPid) { HANDLE snapMod; MODULEENTRY32 me32; if (tPid == 0) return 0; snapMod = CrteToolhelp32Snapshot(TH32CS_SNAPMODULE, tPid); me32.dwSize = sizeof(MODULEENTRY32); if (Module32First(snapMod, &me32)){ do{ if (strcmp(DllName,me32.szModule) == 0){ CloseHandle(snapMod); return (DWORD) me32.modBaseAddr; } }while(Module32Next(snapMod,&me32)); } CloseHandle(snapMod); return 0; } //Darimus' write function (takes care of base, protection attributes and byte lenght) void __write(DWORD addr, ...) { DWORD GameDLL = GetDLL("Game.dll",GetPID("war3.exe")); HANDLE hProc = OpenProcess(PROCESS_ALL_ACCESS, false, GetPID("war3.exe")); addr += GameDLL; va_list vl; DWORD arg; DWORD prot; unsigned char byte = 0; va_start(vl, addr); arg = va_arg(vl, DWORD); while (arg < 0x100) { byte = arg; VirtualProtectEx((void*)hProc,(void*)addr, 1, PAGE_EXECUTE_RDWRITE, &prot); WriteProcessMemory(hProc, (void*)addr, &byte, 1, 0); VirtualProtectEx((void*)hProc,(void*)addr, 1, prot, &prot); arg = va_arg(vl, DWORD); ++addr; } va_end(vl); }

<.h>Mediafire Download link: http://www.mediafire.com/?pg6tulzvidlk4k6

No comments:

Post a Comment