Results 1 to 2 of 2
  1. #1
    plusgamer's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0

    C++ hack detection

    Hi

    Guys i am beginner and super noob on c++ hacking so i am glad if some one clear me about my questions .
    Thank you.

    with this code we can detect wieter20 hack.

    Code:
    // checks for hook point of wieter20
    	const char* shouldBe = "\x51\xA1\xBC\x1A\x7E";
    	if (memcmp(shouldBe, (void*)0x586E00, 5))
    	{
    		return 6;
    	}
    pleas someone explain this code for me.

    and my Q2:

    if i have some offsets like this:

    Code:
    GetWeaponSpread..........0x004770F0
    GetRandomSpread..........0x005D51A0
    ChopperBoxes.............0x0059E710
    how i can make new detection like first source i posted?

  2. #2
    xVIRUZx's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    248
    Reputation
    10
    Thanks
    48
    My Mood
    Drunk
    A simple Google can take you there.. According to MSDN, 'memcmp' function will compare the first parameter with the second (in this case it will compare shouldBe's value with 0x586E00's value). The third parameter is the number of characters to compare.

    Returns less than 0 if the first parameter is smaller than the second one; returns 0 if they're both identical; returns bigger than 0 if the first parameter is greater than the second one.

    In this case, this:
    Code:
    if (memcmp(shouldBe, (void*)0x586E00, 5))
    is the same as:
    Code:
    if (memcmp(shouldBe, (void*)0x586E00, 5) == 0)
    Sorry for the late answer.
    Last edited by xVIRUZx; 10-27-2013 at 09:23 AM.
    blah blah blah

Similar Threads

  1. [Detected] MY HACK DETECTED
    By BeskOner in forum WarRock Hack Source Code
    Replies: 2
    Last Post: 01-30-2013, 04:58 AM
  2. [Detected] R3d_L!n3´s Public Hack [ Detected ]
    By moh1995amd in forum Arctic Combat Hacks & Cheats
    Replies: 7
    Last Post: 01-08-2013, 04:03 AM
  3. [Detected] SUPER WEAPON, UAV HACK , NO NAME , NO RECOIL , ALL .DLL HACKS DETECTED
    By ash1m4 in forum Alliance of Valiant Arms (AVA) Discussions
    Replies: 17
    Last Post: 09-25-2012, 02:06 PM
  4. [Detected] Is ZK's Mother Special's Hack Detected?
    By Bryan Mendoza in forum CrossFire PH Discussions
    Replies: 6
    Last Post: 05-19-2012, 06:43 AM
  5. Anti Hack Detection Runnable
    By terryma in forum Gunz General
    Replies: 3
    Last Post: 02-07-2006, 08:10 PM