Thread: Basic Help need

Results 1 to 9 of 9
  1. #1
    rabir007's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Behind you...
    Posts
    2,323
    Reputation
    148
    Thanks
    1,925
    My Mood
    Bored

    Basic Help need

    I'm new at Visual C++
    So i want to find the idiot CShell:

    Code:
    DWORD FindCShell( )
    {
        if( EnumProcessModules(hProcess, hMods, sizeof(hMods), &cbNeeded))
        {
            for (int i = 0; i < (cbNeeded / sizeof(HMODULE)); i++ )
            {
                TCHAR szModName[MAX_PATH];
                // Get the full path to the module's file.
                if ( GetModuleFileNameEx( hProcess, hMods[i], szModName, sizeof(szModName) / sizeof(TCHAR)) != NULL)
                {
                    std::string ModuleName;
                    TcharToString(ModuleName,szModName);
                    if ( EndWith(ModuleName, "CShell.dll")) return (DWORD)hMods[i];
                }
            }
        }
        return 0;
    }
    But i got this error:
    Code:
    error LNK2001: unresolved external symbol _EnumProcessModules@16
    error LNK2001: unresolved external symbol _GetModuleFileNameExW@16
    Anyone would help me, how to fix it ?







  2. #2
    3D's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    In The World :P
    Posts
    1,007
    Reputation
    134
    Thanks
    14,169
    My Mood
    Amazed
    Try to ask pingo ...

  3. #3
    ctpsolo's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    252
    Reputation
    10
    Thanks
    37
    My Mood
    Amused
    Make sure you include Psapi.h and also the lib

    Like this

    Code:
    #include<Psapi.h>
    #pragma comment(lib, "Psapi")
    Also why make it so complicated for yourself? If you want to do dump cshell just load cshell using LoadLibrary and attach olly to your program. If you need a handle to cshell for your hack you can also use the regular way. For instance

    Code:
    DWORD Cshell = (DWORD)GetModuleHandleA("Cshell.dll");
    However you need to encrypt the cshell string. "Cshell.dll" will trigger xtrap detection.
    They're out ta get me!

    Persistence is an art in itself. Let them slam each door in your face, even reject the whole definition of who you are. There will be a day when they come knocking on your door instead.

  4. #4
    rabir007's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Behind you...
    Posts
    2,323
    Reputation
    148
    Thanks
    1,925
    My Mood
    Bored
    Quote Originally Posted by ctpsolo View Post
    Make sure you include Psapi.h and also the lib

    Like this

    Code:
    #include<Psapi.h>
    #pragma comment(lib, "Psapi")
    Also why make it so complicated for yourself? If you want to do dump cshell just load cshell using LoadLibrary and attach olly to your program. If you need a handle to cshell for your hack you can also use the regular way. For instance

    Code:
    DWORD Cshell = (DWORD)GetModuleHandleA("Cshell.dll");
    However you need to encrypt the cshell string. "Cshell.dll" will trigger xtrap detection.
    So, thats why the idiot Xtrap detect... I thought its detect the GetModuleHandle...







  5. #5
    bandi12's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    562
    Reputation
    30
    Thanks
    318
    My Mood
    Yeehaw
    Quote Originally Posted by rabir007 View Post
    I'm new at Visual C++
    So i want to find the idiot CShell:

    Code:
    DWORD FindCShell( )
    {
        if( EnumProcessModules(hProcess, hMods, sizeof(hMods), &cbNeeded))
        {
            for (int i = 0; i < (cbNeeded / sizeof(HMODULE)); i++ )
            {
                TCHAR szModName[MAX_PATH];
                // Get the full path to the module's file.
                if ( GetModuleFileNameEx( hProcess, hMods[i], szModName, sizeof(szModName) / sizeof(TCHAR)) != NULL)
                {
                    std::string ModuleName;
                    TcharToString(ModuleName,szModName);
                    if ( EndWith(ModuleName, "CShell.dll")) return (DWORD)hMods[i];
                }
            }
        }
        return 0;
    }
    But i got this error:
    Code:
    error LNK2001: unresolved external symbol _EnumProcessModules@16
    error LNK2001: unresolved external symbol _GetModuleFileNameExW@16
    Anyone would help me, how to fix it ?
    it will be detected
     




    MY Latest Aimbot on : Orbital Space (Video Comming Soon)'





     

    - @UltraPGNoob
    - @dicky88smd
    - @giniyat101

  6. #6
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    add psapi.lib to your linked libraries :
    #pragma comment(lib, "psapi.lib")
    also, use #define PSAPI_VERSION 1 before including psapi.h.


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

  7. #7
    rabir007's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Behind you...
    Posts
    2,323
    Reputation
    148
    Thanks
    1,925
    My Mood
    Bored
    Quote Originally Posted by bandi12 View Post
    it will be detected
    I fixed with encrypting the "CShell.dll"


    ---------- Post added at 08:48 PM ---------- Previous post was at 08:47 PM ----------

    Quote Originally Posted by giniyat101 View Post
    add psapi.lib to your linked libraries :
    #pragma comment(lib, "psapi.lib")
    also, use #define PSAPI_VERSION 1 before including psapi.h.
    I fixed the GetModuleHandle







  8. #8
    Arcton's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    SomeWhere In Your Heart
    Posts
    2,108
    Reputation
    194
    Thanks
    2,631
    My Mood
    Stressed
    So, is this fixed ?

  9. #9
    rabir007's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Behind you...
    Posts
    2,323
    Reputation
    148
    Thanks
    1,925
    My Mood
    Bored
    Quote Originally Posted by Arcton View Post
    So, is this fixed ?
    Yep...
    /msg2short







Similar Threads

  1. [Help Request] Please Help ME! Basic Questions need to be answered!
    By imcol1223 in forum Call of Duty Modern Warfare 3 Help
    Replies: 0
    Last Post: 02-16-2012, 03:04 PM
  2. [HELP] need help finding my old nametags visual basics source code...
    By ken53406 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 10
    Last Post: 09-23-2010, 03:27 PM
  3. ***VISUAL BASIC 6 NEED HELP PLEASE
    By HustlaOwnz in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 7
    Last Post: 07-24-2010, 11:14 PM
  4. Replies: 14
    Last Post: 04-09-2010, 06:32 PM
  5. Basic hacks and downloading hack help needed
    By micah344 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 05-25-2007, 12:20 PM