[C#][Source][Copy/Pasta] Getting started with out of process botting menu

Shout-Out

User Tag List

Page 4 of 4 FirstFirst 1234
Results 46 to 48 of 48
  1. #46
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    209
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So I've been playing around with the Memory and the Native classes and added/changed a few things, however I have an issue - all of the sudden the processhandle is invalid:
    Code:
    public static bool OpenProcessHandle(int processId)
    {
        ProcessId = processId;
        ProcessHandle = OpenProcess(0x000F0000 | 0x00100000 | 0xFFF, false, processId);
        Log.Output("ProcessHandle: {0}", ProcessHandle);
        if (ProcessHandle != IntPtr.Zero)
        {
            Process.EnterDebugMode();
            return true;
        }
        return false;
    }
    in my logwindow I get:
    ProcessHandle: 0

    OpenProcess import:
    Code:
    [DllImport("kernel32.dll"), SuppressUnmanagedCodeSecurity]
    internal static extern IntPtr OpenProcess(uint dwDesiredAccess, bool bInheritHandle, int dwProcessId);
    any ideas?

    [C#][Source][Copy/Pasta] Getting started with out of process botting
  2. #47
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try setting the SeDebugPrivilege BEFORE opening the process.

    If that doesn't help, then get rid of the magic numbers:
    ProcessHandle = OpenProcess(0x000F0000 | 0x00100000 | 0xFFF, false, processId);

    Because I'm much too lazy to try and match the flags to their names and work out what the **** you're doing.

    Enumerations are available for a reason. Use them!

  3. #48
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    209
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post
    Try setting the SeDebugPrivilege BEFORE opening the process.

    If that doesn't help, then get rid of the magic numbers:
    ProcessHandle = OpenProcess(0x000F0000 | 0x00100000 | 0xFFF, false, processId);

    Because I'm much too lazy to try and match the flags to their names and work out what the **** you're doing.

    Enumerations are available for a reason. Use them!
    Doh thanks, that worked

Page 4 of 4 FirstFirst 1234

Similar Threads

  1. Getting started with pathing?
    By miceiken in forum WoW Memory Editing
    Replies: 9
    Last Post: 01-08-2011, 05:41 AM
  2. Getting started with c++
    By EnergyForce in forum Programming
    Replies: 2
    Last Post: 12-07-2010, 07:38 PM
  3. [C++][Source] How to get started
    By Flowerew in forum WoW Memory Editing
    Replies: 16
    Last Post: 01-28-2010, 03:03 AM
  4. [Need Help] get started with C#
    By 96engvall in forum Programming
    Replies: 6
    Last Post: 07-22-2009, 10:09 PM
  5. [Question] Getting started with modelediting?
    By Ezelaap in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 04-03-2009, 12:37 PM
All times are GMT -5. The time now is 07:09 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search