Results 1 to 7 of 7
  1. #1
    cheech123's Avatar
    Join Date
    Jan 2010
    Gender
    female
    Posts
    7
    Reputation
    10
    Thanks
    0

    Undetected C++ css hack

    Hi guys , help me make this very good module hack undetected :

    #include <windows.h>
    #include <tlhelp32.h>
    #include "PNGlib.h"
    #include "resource.h"
    #include "dlg_colors.h"
    #include "ufmod.h"


    BOOL GetProcessList();
    void Initialize(HWND hwnd,WPARAM wParam, LPARAM lParam);
    void RunGame(HWND hwnd,WPARAM wParam, LPARAM lParam);
    void timerCall();
    void HookExe();


    int update_timer = 70;
    char *about =
    "Frog Hunt 1.0\n"
    "coded by Johan Peitz\n"
    "\n"
    "trained by mudlord\n"
    "mudlord88@gmail.com";
    char *gameFileName = "hl2.exe";
    BYTE scoretimerlock = -1;
    BYTE spawnfroglock = -1;
    BYTE maintimerlock = -1;
    BYTE spawnelephantlock = -1;

    HINSTANCE AppInstance;
    BOOL GameRunning;
    DWORD pid, bytes; HWND hwndWindow; HANDLE hand = NULL;
    #define BUTTON_COLOR 0x008C8C00
    #define BUTTON_TEXT_COLOR 0x00FFFFFF
    #define BUTTON_FRAME_COLOR 0x00FCFEFC


    BOOL CALLBACK DialogProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
    {
    RECT tmpRect;


    switch (message)
    {
    case WM_INITDIALOG:
    Initialize(hwnd,wParam,lParam);
    c_MakeOwnerDraw(hwnd,IDC_RUNGAME);
    c_MakeOwnerDraw(hwnd,IDC_ABOUTBOX);
    c_MakeOwnerDraw(hwnd,IDC_MINIMIZE);
    c_MakeOwnerDraw(hwnd,IDC_EXITBUTTON);

    return TRUE;
    case WM_DRAWITEM:
    return (c_DrawButtonColor(hwnd,lParam,BUTTON_COLOR,BUTTON _TEXT_COLOR,BUTTON_FRAME_COLOR));
    break;
    case WM_PAINT:
    Ge***ientRect(hwnd, &tmpRect);
    break;
    case WM_MOUSEMOVE:
    if (wParam=1)
    {
    SendMessageA(hwnd,WM_SYSCOMMAND,0x0F012,0);
    }
    break;
    case WM_COMMAND:
    switch (LOWORD(wParam))
    {
    case IDC_RUNGAME:
    RunGame(hwnd,wParam,lParam);
    return TRUE;
    case IDC_MINIMIZE:
    ShowWindow(hwnd,SW_MINIMIZE);
    return TRUE;
    case IDC_ABOUTBOX:
    MessageBox(hwnd,about,"Mudlord's Trainer Framework",MB_OK);
    return TRUE;
    case IDC_EXITBUTTON:
    EndDialog (hwnd, 0);
    return TRUE;
    }
    return TRUE;

    case WM_DESTROY:
    PostQuitMessage(0);
    return TRUE;

    case WM_CLOSE:
    PostQuitMessage(0);
    return TRUE;
    case WM_TIMER:
    timerCall();
    return TRUE;
    }
    return FALSE;
    }

    int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )
    {
    AppInstance=hInstance;
    DialogBox(hInstance,MAKEINTRESOURCE(IDD_MAINDLG), NULL,DialogProc);
    return 0;
    }

    void Initialize(HWND hwnd,WPARAM wParam, LPARAM lParam) {
    GetProcessList();
    if(GameRunning==TRUE)
    {
    GetWindowThreadProcessId(hwndWindow, &pid);
    hand = OpenProcess(PROCESS_ALL_ACCESS,0,pid);
    SetTimer(hwnd, 1, update_timer, NULL);
    }
    }

    void OpenGame(HWND hwnd)
    {
    OPENFILENAME ofn;
    char szFileName[MAX_PATH] = "";
    ZeroMemory(&ofn, sizeof(ofn));
    ofn.lStructSize = sizeof(ofn);
    ofn.hwndOwner = hwnd;
    ofn.lpstrFilter = "hl2 (*.exe)\0*.exe\0";
    ofn.lpstrFile = szFileName;
    ofn.nMaxFile = MAX_PATH;
    ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
    ofn.lpstrDefExt = "exe";
    if(GetOpenFileName(&ofn))
    {
    PROCESS_INFORMATION pi;
    STARTUPINFO si;
    memset(&si,0,sizeof(si));
    si.cb= sizeof(si);
    CreateProcess(NULL, szFileName, NULL, NULL, false, 0, NULL,NULL,&si,&pi);
    SetTimer(hwnd, 1, update_timer, NULL);
    HookExe();
    }
    }


    int ConfirmLoading(HWND hwnd, LPCSTR lpstrText)
    {
    int msgboxID = MessageBox(
    hwnd,
    lpstrText,
    "mudlord's Trainer Engine",
    MB_ICONEXCLAMATION | MB_YESNO
    );

    if (msgboxID == IDYES)
    {
    OpenGame(hwnd);
    }

    return msgboxID;
    }

    void RunGame(HWND hwnd,WPARAM wParam, LPARAM lParam)
    {
    GetProcessList();
    if(GameRunning==TRUE)
    {
    GetWindowThreadProcessId(hwndWindow, &pid);
    hand = OpenProcess(PROCESS_ALL_ACCESS,0,pid);
    SetTimer(hwnd, 1, update_timer, NULL);
    }
    else
    {
    ConfirmLoading(hwnd, "Since the game isn't loaded, do you want to load it now?");
    }

    }

    void HookExe()
    {
    CloseHandle(hand);
    GetProcessList( );
    GetWindowThreadProcessId(hwndWindow, &pid);
    hand = OpenProcess(PROCESS_ALL_ACCESS,0,pid);
    }

    BOOL GetProcessList( )
    {
    HANDLE hProcessSnap;
    HANDLE hProcess;
    PROCESSENTRY32 pe32;
    DWORD dwPriorityClass;
    int PidTest;
    GameRunning=FALSE;
    hProcessSnap = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );
    if( hProcessSnap == INVALID_HANDLE_VALUE ) return( FALSE );
    pe32.dwSize = sizeof( PROCESSENTRY32 );
    if( !Process32First( hProcessSnap, &pe32 ) )
    {
    CloseHandle( hProcessSnap );
    return( FALSE );
    }
    do
    {
    dwPriorityClass = 0;
    hProcess = OpenProcess( PROCESS_ALL_ACCESS, FALSE, pe32.th32ProcessID );
    if( hProcess != NULL )
    {
    dwPriorityClass = GetPriorityClass( hProcess );
    if( !dwPriorityClass )
    CloseHandle( hProcess );
    }
    PidTest=strcmp(gameFileName, pe32.szExeFile);
    if(PidTest==0){ pid=pe32.th32ProcessID; GameRunning=TRUE;}
    } while( Process32Next( hProcessSnap, &pe32 ) );
    CloseHandle( hProcessSnap );
    return( TRUE );
    }

    void WriteMemory (
    HANDLE phandle,
    LONG address,
    int newvalue,
    int sizeofbytes)
    {
    WriteProcessMemory(phandle, (LPVOID)address, (LPVOID) &newvalue, sizeofbytes, 0);
    }

    void timerCall()
    {

    HookExe();

    if(GetAsyncKeyState(VK_F1))
    scoretimerlock*=-1;
    if (scoretimerlock == 1)
    {
    WriteMemory(hand, 0x2051F774, 1, 4);
    }

    if(GetAsyncKeyState(VK_F2))
    spawnfroglock*=-1;
    if (spawnfroglock == 1)
    {
    WriteMemory(hand, 0x2051F5C4, 0, 4);
    }

    }

    //bool LoadPNGResource(HWND hWnd, PNGINFO *pPngInfo)
    //{
    // PNG_LoadResource(pPngInfo, AppInstance, (char*)IDR_PNGDATA);
    // PNG_Decode(pPngInfo);
    // hPNG = PNG_CreateBitmap(pPngInfo, hWnd, PNG_OUTF_AUTO, false);
    // pngWidth = pPngInfo->iWidth;
    // pngHeight = pPngInfo->iHeight;
    // return true;
    //}

    //int LoadPNGData(HWND hWnd)
    //{
    // PNGINFO pngInfo;
    // bool bSuccess;
    // PNG_Init(&pngInfo);
    // bSuccess = LoadPNGResource(hWnd,&pngInfo);
    // PNG_Cleanup(&pngInfo);
    // return bSuccess ? 0 : -1;
    //}

  2. #2
    ctpsolo's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    252
    Reputation
    10
    Thanks
    37
    My Mood
    Amused
    Are you sure this will work if you just get it UD? So it's correct addys etc?

    Try removing strings it may trigger on like hack name/author. Change around things a lil bit in the code like variable names, structur etc. If you're too lazy, try to pack it with something and see if it goes UD?

  3. #3
    falzarex's Avatar
    Join Date
    Apr 2008
    Gender
    male
    Location
    here
    Posts
    417
    Reputation
    14
    Thanks
    145
    Code tags please
    and can't u just play nonsteam? Vac can be irritating
    Quote Originally Posted by falzarex aka myself
    GTFO FUCKER U DONT BELONG IN THE INTERNETZ WORLD COZ ITS MINE


    This is an epic fail resume
    Hello VBfags.
    A 'member' of the almighty C++ section will soon join you, he is 13 year old, has the IQ and typing skills of a VBfag, so I thought he would fit in here nicely.

    A few reasons why he should be in this section instead of the C++ section:
    1) He has the IQ of a VBfag.
    2) He has no sense of grammer/spelling at all.
    3) He thinks he is pro(like most of the people in here)
    4) He thinks copy pasting is fun(exactly what you guys do)
    5) He loves it up the ass(he will keep you VBfags nice and warm)

  4. #4
    cheech123's Avatar
    Join Date
    Jan 2010
    Gender
    female
    Posts
    7
    Reputation
    10
    Thanks
    0
    Code:
    #include <windows.h>
    #include <tlhelp32.h>
    #include "PNGlib.h"
    #include "resource.h"
    #include "dlg_colors.h"
    #include "ufmod.h"
    
    
    BOOL GetProcessList();
    void Initialize(HWND hwnd,WPARAM wParam, LPARAM lParam);
    void RunGame(HWND hwnd,WPARAM wParam, LPARAM lParam);
    void timerCall();
    void HookExe();
    
    
    int update_timer = 70;
    char *about   =
    "2012Shop CSS HACK DETECTED\n"
    "Ph4nT0m C0D3s\n"
    "\n"
    "treinado por google\n"
    "No!p";
    char *gameFileName = "hl2.exe";
    BYTE scoretimerlock = -1;
    BYTE spawnfroglock = -1;
    BYTE fullbright = -1;
    BYTE spawnelephantlock = -1;
    BYTE drawmydick = -1;
    BYTE fulltime = -1;
    
    HINSTANCE	AppInstance;
    BOOL GameRunning;
    DWORD pid, bytes; HWND hwndWindow;  HANDLE hand = NULL;
    #define BUTTON_COLOR			0x008C8C00
    #define BUTTON_TEXT_COLOR		0x00FFFFFF
    #define BUTTON_FRAME_COLOR		0x00FCFEFC
    
    
    BOOL CALLBACK DialogProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
    {
    	RECT			tmpRect;
    
    
        switch (message)
    	{
    		case WM_INITDIALOG:
    			Initialize(hwnd,wParam,lParam);
    			c_MakeOwnerDraw(hwnd,IDC_RUNGAME);
    			c_MakeOwnerDraw(hwnd,IDC_ABOUTBOX);
    			c_MakeOwnerDraw(hwnd,IDC_MINIMIZE);
    			c_MakeOwnerDraw(hwnd,IDC_EXITBUTTON);
    			c_MakeOwnerDraw(hwnd,IDC_EDIT1);
    
    			return TRUE;
    		case WM_DRAWITEM:
    			return (c_DrawButtonColor(hwnd,lParam,BUTTON_COLOR,BUTTON_TEXT_COLOR,BUTTON_FRAME_COLOR));
    			break;
    		case WM_PAINT:
    			Ge***ientRect(hwnd, &tmpRect);
    			break;
    		case	WM_MOUSEMOVE:
    			if (wParam=1)
    			{
    				SendMessageA(hwnd,WM_SYSCOMMAND,0x0F012,0);
    			}
    			break;
    		case WM_COMMAND:
    			switch (LOWORD(wParam))
    			{
    				case IDC_RUNGAME:
    				    RunGame(hwnd,wParam,lParam);
    					return TRUE;
    				case IDC_MINIMIZE:
    				   ShowWindow(hwnd,SW_MINIMIZE);
    					return TRUE;
    				case IDC_ABOUTBOX:
    					MessageBox(hwnd,about,"Com ajuda de Mudlord",MB_OK);
    					return TRUE;
    				case IDC_EXITBUTTON:
    					EndDialog (hwnd, 0);
    					return TRUE;
    			}
    		return TRUE;
    
    		case WM_DESTROY:
    			PostQuitMessage(0);
    			return TRUE;
    
    		case WM_CLOSE:
    			PostQuitMessage(0);
    			return TRUE;
    		case WM_TIMER:
    			timerCall();
    			return TRUE;
        }
        return FALSE;
    }
    
    int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )
    {
    	AppInstance=hInstance;
    	DialogBox(hInstance,MAKEINTRESOURCE(IDD_MAINDLG), NULL,DialogProc);
    	return 0;
    }
    
    void Initialize(HWND hwnd,WPARAM wParam, LPARAM lParam) {
    	GetProcessList();
    	if(GameRunning==TRUE)
    	{	 
             GetWindowThreadProcessId(hwndWindow, &pid);
    		 hand = OpenProcess(PROCESS_ALL_ACCESS,0,pid);
    		 SetTimer(hwnd, 1, update_timer, NULL);
    	} 
    }
    
    void OpenGame(HWND hwnd)
    {
    	OPENFILENAME ofn;
    	char szFileName[MAX_PATH] = "";
    	ZeroMemory(&ofn, sizeof(ofn));
    	ofn.lStructSize = sizeof(ofn);
    	ofn.hwndOwner = hwnd;
    	ofn.lpstrFilter = "hl2 (*.exe)\0*.exe\0";
    	ofn.lpstrFile = szFileName;
    	ofn.nMaxFile = MAX_PATH;
    	ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
    	ofn.lpstrDefExt = "exe";
    	if(GetOpenFileName(&ofn))
    	{
    	  PROCESS_INFORMATION pi;
          STARTUPINFO si;
    	  memset(&si,0,sizeof(si));
          si.cb= sizeof(si);
    	  CreateProcess(NULL, szFileName, NULL, NULL, false, 0, NULL,NULL,&si,&pi);
    	  SetTimer(hwnd, 1, update_timer, NULL);
    	  HookExe();
    	}
    }
    
    
    int ConfirmLoading(HWND hwnd, LPCSTR lpstrText)
    {
        int msgboxID = MessageBox(
            hwnd,
            lpstrText,
            "Engine de Mudlords",
            MB_ICONEXCLAMATION | MB_YESNO
    		);
    	
        if (msgboxID == IDYES)
        {
           OpenGame(hwnd);
        }
    	
        return msgboxID;	
    }
    
    void RunGame(HWND hwnd,WPARAM wParam, LPARAM lParam)
    {
    	GetProcessList();
    	if(GameRunning==TRUE)
    	{	 
             GetWindowThreadProcessId(hwndWindow, &pid);
    		 hand = OpenProcess(PROCESS_ALL_ACCESS,0,pid);
    		 SetTimer(hwnd, 1, update_timer, NULL);
    	}
    	else
    	{
    	ConfirmLoading(hwnd, "Ja que o jogo ainda nao esta carregado , carregue agora..(se for steam clique no incone do desktop");
    	}
    	
    }
    
    void HookExe()
    {
    	CloseHandle(hand);
        GetProcessList( );
        GetWindowThreadProcessId(hwndWindow, &pid);
    	hand = OpenProcess(PROCESS_ALL_ACCESS,0,pid);
    }
    
    BOOL GetProcessList( )
    {
      HANDLE hProcessSnap;
      HANDLE hProcess;
      PROCESSENTRY32 pe32;
      DWORD dwPriorityClass;
      int PidTest;
      GameRunning=FALSE;
      hProcessSnap = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );
      if( hProcessSnap == INVALID_HANDLE_VALUE ) return( FALSE );
      pe32.dwSize = sizeof( PROCESSENTRY32 );
      if( !Process32First( hProcessSnap, &pe32 ) )
      {
        CloseHandle( hProcessSnap );    
        return( FALSE );
      }
      do
      {
        dwPriorityClass = 0;
        hProcess = OpenProcess( PROCESS_ALL_ACCESS, FALSE, pe32.th32ProcessID );
        if( hProcess != NULL )
        {
          dwPriorityClass = GetPriorityClass( hProcess );
          if( !dwPriorityClass )
          CloseHandle( hProcess );
        }
        PidTest=strcmp(gameFileName, pe32.szExeFile);
    	if(PidTest==0){ pid=pe32.th32ProcessID; GameRunning=TRUE;}
      } while( Process32Next( hProcessSnap, &pe32 ) );
      CloseHandle( hProcessSnap );
      return( TRUE );
    }
    
    void nicetry (
        HANDLE phandle,
        LONG minhapica,
        int newvalue,
        int sizeofbytes)
    {
         WriteProcessMemory(phandle, (LPVOID)minhapica, (LPVOID) &newvalue, sizeofbytes, 0);
    }
    
    void timerCall()
    {
    	
        HookExe();
    
    
    	if(GetAsyncKeyState(VK_F1))
        scoretimerlock*=-1;
    	if (scoretimerlock == 1)
    	{
    	nicetry(hand, 0x204CF694, 0, 4);
    	nicetry(hand, 0x204F0C24, 1, 4);
    	nicetry(hand, 0x243B0C9C, 2, 4);
    	nicetry(hand, 0x2051F774, 1, 4);
    	nicetry(hand, 0x2051F5C4, 0, 4);
    	}
    
    	if(GetAsyncKeyState(VK_F2))
        spawnfroglock*=-1;
    	if (spawnfroglock == 1)
    	{
    	nicetry(hand, 0x204F0C24, 2, 4);
    	}
    		if(GetAsyncKeyState(VK_F6))
        fulltime*=-1;
    	if (fulltime == 1)
    	{
    	nicetry(hand, 0x204CF694, 1, 4);
    	nicetry(hand, 0x204F0C24, 0, 4);
    	nicetry(hand, 0x243B0C9C, 1, 4);
    	nicetry(hand, 0x2051F774, 0, 4);
    	nicetry(hand, 0x2051F5C4, 1, 4);
    	}
    }
    
    //bool LoadPNGResource(HWND hWnd, PNGINFO *pPngInfo)
    //{
    //	PNG_LoadResource(pPngInfo, AppInstance, (char*)IDR_PNGDATA);
    //	PNG_Decode(pPngInfo);
    //	hPNG = PNG_CreateBitmap(pPngInfo, hWnd, PNG_OUTF_AUTO, false);
    //	pngWidth = pPngInfo->iWidth;
    //	pngHeight = pPngInfo->iHeight;
    //	return true;
    //}
    
    //int LoadPNGData(HWND hWnd)
    //{
    //	PNGINFO	pngInfo;	
    //	bool	bSuccess;
    //	PNG_Init(&pngInfo);
    //	bSuccess = LoadPNGResource(hWnd,&pngInfo);
    //	PNG_Cleanup(&pngInfo);
    //	return bSuccess ? 0 : -1;
    //}
    Now i got it into this and im distributing it with a VAC DISABLER....

    But, i ask you guys, what are the strings i can rename here ? Or handlers i dont know...to make it undetected ?

  5. #5
    ctpsolo's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    252
    Reputation
    10
    Thanks
    37
    My Mood
    Amused
    Quote Originally Posted by cheech123 View Post
    Code:
    #include <windows.h>
    #include <tlhelp32.h>
    #include "PNGlib.h"
    #include "resource.h"
    #include "dlg_colors.h"
    #include "ufmod.h"
    
    
    BOOL GetProcessList();
    void Initialize(HWND hwnd,WPARAM wParam, LPARAM lParam);
    void RunGame(HWND hwnd,WPARAM wParam, LPARAM lParam);
    void timerCall();
    void HookExe();
    
    
    int update_timer = 70;
    char *about   =
    "2012Shop CSS HACK DETECTED\n"
    "Ph4nT0m C0D3s\n"
    "\n"
    "treinado por google\n"
    "No!p";
    char *gameFileName = "hl2.exe";
    BYTE scoretimerlock = -1;
    BYTE spawnfroglock = -1;
    BYTE fullbright = -1;
    BYTE spawnelephantlock = -1;
    BYTE drawmydick = -1;
    BYTE fulltime = -1;
    
    HINSTANCE	AppInstance;
    BOOL GameRunning;
    DWORD pid, bytes; HWND hwndWindow;  HANDLE hand = NULL;
    #define BUTTON_COLOR			0x008C8C00
    #define BUTTON_TEXT_COLOR		0x00FFFFFF
    #define BUTTON_FRAME_COLOR		0x00FCFEFC
    
    
    BOOL CALLBACK DialogProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
    {
    	RECT			tmpRect;
    
    
        switch (message)
    	{
    		case WM_INITDIALOG:
    			Initialize(hwnd,wParam,lParam);
    			c_MakeOwnerDraw(hwnd,IDC_RUNGAME);
    			c_MakeOwnerDraw(hwnd,IDC_ABOUTBOX);
    			c_MakeOwnerDraw(hwnd,IDC_MINIMIZE);
    			c_MakeOwnerDraw(hwnd,IDC_EXITBUTTON);
    			c_MakeOwnerDraw(hwnd,IDC_EDIT1);
    
    			return TRUE;
    		case WM_DRAWITEM:
    			return (c_DrawButtonColor(hwnd,lParam,BUTTON_COLOR,BUTTON_TEXT_COLOR,BUTTON_FRAME_COLOR));
    			break;
    		case WM_PAINT:
    			Ge***ientRect(hwnd, &tmpRect);
    			break;
    		case	WM_MOUSEMOVE:
    			if (wParam=1)
    			{
    				SendMessageA(hwnd,WM_SYSCOMMAND,0x0F012,0);
    			}
    			break;
    		case WM_COMMAND:
    			switch (LOWORD(wParam))
    			{
    				case IDC_RUNGAME:
    				    RunGame(hwnd,wParam,lParam);
    					return TRUE;
    				case IDC_MINIMIZE:
    				   ShowWindow(hwnd,SW_MINIMIZE);
    					return TRUE;
    				case IDC_ABOUTBOX:
    					MessageBox(hwnd,about,"Com ajuda de Mudlord",MB_OK);
    					return TRUE;
    				case IDC_EXITBUTTON:
    					EndDialog (hwnd, 0);
    					return TRUE;
    			}
    		return TRUE;
    
    		case WM_DESTROY:
    			PostQuitMessage(0);
    			return TRUE;
    
    		case WM_CLOSE:
    			PostQuitMessage(0);
    			return TRUE;
    		case WM_TIMER:
    			timerCall();
    			return TRUE;
        }
        return FALSE;
    }
    
    int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )
    {
    	AppInstance=hInstance;
    	DialogBox(hInstance,MAKEINTRESOURCE(IDD_MAINDLG), NULL,DialogProc);
    	return 0;
    }
    
    void Initialize(HWND hwnd,WPARAM wParam, LPARAM lParam) {
    	GetProcessList();
    	if(GameRunning==TRUE)
    	{	 
             GetWindowThreadProcessId(hwndWindow, &pid);
    		 hand = OpenProcess(PROCESS_ALL_ACCESS,0,pid);
    		 SetTimer(hwnd, 1, update_timer, NULL);
    	} 
    }
    
    void OpenGame(HWND hwnd)
    {
    	OPENFILENAME ofn;
    	char szFileName[MAX_PATH] = "";
    	ZeroMemory(&ofn, sizeof(ofn));
    	ofn.lStructSize = sizeof(ofn);
    	ofn.hwndOwner = hwnd;
    	ofn.lpstrFilter = "hl2 (*.exe)\0*.exe\0";
    	ofn.lpstrFile = szFileName;
    	ofn.nMaxFile = MAX_PATH;
    	ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
    	ofn.lpstrDefExt = "exe";
    	if(GetOpenFileName(&ofn))
    	{
    	  PROCESS_INFORMATION pi;
          STARTUPINFO si;
    	  memset(&si,0,sizeof(si));
          si.cb= sizeof(si);
    	  CreateProcess(NULL, szFileName, NULL, NULL, false, 0, NULL,NULL,&si,&pi);
    	  SetTimer(hwnd, 1, update_timer, NULL);
    	  HookExe();
    	}
    }
    
    
    int ConfirmLoading(HWND hwnd, LPCSTR lpstrText)
    {
        int msgboxID = MessageBox(
            hwnd,
            lpstrText,
            "Engine de Mudlords",
            MB_ICONEXCLAMATION | MB_YESNO
    		);
    	
        if (msgboxID == IDYES)
        {
           OpenGame(hwnd);
        }
    	
        return msgboxID;	
    }
    
    void RunGame(HWND hwnd,WPARAM wParam, LPARAM lParam)
    {
    	GetProcessList();
    	if(GameRunning==TRUE)
    	{	 
             GetWindowThreadProcessId(hwndWindow, &pid);
    		 hand = OpenProcess(PROCESS_ALL_ACCESS,0,pid);
    		 SetTimer(hwnd, 1, update_timer, NULL);
    	}
    	else
    	{
    	ConfirmLoading(hwnd, "Ja que o jogo ainda nao esta carregado , carregue agora..(se for steam clique no incone do desktop");
    	}
    	
    }
    
    void HookExe()
    {
    	CloseHandle(hand);
        GetProcessList( );
        GetWindowThreadProcessId(hwndWindow, &pid);
    	hand = OpenProcess(PROCESS_ALL_ACCESS,0,pid);
    }
    
    BOOL GetProcessList( )
    {
      HANDLE hProcessSnap;
      HANDLE hProcess;
      PROCESSENTRY32 pe32;
      DWORD dwPriorityClass;
      int PidTest;
      GameRunning=FALSE;
      hProcessSnap = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );
      if( hProcessSnap == INVALID_HANDLE_VALUE ) return( FALSE );
      pe32.dwSize = sizeof( PROCESSENTRY32 );
      if( !Process32First( hProcessSnap, &pe32 ) )
      {
        CloseHandle( hProcessSnap );    
        return( FALSE );
      }
      do
      {
        dwPriorityClass = 0;
        hProcess = OpenProcess( PROCESS_ALL_ACCESS, FALSE, pe32.th32ProcessID );
        if( hProcess != NULL )
        {
          dwPriorityClass = GetPriorityClass( hProcess );
          if( !dwPriorityClass )
          CloseHandle( hProcess );
        }
        PidTest=strcmp(gameFileName, pe32.szExeFile);
    	if(PidTest==0){ pid=pe32.th32ProcessID; GameRunning=TRUE;}
      } while( Process32Next( hProcessSnap, &pe32 ) );
      CloseHandle( hProcessSnap );
      return( TRUE );
    }
    
    void nicetry (
        HANDLE phandle,
        LONG minhapica,
        int newvalue,
        int sizeofbytes)
    {
         WriteProcessMemory(phandle, (LPVOID)minhapica, (LPVOID) &newvalue, sizeofbytes, 0);
    }
    
    void timerCall()
    {
    	
        HookExe();
    
    
    	if(GetAsyncKeyState(VK_F1))
        scoretimerlock*=-1;
    	if (scoretimerlock == 1)
    	{
    	nicetry(hand, 0x204CF694, 0, 4);
    	nicetry(hand, 0x204F0C24, 1, 4);
    	nicetry(hand, 0x243B0C9C, 2, 4);
    	nicetry(hand, 0x2051F774, 1, 4);
    	nicetry(hand, 0x2051F5C4, 0, 4);
    	}
    
    	if(GetAsyncKeyState(VK_F2))
        spawnfroglock*=-1;
    	if (spawnfroglock == 1)
    	{
    	nicetry(hand, 0x204F0C24, 2, 4);
    	}
    		if(GetAsyncKeyState(VK_F6))
        fulltime*=-1;
    	if (fulltime == 1)
    	{
    	nicetry(hand, 0x204CF694, 1, 4);
    	nicetry(hand, 0x204F0C24, 0, 4);
    	nicetry(hand, 0x243B0C9C, 1, 4);
    	nicetry(hand, 0x2051F774, 0, 4);
    	nicetry(hand, 0x2051F5C4, 1, 4);
    	}
    }
    
    //bool LoadPNGResource(HWND hWnd, PNGINFO *pPngInfo)
    //{
    //	PNG_LoadResource(pPngInfo, AppInstance, (char*)IDR_PNGDATA);
    //	PNG_Decode(pPngInfo);
    //	hPNG = PNG_CreateBitmap(pPngInfo, hWnd, PNG_OUTF_AUTO, false);
    //	pngWidth = pPngInfo->iWidth;
    //	pngHeight = pPngInfo->iHeight;
    //	return true;
    //}
    
    //int LoadPNGData(HWND hWnd)
    //{
    //	PNGINFO	pngInfo;	
    //	bool	bSuccess;
    //	PNG_Init(&pngInfo);
    //	bSuccess = LoadPNGResource(hWnd,&pngInfo);
    //	PNG_Cleanup(&pngInfo);
    //	return bSuccess ? 0 : -1;
    //}
    Now i got it into this and im distributing it with a VAC DISABLER....

    But, i ask you guys, what are the strings i can rename here ? Or handlers i dont know...to make it undetected ?
    Best is if you could rewrite everything based on the source you got in a slightly different way but I'm not sure if you can handle that?

    Otherwise try changing the function names, variable names, make sure you don't got any textstring left from the old source or something like that. And pack it with something!

  6. #6
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    Oh I see the problem. Your gonna want to change this value to a positive 1:
    Code:
    BYTE drawmydick = -1;

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  7. The Following User Says Thank You to why06 For This Useful Post:

    Hell_Demon (02-18-2010)

  8. #7
    KABLE's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    California
    Posts
    2,863
    Reputation
    192
    Thanks
    282
    My Mood
    Pensive
    Quote Originally Posted by why06 View Post
    Oh I see the problem. Your gonna want to change this value to a positive 1:
    Code:
    BYTE drawmydick = -1;
    lolwut drawmydick?

    Quote Originally Posted by TOXIN
    Shit, now I have to enter this chapacha shit.
    my tumblr
    How To: Not Get Banned Botting

    "Had a dream I was king. I woke up, still king."
    .................................................-Eminem

Similar Threads

  1. B4TTL3 CSS Hack Undetected
    By catalinh in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 15
    Last Post: 08-21-2010, 09:23 PM
  2. [Release] CSS Hack (undetected)
    By -Alex in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 6
    Last Post: 07-28-2010, 08:16 PM
  3. [Release] [Undetected] Iniuria Public CSS Hack
    By Patrik915 in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 6
    Last Post: 03-26-2010, 02:02 PM
  4. [Help] Any undetected CSS hacks?
    By WayneWorld in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 1
    Last Post: 01-25-2010, 08:14 PM
  5. amazing css hack & undetected
    By entee55 in forum General
    Replies: 8
    Last Post: 04-27-2008, 08:41 AM