Results 1 to 7 of 7
  1. #1
    hack2learn's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    My Mood
    Fine

    Question How to make injector auto closed when dll successfully injected?

    Yesterday i create my first dll injector based on a tutorial i got from youtube using vb express 2008... However, the program seems only featured with auto injection when an executable run... What i'm asking here for help is just like the title of this post and what is the code for that, and where to place the code on my project in vb express 2008... Thanks for all attention and long live mpgh.net...

  2. #2
    T0P-CENT's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    88
    Reputation
    14
    Thanks
    17
    My Mood
    Stressed
    instead of a button to call injection method
    add it to a timer the timer checks the process if it is working then it calls the injector method

  3. The Following User Says Thank You to T0P-CENT For This Useful Post:

    hack2learn (05-21-2011)

  4. #3
    hack2learn's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    My Mood
    Fine
    I think i already solved my own question... At the of "Public Class" before "End Sub", there is a line tells "Me.Show"... So i change it to "Me.Close"...

  5. #4
    Accelerate''s Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    21
    Reputation
    10
    Thanks
    1
    My Mood
    Relaxed
    Quote Originally Posted by hack2learn View Post
    I think i already solved my own question... At the of "Public Class" before "End Sub", there is a line tells "Me.Show"... So i change it to "Me.Close"...
    no..... on the part where you declare what happens after it injects just add this:
    Code:
    End
    now, that was not hard, was it?

  6. #5
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    Dim Proc As Process = Process.GetProcessByName("YourGame.exe");

    if Proc.Length > 0 Then
    Me.Close()
    End if


    Or something like that

  7. #6
    hack2learn's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    My Mood
    Fine
    Quote Originally Posted by Accelerate' View Post
    no..... on the part where you declare what happens after it injects just add this:
    Code:
    End
    now, that was not hard, was it?
    But actually it work the way i do... thanks for your reply anyway...

  8. #7
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    You should never use "End" for regular application closing, there are very few cases where you should use End at all. End doesn't allow your form to clean itself up properly, doesn't trigger the form closing events etc, it does exactly what its description says: Halts execution and forces the process to exit straight away. Use Application.Exit or Me.Close.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

Tags for this Thread