Results 1 to 5 of 5
  1. #1
    infidel_'s Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    blah
    Posts
    184
    Reputation
    10
    Thanks
    138
    My Mood
    Twisted

    Vb.net attach to PID instead of ProcessName

    Hello,

    I have successfully created a project that attached to a Process and reads/writes to its memory address.
    Pointers isnt my concern as I have that covered.

    My problem is that, I wanted to run 2 instances of the same Game but my Application only reads the "newer" instance of the game.
    For example:
    Lets say, My app name is Bot1. Game Name is Game1, Game2.

    I started Bot1.
    Started Game1.
    Bot1 reads the information I needed from Game1.
    Started Game2.
    Now, Bot1 reads the information from Game2 instead of Game1.

    So, my solution in my mind would be to read Game Memory using the Game's PID instead of ProcessName.
    In this way I can control which Game Process my Bot1 will attach to. And of course, I can run another instance of Bot1 to read Game2's process.

    Any help?
    Solution?

    For easier to understand, refer to the image below.
    This bot is from battle of Immortals, see the "multi-client selection" option below? That is what I wanted to achieve.
    Please help.



    - - - Updated - - -

    Update:
    Here's the code in Button to get the process name & its corresponding Process ID.
    Code:
        Private Sub btnGetProcess_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetProcess.Click
            lstProcess.Items.Clear()
            Dim psList() As Process
            Try
                psList = Process.GetProcessesByName("Notepad")
    
                For Each p As Process In psList
                    lstProcess.Items.Add("ID:" + p.Id.ToString() + " , " + p.ProcessName)
                Next p
    
            Catch ex As Exception
            End Try
        End Sub
    Now, my problem is how to Attach my Application to the selected "Process".

  2. #2
    greyb1t's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Posts
    63
    Reputation
    10
    Thanks
    91
    My Mood
    Bored
    Well, lol.
    If you cannot attach a process by pid instead of the name, how much of the current code did you copy and paste?

    Take a look at OpenProcess: https://msdn.microsof*****m/en-us/lib...(v=vs.85).aspx
    Last edited by greyb1t; 12-22-2015 at 08:07 AM.

  3. #3
    infidel_'s Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    blah
    Posts
    184
    Reputation
    10
    Thanks
    138
    My Mood
    Twisted
    Ah Im using the open sourced Memory reader from here.

  4. #4
    greyb1t's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Posts
    63
    Reputation
    10
    Thanks
    91
    My Mood
    Bored
    Quote Originally Posted by infidel_ View Post
    Ah Im using the open sourced Memory reader from here.
    Well, as a challenge then..
    Go ahead and try to write your own memory class to improve your understanding of the language and other stuff.
    Then you'll be able to fix your problem.

  5. #5
    infidel_'s Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    blah
    Posts
    184
    Reputation
    10
    Thanks
    138
    My Mood
    Twisted
    I am trying atm and I need someone to guide me to it. That is why I posted this thread.

Similar Threads

  1. Replies: 1
    Last Post: 11-08-2011, 03:22 AM
  2. [Question] Attaching a VB.NET program to another program.
    By Jason in forum Visual Basic Programming
    Replies: 11
    Last Post: 05-27-2010, 08:50 AM
  3. Me r MAD.. GONNA DDOS WarRock.net :)
    By System79 in forum WarRock - International Hacks
    Replies: 14
    Last Post: 06-19-2006, 05:06 PM
  4. Attachable/Sendable Keyloggers
    By wardo1926 in forum General Game Hacking
    Replies: 36
    Last Post: 02-07-2006, 01:43 PM
  5. Gangsterhood.net
    By supatanka in forum Hack Requests
    Replies: 0
    Last Post: 01-22-2006, 01:42 PM