Results 1 to 6 of 6
  1. #1
    Exquizyth's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    134
    Reputation
    10
    Thanks
    65
    My Mood
    Angelic

    Injector I Need Answer Please :d

    I already finished my multi dll injector.
    On my timer1

    If IO.File.Exists(OpenFileDialog1.FileName) Then
    Dim TargetProcess As Process() = Process.GetProcessesByName(TextBox1.Text)
    If TargetProcess.Length = 0 Then
    Me.Label1.Text = ("Waiting for " + TextBox1.Text + ".exe")

    Else
    Timer1.Stop()
    Me.Label1.Text = "Successfully Injected!"
    Call Inject()
    End If
    Else

    End If
    Problem : I`ve just test my injector the problem is even it injection failed my label1 still says "Successfully Injected!" how to solve this problem?

    -Busted-

  2. #2
    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
    try to open the injector as admin and it will say sucess, and it will really inject..
    Dont open as admin it wil say sucess, but it didn inject..

    I think its normal, Must be executed as admin

  3. #3
    Exquizyth's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    134
    Reputation
    10
    Thanks
    65
    My Mood
    Angelic
    Quote Originally Posted by Lyoto Machida View Post
    try to open the injector as admin and it will say sucess, and it will really inject..
    Dont open as admin it wil say sucess, but it didn inject..

    I think its normal, Must be executed as admin
    I want that feature so user that will use my injector and he/she didnt run as admin then it will say " Injection Failed Run As Admin" like that .is there anyway?
    Last edited by Exquizyth; 06-25-2011 at 12:07 PM.

    -Busted-

  4. #4
    Codemunkie's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    England :D
    Posts
    219
    Reputation
    25
    Thanks
    755
    My Mood
    Bored
    You could try and move the code to change the label underneath your Inject() function in your code. That way if the code catches an error it might not execute the change to the label.

    I'm not sure if VB works this way, but that's how you'd do it in PHP :L
    [IMG]https://i789.photobucke*****m/albums/yy172/Codemunkie/sig-logo.png[/IMG]

  5. #5
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    Now let me get Technical: From what I see this code could be or is the same copy and paste code everyone start's out with. If you are running 64bit windows it will not work.
    Label1.text is told to be "Successfully Injected!" before the Function Injected is called

    And how Will the label know, Your Injection have no Returns so it cant detect what happens inside the Inject Function.
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  6. #6
    wtfiwantthatname's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    260
    Reputation
    10
    Thanks
    39
    My Mood
    Bored
    have your inject function return true if successful and check what inject() returned if true change label.
    "I don't believe in an afterlife, so I don't have to spend my whole life fearing hell, or fearing heaven even more. For whatever the tortures of hell, I think the boredom of heaven would be even worse." - Isaac Asimov