Results 1 to 3 of 3
  1. #1
    donpusher's Avatar
    Join Date
    Sep 2017
    Gender
    male
    Location
    Taiwan
    Posts
    17
    Reputation
    10
    Thanks
    188

    About "Pattern Scanner UAV project"

    I try to make a include pattern scanner UAV project
    This project successfully build. but when i injector the AVA.exe will crash. i don't know how can fixed this problem.

    Code:
    #include <Windows.h>
    #include <stdio.h>
    #include <string>
    
    #ifndef _PSAPI_H_
    #include <Psapi.h>
    #pragma comment(lib, "psapi.lib")
    #endif
    
    #define GOP	"\x00\x00\x00\x00\x0E\x42"
    #define GOM	"xxxxxx"
    #define GOO	0x2
    
    #define GNP	"\x80\xBB\xB7\x27\x00\x00\x09\x41\x9E"
    #define GNM	"xxxxxxxxx"
    #define GNO	0x4
    
    /*
    # ========================================================================================= #
    # Environment
    # ========================================================================================= #
    */
    
    MODULEINFO GetModuleInfo(LPCSTR lpModuleName)
    {
    	MODULEINFO modinfo = { 0 };
    	GetModuleInformation(GetCurrentProcess(), GetModuleHandle(lpModuleName), &modinfo, (sizeof modinfo));
    	return modinfo;
    }
    
    /*
    # ========================================================================================= #
    # PatternScan
    # ========================================================================================= #
    */
    
    bool Compare(const BYTE *pData, const BYTE *bMask, const char *szMask)
    {
    	for (; *szMask; ++szMask, ++pData, ++bMask)
    		if (*szMask == 'x' && *pData != *bMask) return false;
    	return (*szMask == 0);
    }
    
    DWORD FindPattern(LPCSTR lpModuleName, char *bMask, char *szMask)
    {
    	MODULEINFO modinfo = GetModuleInfo(lpModuleName);
    	DWORD dwBase = (DWORD)modinfo.lpBaseOfDll;
    	DWORD dwSize = (DWORD)modinfo.SizeOfImage;
    
    	for (DWORD i = 0; i < dwSize; i++)
    		if (Compare((BYTE*)dwBase + i, (BYTE*)bMask, szMask))
    			return dwBase + i;
    }
    
    
    
    
    Pattern Scan GNames : 
    	static TArray< FNameEntry* >* Names() 
    	{ 
    		static DWORD GNA = NULL;
    
    		if (!GNA )
    			GNA = *(DWORD*)(FindPattern("ava.exe", GNP, GNM) + GNO);
    	
    		return (TArray< FNameEntry* >*) GNA ; 
    	};
    Last edited by donpusher; 12-29-2017 at 09:17 PM. Reason: Nope

  2. #2
    Jabberwock's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    1,735
    Reputation
    191
    Thanks
    15,701
    My Mood
    Relaxed
    You don't have any checks to see if the game's exe module has been initialized. Also you forgot to check against NULLs
    Even familiar landscapes will
    reveal a different kind of beauty
    if you change your viewpoint.
    Where these new encounters
    and new bonds will lead you...
    Such dazzling golden days.
    I, too, look forward to
    what I might behold.

  3. #3
    donpusher's Avatar
    Join Date
    Sep 2017
    Gender
    male
    Location
    Taiwan
    Posts
    17
    Reputation
    10
    Thanks
    188
    Quote Originally Posted by Jabberwock View Post
    You don't have any checks to see if the game's exe module has been initialized. Also you forgot to check against NULLs
    Sir, thanks for tips.
    i've been completed

Similar Threads

  1. [Source Code] CS Go Pattern Scanner / My First Project / Test !
    By Monstercaat in forum Counter-Strike 2 Coding & Resources
    Replies: 17
    Last Post: 07-31-2015, 06:08 PM
  2. [Release] Pattern Scanner... :)
    By MarkHC in forum Call of Duty Modern Warfare 3 Coding, Programming & Source Code
    Replies: 30
    Last Post: 12-14-2012, 11:57 AM
  3. [Release] AlterOps External Hack 1.8.1 [With Pattern Scanner]
    By fatjoe2015 in forum Call of Duty 7 - Black Ops Hacks & Cheats
    Replies: 163
    Last Post: 04-02-2012, 02:11 PM
  4. [Source Code] Simple Pattern Scanner
    By Edlmann in forum Call of Duty Black Ops Coding, Programming & Source Code
    Replies: 11
    Last Post: 04-05-2011, 11:15 AM
  5. Errors about a process in C++ Project
    By luckie12 in forum C++/C Programming
    Replies: 1
    Last Post: 04-05-2010, 06:52 AM