Help MPGH (Visual Basic Pro's)

Posts 16 of 6 · Page 1 of 1
Help MPGH (Visual Basic Pro's)
Ok so i am working on my hack and i want to make a loader that will hold the .dll file in it.. then when Combat Arms..or WarRock starts the hack will be injected...
-------------------------
loader that hooks up the HAck (DLL) to the program
so like u have to run the program to GET the dll
Like the DLL's built into the program??
/yea

please help me.... ty
If you post this (move this) to the vb section, you can get more help.

We have numerous tutorials and open source applications to do just this.
you may need some help with auto inject, but when this is moved, you will get it.

Moved to VB section.
Quote Originally Posted by Liz View Post
Moved to VB section.
Faster then I can type

Anyway, again, there are numerous tutorials and open source applications for injectors, if you want to auto inject.



Your Function
Code:
Public Function GameStarted(ByVal ProcessName As String) As Integer
 Try
   Return Process.GetProcessesByName(ProcessName).GetUpperBound(0) + 1
 Catch
   Return 0
 End Try
 
End Function
Then use you function in a timer with a flag

Code:
If GameStarted("Combat Arms") = 1 Then
'YadaYadaYads
' set flag = true
'disable timer

End If
~Standard MSDN code for checking if a process is running, by adding it to a timer, you can check to see if it has "started" then you can use flags to trigger


Quote Originally Posted by NextGen1 View Post


Faster then I can type

Anyway, again, there are numerous tutorials and open source applications for injectors, if you want to auto inject.



Your Function
Code:
Public Function GameStarted(ByVal ProcessName As String) As Integer
 Try
   Return Process.GetProcessesByName(ProcessName).GetUpperBound(0) + 1
 Catch
   Return 0
 End Try
 
End Function
Then use you function in a timer with a flag

Code:
If GameStarted("Combat Arms") = 1 Then
'YadaYadaYads
' set flag = true
'disable timer

End If
~Standard MSDN code for checking if a process is running, by adding it to a timer, you can check to see if it has "started" then you can use flags to trigger


Pretty much the same thing, but minus the Try-Catch
[php]
Private Function GameStarted(ByVal procName As String) As Boolean
If Process.GetProcessesByName(procName)(0).Length > 0 Then
Return True
Else
Return False
End if
End function
[/php]

As for extracting the file to the computer to inject it. Consider the following:

[php]
dim rand As New Random
Dim tmp As String = String.Concat(My.Computer.FileSystem.GetTempfileNa me, Cint(rand.next(1, 58) * 75723), ".dll")
IO.File.WriteAllBytes(tmp, My.Resources.OMGAWESOMEHACK)
'do injection specifying the path as "tmp"
[/php]
Ty for move Liz. But still need some help
Posts 16 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?