[Guide] Memory Editing - The Basics menu

User Tag List

Page 4 of 7 FirstFirst 1234567 LastLast
Results 46 to 60 of 101
  1. #46
    flo8464's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2009
    Posts
    434
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ramey View Post
    still don't get why you're not just injecting a dll because you're using C++.. but hey.
    Because I am currently coding for Rappelz, a Gameguard protected game.
    As I don't really know how to bypass Gameguard, I wrote a small kernel driver offering the same functionality like ReadProcessMemory/WriteProcessMemory.
    Even if I would manage to inject my DLL and run it, I have no clue how to protect it. I tried to reverse Gameguard and gave up. Gameguard can be nasty.
    Hey, it compiles! Ship it!

    [Guide] Memory Editing - The Basics
  2. #47
    Krillere's Avatar Contributor
    Reputation
    112
    Join Date
    Nov 2007
    Posts
    668
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any chance anyone could help me with this error? :
    Not all privileges or groups referenced are assigned to the caller
    when I attempt to use BlackMagic for anything else than WoW.

  3. #48
    nitrogrlie's Avatar Member
    Reputation
    11
    Join Date
    Oct 2009
    Posts
    81
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you attempting to use it on a 64-bit process? or perhaps a non-userspace launch process? or perhaps a userspace process with a higher privilege?

    No idea what BlackMagic is but above are decent conjectures...

  4. #49
    snigelmannen's Avatar Member
    Reputation
    27
    Join Date
    Jul 2007
    Posts
    318
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Got that too, start Visual Studio with admin rights, and always check debug to x86
    " Spy sappin mah sentry! "

  5. #50
    Krillere's Avatar Contributor
    Reputation
    112
    Join Date
    Nov 2007
    Posts
    668
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I wanted to try it out with Windows 7 Spider Solitaire, a simple read / write point "hack", and i got this error. Even with

    Code:
    BlackMagic^ SS = gcnew BlackMagic();
    SS->SetDebugPrivilegies();

  6. #51
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wtf? C++/CLI? Who the hell does that?

  7. #52
    flo8464's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2009
    Posts
    434
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by lanman92 View Post
    Wtf? C++/CLI? Who the hell does that?
    Someone who needs to use .NET libraries.
    Hey, it compiles! Ship it!

  8. #53
    Krillere's Avatar Contributor
    Reputation
    112
    Join Date
    Nov 2007
    Posts
    668
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok. I made this work:
    Code:
     BlackMagic^ SS = gcnew BlackMagic();
     SS->OpenProcessAndThread( SProcess::GetProcessFromWindowTitle( "Spider Solitaire" ) );
     SS->SetDebugPrivileges;
     SS->WriteByte( 0x0054E708, 501 );
     SS->WriteByte( 0x00558420, 501 );
    I ran Visual Studio as Administrator as someone mentioned earlier, that might have done the trick.

  9. #54
    amadmonk's Avatar Active Member
    Reputation
    124
    Join Date
    Apr 2008
    Posts
    772
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know Cypher will disagree, but C++/CLI is actually pretty spiffy.

    The only real problems I have with it is that it's not always totally clear when you're "managed" and when you're "not" (there are some things you can do in unmanaged code, like some VEH stuff that, FWIK, are simply off limits in managed code). Whenever I tweak my C++/CLI codebase I get bit by that and have to unwind it.

    C++/CLI is a very good way to "hoist" a .Net runtime into an existing process. It saves you a number of steps you have to perform in a pure C++ injection.
    Don't believe everything you think.

  10. #55
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by amadmonk View Post
    I know Cypher will disagree, but C++/CLI is actually pretty spiffy.

    The only real problems I have with it is that it's not always totally clear when you're "managed" and when you're "not" (there are some things you can do in unmanaged code, like some VEH stuff that, FWIK, are simply off limits in managed code). Whenever I tweak my C++/CLI codebase I get bit by that and have to unwind it.

    C++/CLI is a very good way to "hoist" a .Net runtime into an existing process. It saves you a number of steps you have to perform in a pure C++ injection.
    C++/CLI imo is simply a disgusting language. When I use it it just feels like they've taken the worst aspects C++ and .NET and mixed them together.

    I can see the appeal of it in some very limited circumstances, however it's not all that hard to load the CLR manually in native C++. I have not had a single game (including both IA32 and AMD64 ones) where my native C++ CLR loading code has failed.

  11. #56
    amadmonk's Avatar Active Member
    Reputation
    124
    Join Date
    Apr 2008
    Posts
    772
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's been a while since I did it in unmanaged C++ but IIRC, you can't really interact with your loaded code if you hoist the CLR in fully unmanaged code. You just sort of start the runtime and... let it go.

    With C++/CLI you can actually call specific methods in your assembly when native events happen.

    Might just be my ignorance of the hosting API's, but when I tried to actually *interact* with the embedded runtime in pure C++, it failed utterly.
    Don't believe everything you think.

  12. #57
    darrensmith0125's Avatar Member
    Reputation
    18
    Join Date
    Apr 2009
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Krillere View Post
    Not all privileges or groups referenced are assigned to the caller .
    If you are using windows 7 You could try:

    Control Panel->System security->Change user account control settings. Set to Never notify.

  13. #58
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by amadmonk View Post
    It's been a while since I did it in unmanaged C++ but IIRC, you can't really interact with your loaded code if you hoist the CLR in fully unmanaged code. You just sort of start the runtime and... let it go.

    With C++/CLI you can actually call specific methods in your assembly when native events happen.

    Might just be my ignorance of the hosting API's, but when I tried to actually *interact* with the embedded runtime in pure C++, it failed utterly.
    I load the CLR using a domain manager written in C# (Thanks Grey!). This domain manager is exposed to the C++ layer, and the C++ layer exposes APIs and callbacks to the domain manager.

    pCLRControl->SetAppDomainManagerType(DomainMgr.c_str(), DomainMgrType.c_str());

  14. #59
    Kryso's Avatar Active Member
    Reputation
    40
    Join Date
    Jul 2009
    Posts
    97
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by amadmonk View Post
    It's been a while since I did it in unmanaged C++ but IIRC, you can't really interact with your loaded code if you hoist the CLR in fully unmanaged code. You just sort of start the runtime and... let it go.

    With C++/CLI you can actually call specific methods in your assembly when native events happen.

    Might just be my ignorance of the hosting API's, but when I tried to actually *interact* with the embedded runtime in pure C++, it failed utterly.
    You can use interfaces.. it isn't comfortable if you need to interact with a lot of things, but it works

    Code:
            ESCS( pAppDomain->CreateInstance( _bstr_t( "EzMode" ), _bstr_t( "EzMode.Interop.ComObject" ), &pObjectHandle ) );
    
            CComVariant variant;
            ESCS( pObjectHandle->Unwrap( &variant ) );
    
            if ( variant.vt != VT_DISPATCH ) throw std::string( "Variant isn't VT_DISPATCH" );
    
            CComPtr<IDispatch> pDispatch;
            pDispatch = variant.pdispVal;
    
            ESCS( pDispatch->QueryInterface( &pComObject ) );
            pDispatch.Release();
    
            ESCS( pComObject->Initialize() );

  15. #60
    amadmonk's Avatar Active Member
    Reputation
    124
    Join Date
    Apr 2008
    Posts
    772
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    AIEEE! Dispinterfaces? I hate COM with a passion bordering on insanity... I'll take the semantic ugliness of C++/CLI over IUnknown and AddRef/Release any day...

    Still it's interesting to see that you can do it. Right now I just have two native->managed callbacks (endframe and an VEH/DR on event callback); it might be possible to trim down a little bit of code if I could bite the bullet.
    Don't believe everything you think.

Page 4 of 7 FirstFirst 1234567 LastLast

Similar Threads

  1. [video] The basics of Memory editing
    By Vex. in forum WoW Memory Editing
    Replies: 9
    Last Post: 04-10-2008, 10:26 AM
  2. [Guide] Basic Memory Editing in TSearch
    By Dragon[Sky] in forum WoW Memory Editing
    Replies: 2
    Last Post: 12-07-2007, 12:20 AM
  3. [Guide]Basic Memory Editing
    By Dragon[Sky] in forum World of Warcraft Bots and Programs
    Replies: 25
    Last Post: 11-27-2007, 11:47 AM
  4. Request Mac Editing Guide in placing the file, and Gnome Male ---> Undead Male
    By Bourbonkills in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 08-21-2007, 02:05 AM
  5. where is that guide to finding the memory-address which Enables model editing
    By mikesanders in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 07-12-2007, 11:19 PM
All times are GMT -5. The time now is 12:34 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search