Results 1 to 10 of 10
  1. #1
    h3llb0y2012's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    17
    Reputation
    10
    Thanks
    2

    xTrap detects my own hack

    I've just made my first hack, which contains only one functionality (seeing ghost).
    When I inject the dll with the injector I get this message:


    idk what's wrong, but here's the code for the hack:
    Code:
    #include<windows.h>
           
           
    
    #define Player	0xBBEA98
    #define ghost1	0x88
    #define ghost2	0x8C
    #define ghost3	0x90
           
       
           
    DWORD WINAPI Hack(LPVOID)
    {
           
    while(1)
    {
    DWORD Chell     = (DWORD)GetModuleHandleA("Chell.dll"); 
    DWORD pPlayer = *(DWORD*)(Chell + Player); 
    if (pPlayer)
    {
    *(float*)(pPlayer + ghost1) = (float)1.0f;
    *(float*)(pPlayer + ghost2) = (float)1.0f;
    *(float*)(pPlayer + ghost3) = (float)1.0f;
    }
           
    Sleep(100); 
    }
    }
           
    bool Check() 
    {
    if(GetModuleHandleA("Chell.dll")!= NULL)
    return 1;
    return 0;
    }
           
    DWORD WINAPI Start(LPVOID)
    {
    while(!Check()) Sleep(200);
    CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hack, NULL, NULL, NULL);
    return 0;
    }
     
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    CreateThread(0,0,(LPTHREAD_START_ROUTINE)Start,0,0,0);
       return 1;
    }
    Please help me ASAP!

  2. #2
    Royce's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    17,967
    Reputation
    4088
    Thanks
    6,418
    The code is probably detected

  3. #3
    h3llb0y2012's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    17
    Reputation
    10
    Thanks
    2
    So? What's the solution for this? How to make it undetected?

  4. #4
    Royce's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    17,967
    Reputation
    4088
    Thanks
    6,418
    To be honest I don't know, you have to ask a coder

  5. #5
    Takari's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Cross Fire Section
    Posts
    11,889
    Reputation
    574
    Thanks
    1,966
    My Mood
    Cool
    Quote Originally Posted by h3llb0y2012 View Post
    So? What's the solution for this? How to make it undetected?
    You need to know C++ .


    Too be honest , I think the thread with the addresses I gave you is outdated .
    Did Z8Games update Cross Fire this week , because they are a week old ?
    Last edited by Takari; 08-28-2012 at 04:48 AM.
    [IMG]https://i1114.photobucke*****m/albums/k538/ImminentJM/takari.png[/IMG]




     
    Goal:
    10,000 Posts - 10/13/2011
    Become Minion - Not Done
    Become Donator - 07/29/2011
    1000 Thanks - Done - 07/25/2011
    2000 Thanks - Not Done
    Thanks Archangel for my 1,000 Thanks.
    Thanks Keroaplt for my Signature.

  6. #6
    Royce's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    17,967
    Reputation
    4088
    Thanks
    6,418
    Quote Originally Posted by Takari View Post


    You need to know C++ .
    Well this ofcouse, where did you get that code from anyways?

  7. #7
    Ryuesi's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    Right here.
    Posts
    7,339
    Reputation
    413
    Thanks
    2,397
    My Mood
    Relaxed
    The code Detected and old
    Learn first C++





    Contributor Since 24-11-2011 ~ 26-12-2011
    VM / PM




  8. #8
    Royce's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Posts
    17,967
    Reputation
    4088
    Thanks
    6,418
    Quote Originally Posted by Jutie View Post
    The code Detected and old
    Learn first C++
    See, so yeah learn c++ and then go to the cf source code section

  9. #9
    Pingo's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    687
    Reputation
    24
    Thanks
    865
    My Mood
    Blah
    Quote Originally Posted by Takari View Post


    You need to know C++ .


    Too be honest , I think the thread with the addresses I gave you is outdated .
    Did Z8Games update Cross Fire this week , because they are a week old ?
    They still look good to me. Unless CF updated this morning.
    Yesterday those were good.

    @h3llb0y2012
    I dont know exactly how its detecting but i can explain alittle from debugging a base i was making.

    If the thread never finishes, xtrap detects it somehow. No idea how, im gonna research this alittle.
    Your loop while(1) keeps the thread from returning and keeping it open so you can write hacks.
    A normal thread will close once all the code is executed otherwise, hense the loop.

    If you remove the loop, you can inject and run code BUT since cshell gets loaded after you inject, any code you have in the thread
    never gets written because you cant write to a module that isnt loaded.

    I'v been messing with a C++ base too so dont feel bad, everyone is in the same boat.

  10. #10
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted
    Don't use DEBUG use RELEASE .. if this doesn't work it's detected

    /Closed.

Similar Threads

  1. [Detected] Detected doop simple hack
    By iambitter in forum CrossFire PH Discussions
    Replies: 9
    Last Post: 05-13-2012, 12:04 AM
  2. [Discussion] How does Xtrap detects a hack and how can i solve it?
    By moathebest in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 1
    Last Post: 01-03-2012, 05:49 AM
  3. i want to make my own hack but...
    By Jeffrey1993 in forum WarRock - International Hacks
    Replies: 11
    Last Post: 06-24-2007, 05:25 PM
  4. I made my own hacks which I will put on, but...
    By 7usabball in forum WarRock - International Hacks
    Replies: 0
    Last Post: 05-03-2007, 04:20 PM
  5. make my own hack?
    By cool4345 in forum WarRock - International Hacks
    Replies: 4
    Last Post: 01-12-2007, 12:29 PM