Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_pre.php on line 387

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_pre.php on line 387

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 337

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 339

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 341

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 343
My penis is about to fall off!

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Veteran Member deadnesser's Avatar
    Join Date
    Sep 2007
    Posts
    623

    My hand is about to fall off!

    Basically when I play cod my self esteem is too high and I need to lower it
    The result i want is the ss attached
    Completing the task by simply locking the value with a memory searcher is a simple fix but I want it to deliver multiple messages so I can feel even worse.
    My thought process is:
    Get the offset of the char string that displays the You killed message

    Create my own character string

    Replace the offset with the customized char string

    Create a rand int

    If x=1 currenttext = You are a terrible person

    If x=2 currenttext = How did that make you feel?

    etc, etc...

    I feel pretty confident with most of the task yet replacing the killtext with currenttext seems to be quite an issue

    Code:
    #include <windows.h>
    
    bool __stdcall DllMain(HANDLE hModule, DWORD reason, LPVOID lpReserved)
    {
        if(reason == DLL_PROCESS_ATTACH)
        {
        DWORD killtext = 0x0F770248;
        char* currenttext;
    
        *killtext = (unsigned long)currenttext;
        }
        else
            return 0;
    
            return 1;
        }
    }
    Code:
    vcodlol.cpp(11) : error C2100: illegal indirection
    vcodlol.cpp(18) : error C2143: syntax error : missing ';' before '}'
    vcodlol.cpp(18) : error C2143: syntax error : missing ';' before '}'
    vcodlol.cpp(18) : error C2143: syntax error : missing ';' before '}'
    Can someone help me out?
    (Sorry if the title is inappropriate - blame cod physics for that one)

    Solved!
    Code:
    #include <windows.h>
    
    bool __stdcall DllMain(HANDLE hModule, DWORD reason, LPVOID lpReserved)
    {
        if(reason == DLL_PROCESS_ATTACH)
        {
        DWORD killtext = 0x0F770248;
        char* currenttext;
    
        killtext = currenttext[128];
        }
        return 0;
    }
    Attached Images Attached Images
    Quote Originally Posted by siLenCer
    cU is not a cheat-finding service. We will not do the work for you. Everything here has been made easily accessible to the community and if you (the community) aren't willing to do their part in helping themselves then we (cU members/mods/coders/etc.) are not going to be willing to offer much help.
    Quote Originally Posted by Rules
    Do not beg for hacks, you’ll find all the bots you need at our Download Database.

  2. #2
    Site Admin xHalt's Avatar
    Join Date
    May 2006
    Location
    Belgium
    Posts
    8,202

    Re: My penis is about to fall off!

    2 opening brackets, 3 closing... Always keep those 2 numbers equal

  3. #3
    Veteran Member Cory's Avatar
    Join Date
    Jan 2007
    Posts
    2,527

    Re: My penis is about to fall off!

    Please rename the title or get a warning/infraction

    Sorry


    And please don't say you can't, hit the edit button and rename the title.

  4. #4
    Veteran Member deadnesser's Avatar
    Join Date
    Sep 2007
    Posts
    623

    Re: My penis is about to fall off!

    Quote Originally Posted by xHalt View Post
    2 opening brackets, 3 closing... Always keep those 2 numbers equal
    Solved 3 of those errors =p
    Quote Originally Posted by Cory View Post
    Please rename the title or get a warning/infraction
    Sorry
    And please don't say you can't, hit the edit button and rename the title.
    OMG I CAN'T (jk lol) - actually I'm not kidding, when I hit edit I have no option to edit the title of my post (only the subject of it) I tried changing it to hand
    btw problem solved (thanks orgy,attilathedud, and xhalt)
    Quote Originally Posted by siLenCer
    cU is not a cheat-finding service. We will not do the work for you. Everything here has been made easily accessible to the community and if you (the community) aren't willing to do their part in helping themselves then we (cU members/mods/coders/etc.) are not going to be willing to offer much help.
    Quote Originally Posted by Rules
    Do not beg for hacks, you’ll find all the bots you need at our Download Database.

  5. #5
    Veteran Member Cory's Avatar
    Join Date
    Jan 2007
    Posts
    2,527

    Re: My penis is about to fall off!

    Quote Originally Posted by deadnesser View Post
    Solved 3 of those errors =p

    OMG I CAN'T (jk lol) - actually I'm not kidding, when I hit edit I have no option to edit the title of my post (only the subject of it) I tried changing it to hand
    btw problem solved (thanks orgy and attilathedud)
    It's ok then I guess.. xD

    And nice job doing it

  6. #6
    Veteran Member deadnesser's Avatar
    Join Date
    Sep 2007
    Posts
    623

    Re: My penis is about to fall off!

    A new challenger appears!
    Code:
    #include <windows.h>
    #include <time.h>
    
    bool __stdcall DllMain(HANDLE hModule, DWORD reason, LPVOID lpReserved)
    {
        if(reason == DLL_PROCESS_ATTACH)
        {    
            DWORD killtext = 0x0F770248;
            char* currenttext;
            killtext = currenttext[40];
    
            unsigned int x;
            srand (time(NULL));
            x = rand() % 7 + 1;
        
            if (x==1)
            {
                currenttext = "You are a terrible person";
            }
        
            if (x==2)
            {
                currenttext = "How did that make you feel?";
            }
        
            if (x==3)
            {
                currenttext = "Are you proud of what you did?";
            }
        
            if (x==4)
            {
                currenttext = "How do you sleep at night?";
            }
        
            if (x==5)
            {
                currenttext = "Who will explain this to his family?";
            }
        
            if (x==6)
            {
                currenttext = "What stories will he tell his children?";
            }
        
            if (x==7)
            {
                currenttext = "Are you crying as much as his family?";
            }
        }
        else 
        
        return 1;
    }
    Everything injects handy dandy now but the only problem is that my self esteem doesn't lower =[
    (The kill message is not changing at all)
    Quote Originally Posted by siLenCer
    cU is not a cheat-finding service. We will not do the work for you. Everything here has been made easily accessible to the community and if you (the community) aren't willing to do their part in helping themselves then we (cU members/mods/coders/etc.) are not going to be willing to offer much help.
    Quote Originally Posted by Rules
    Do not beg for hacks, you’ll find all the bots you need at our Download Database.

  7. #7
    Semi-Coder ^attilathedud^'s Avatar
    Join Date
    Dec 2007
    Posts
    87

    Re: My penis is about to fall off!

    Because it's only setting the message when the .dll attaches. Create a thread to monitor the current value, and write the correct value. Too tired right now, I'll post up code later. Or ask Orgy.

    And c'mon Cory, it's an awesome title, let him have a little fun.

  8. #8
    Veteran Member deadnesser's Avatar
    Join Date
    Sep 2007
    Posts
    623

    Re: My penis is about to fall off!

    Quote Originally Posted by ^attilathedud^ View Post
    Because it's only setting the message when the .dll attaches. Create a thread to monitor the current value, and write the correct value. Too tired right now, I'll post up code later. Or ask Orgy.

    And c'mon Cory, it's an awesome title, let him have a little fun.
    Orgy says that since the offset is located inside cgame .dll I need to somehow hook that module instead.
    Quote Originally Posted by siLenCer
    cU is not a cheat-finding service. We will not do the work for you. Everything here has been made easily accessible to the community and if you (the community) aren't willing to do their part in helping themselves then we (cU members/mods/coders/etc.) are not going to be willing to offer much help.
    Quote Originally Posted by Rules
    Do not beg for hacks, you’ll find all the bots you need at our Download Database.

  9. #9
    Semi-Coder t00ny's Avatar
    Join Date
    Jan 2008
    Posts
    361

    Re: My penis is about to fall off!

    Hook LoadLibrary :
    Code:
    HMODULE (WINAPI *orig_LoadLibrary)(LPCSTR lpFileName);
    HMODULE WINAPI LoadLibrary_Hook ( LPCSTR lpFileName ) 
    {
        DWORD hPB = (DWORD)GetModuleHandle( lpFileName );
        HMODULE hModule = orig_LoadLibrary( lpFileName );
        if (strstr( lpFileName, "cgame_mp_x86.dll" ))
        {
               Your Hook Stuff...
        }
        
        return hModule;
    }
    Now, just detour to orig_loadlibrary and load the offset from loadlibrary

    Btw, nice title
    “Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest.” - I.A

  10. #10
    Veteran Member deadnesser's Avatar
    Join Date
    Sep 2007
    Posts
    623

    Re: My penis is about to fall off!

    Code:
    #include <windows.h>
    #include <time.h>
    #include <detours.h>
    #include <string.h>
    
    
    void changefunc()
    {
        DWORD killtext = 0x0F770248;
        unsigned int x;
        char* currenttext;
        
        srand (time(NULL));
        x = rand() % 7 + 1;
            
        if (x==1)
        {
            currenttext = "You are a terrible person";
        }
        if (x==2)
        {
            currenttext = "How did that make you feel?";
        }
        if (x==3)
        {
            currenttext = "Are you proud of what you did?";
        }
        if (x==4)
        {
            currenttext = "How do you sleep at night?";
        }
        if (x==5)
        {
            currenttext = "Who will explain this to his family?";
        }
        if (x==6)
        {
            currenttext = "What stories will he tell his children?";
        }
        if (x==7)
        {
            currenttext = "Are you crying as much as his family?";
        }
    //    killtext = currenttext[40];
    //    strcpy (killtext,currenttext);
        
    }    
        
    HMODULE (__stdcall *orig_LoadLibrary)(LPCSTR lpFileName);
    HMODULE __stdcall LoadLibrary_Hook ( LPCSTR lpFileName ) 
    
    {
        HMODULE hModule = orig_LoadLibrary( lpFileName );
    
        if (strstr( lpFileName, "cgame_mp_x86.dll" ))
        {
        changefunc();
        }
        return hModule; 
    }
    
    BOOL __stdcall DllMain( HMODULE hModule, DWORD  reason, LPVOID lpReserved)
    {
        if(reason == DLL_PROCESS_ATTACH)
        {
        orig_LoadLibrary =    (struct HINSTANCE__ *(__stdcall*)(const char*))
        DetourFunction((LPBYTE)LoadLibrary, (LPBYTE) LoadLibrary_Hook);
        }
        else if(reason == DLL_PROCESS_DETACH)
        {
              //dont do anything duh
        }
    
        return TRUE;
    }
    Code:
    //    killtext = currenttext[40];
    //    strcpy (killtext,currenttext);
    If I use the first one it doesn't work
    If I use the second one I get error C2664: 'strcpy' : cannot convert parameter 1 from 'unsigned long' to 'char *'

    Once again I'm unsure how to fix this problem =[
    Quote Originally Posted by siLenCer
    cU is not a cheat-finding service. We will not do the work for you. Everything here has been made easily accessible to the community and if you (the community) aren't willing to do their part in helping themselves then we (cU members/mods/coders/etc.) are not going to be willing to offer much help.
    Quote Originally Posted by Rules
    Do not beg for hacks, you’ll find all the bots you need at our Download Database.

Page 1 of 2 12 LastLast

Similar Threads

  1. Penis D3D [ UNDETECTED ]
    By CruZën in forum Warrock Cheat Downloads
    Replies: 4
    Last Post: August 10th, 2009, 10:32
  2. fall out 3 problem
    By PRIME in forum Other Games
    Replies: 1
    Last Post: February 7th, 2009, 22:28

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •