Results 1 to 15 of 20

Threaded View

  1. #15
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,750
    Reputation
    66
    Thanks
    14,533
    My Mood
    Angelic
    I'd much rather do syscalls directly instead of calling wrappers which are most of the time hooked by Anti-Cheats. If you look at the exported Nt_____ functions on ntdll.dll it should be pretty obvious what you should do.

    Example: Instead of calling VirtualAlloc(Ex) you can do this and call it instead:

    Code:
    __declspec( naked )
    NTSTATUS NtAllocateVirtualMemory( HANDLE ProcessHandle, PVOID *BaseAddress, ULONG ZeroBits, PULONG AllocationSize, ULONG AllocationType, ULONG Protect ) {
    	__asm
    	{
    		MOV EAX, 0x17;
    		CALL fs : [0xC0];
    		RETN 0x18;
    	}
    }
    
    
    //somewhere...
    if( NT_ERROR( NtAllocateVirtualMemory( 
    			GetCurrentProcess(), 
    			&m_pBuffer, 
    			NULL,
    			&dwSize,
    			MEM_COMMIT | MEM_RESERVE,
    			PAGE_READWRITE ) ) ) {
    	throw Exceptions::MemoryAllocationException( "Unable to alocate memory for the image" );
    }
    Last edited by MarkHC; 07-19-2015 at 09:35 PM.


    CoD Minion from 09/19/2012 to 01/10/2013

Similar Threads

  1. [HELP] How do I inject(???) the mods into CA?
    By ripper639 in forum Combat Arms Mods & Rez Modding
    Replies: 11
    Last Post: 04-10-2010, 05:58 PM
  2. Code for Injector; Importing DLL into Listbox
    By Invidus in forum Visual Basic Programming
    Replies: 5
    Last Post: 02-20-2010, 01:43 PM
  3. How to do OPK + Code Cave with a debugger and C++
    By radnomguywfq3 in forum C++/C Programming
    Replies: 4
    Last Post: 12-08-2009, 12:00 PM
  4. [Tutorial(C++)]How to call functions within another process
    By radnomguywfq3 in forum Programming Tutorials
    Replies: 4
    Last Post: 07-08-2008, 07:33 PM
  5. [REQUEST] Code Cave Tut
    By HeXel in forum WarRock - International Hacks
    Replies: 10
    Last Post: 02-16-2008, 01:36 AM

Tags for this Thread