[Help] Injection

Posts 115 of 16 · Page 1 of 2
[Help] Injection
Hello all, I stumbled upon this site from Google. I saw all your great sources for VB.NET Injection & writing process memory. So, I joined.

But, I have a problem. I've tried all these sources and none work. I just get this:
"X application has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available." And, I get two options. Debug & Close program. There are no errors or anything. I've tried every source I could find in the search results. Tried executables that have DEP both on and off. Both VB & C++ DLL's. Can anyone help me out here, Maybe a source that has been tested, and a noob proof tutorial. Maybe a project file of the injector and a simple DLL? I'm running Vista, 32bit.

I can provide all the sources if needed.

Any help would be greatly appreciated.

Thanks!
Uhh. So what exactly's your problem?
Quote Originally Posted by Invidus View Post
Uhh. So what exactly's your problem?
I was wondering if anyone could help a new guy out. Maybe a link to a detailed tutorial? Or a project file? Anything really would help.
Could you post a screenshot?
+ post your code.
Meh, the issue is C&P , Copy and Pasting the code will do you know real good, especially considering the code in the some of the tutorials here are shifted,

All the codes work fine, I guarantee you just copied hopefordopes code and pasted it in your app , or did the same with my amendment to the code.

Not that I agree with this, I perfer people learn what it is they are doing.. but here is your A-Typical Injector in Open Source Download Format

http://www.mpgh.net/forum/33-visual-...jector-os.html
Quote Originally Posted by NextGen1 View Post
Meh, the issue is C&P , Copy and Pasting the code will do you know real good, especially considering the code in the some of the tutorials here are shifted,

All the codes work fine, I guarantee you just copied hopefordopes code and pasted it in your app , or did the same with my amendment to the code.

Not that I agree with this, I perfer people learn what it is they are doing.. but here is your A-Typical Injector in Open Source Download Format

http://www.mpgh.net/forum/33-visual-...jector-os.html
I've tested it & it did not work. Atleast not without changing anything
Hmmm, even if Unknowns doesn't work, it will get him started, then he can open a thread with a specific question.
NextGen1: Removed, Leeched Code
A, You leeched the code,
/removed for leeching

B. NoOne in here uses vb6

C. The OP is using Vb.net ,

Note; Your VB6 posts are not useful in here, everyone in here is using Vb7 or >
most use VB9 or VB10 , so if you are going to help in this section you should learn vb.net, because that is what everyone is using.
Sorry,i just thought i would help because seeing as he could not make it work in vb.net because its a pain in the ass and it would work in seconds in vb6,oh and btw i never said it was mine,i have this code for years and i posted it on the cheat project forum under zero_kool
I read your edit, no one here can leech projects or code without explicit rights from the coder, when we release something here, we are releasing it for the other members here, the OS code I offered was offered for others to use.

Now for your much deserved PM
Heres the code Converted haven't tested it
Iam sure there better example around
Module
Code:
Option Strict Off
Option Explicit On
Module Module1
	Public Const PROCESS_ALL_ACCESS As Integer = &H1F0FFF
	
	Public Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer
	Public Declare Function FindWindow Lib "USER32"  Alias "FindWindowA"(ByVal Classname As String, ByVal WindowName As String) As Integer
	Public Declare Function GetWindowThreadProcessId Lib "USER32" (ByVal hwnd As Integer, ByRef lpdwProcessId As Integer) As Integer
	Private Declare Function CreateToolhelpSnapshot Lib "kernel32"  Alias "CreateToolhelp32Snapshot"(ByVal lFlags As Integer, ByVal lProcessID As Integer) As Integer
	'UPGRADE_WARNING: Structure PROCESSENTRY32 may require marshalling attributes to be passed as an argument in this Declare statement. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="C429C3A5-5D47-4CD9-8F51-74A1616405DC"'
	Private Declare Function Process32First Lib "kernel32" (ByVal hSnapShot As Integer, ByRef uProcess As PROCESSENTRY32) As Integer
	'UPGRADE_WARNING: Structure PROCESSENTRY32 may require marshalling attributes to be passed as an argument in this Declare statement. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="C429C3A5-5D47-4CD9-8F51-74A1616405DC"'
	Private Declare Function Process32Next Lib "kernel32" (ByVal hSnapShot As Integer, ByRef uProcess As PROCESSENTRY32) As Integer
	Private Declare Sub CloseHandle Lib "kernel32" (ByVal hPass As Integer)
	
	
	Private Structure PROCESSENTRY32
		Dim dwSize As Integer
		Dim cntUsage As Integer
		Dim th32ProcessID As Integer
		Dim th32DefaultHeapID As Integer
		Dim th32ModuleID As Integer
		Dim cntThreads As Integer
		Dim th32ParentProcessID As Integer
		Dim pcPriClassBase As Integer
		Dim dwFlags As Integer
		'UPGRADE_WARNING: Fixed-length string size must fit in the buffer. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="3C1E4426-0B80-443E-B943-0627CD55D48B"'
		<VBFixedString(260),System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValArray,SizeConst:=260)> Public szExeFile() As Char
	End Structure
	
	Public Function GetHProcExe(ByRef strExeName As String) As Integer
		Dim hSnap As Integer
		'Create a snapshot of all of the processes, and information
		'about them (saving the handle so we can iterate through the
		'processes)
		hSnap = CreateToolhelpSnapshot(2, 0)
		
		Dim peProcess As PROCESSENTRY32
		'UPGRADE_ISSUE: LenB function is not supported. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="367764E5-F3F8-4E43-AC3E-7FE0B5E074E2"'
        peProcess.dwSize = System.Runtime.InteropServices.Marshal.SizeOf(peProcess)
		
		Dim nProcess As Integer
		nProcess = Process32First(hSnap, peProcess)
		
		'Loop through the processes until we find the one we want
		'and return its process handle
		Do While nProcess
			If StrComp(Trim(peProcess.szExeFile), strExeName, CompareMethod.Text) = 0 Then
				GetHProcExe = OpenProcess(PROCESS_ALL_ACCESS, False, peProcess.th32ProcessID)
				Exit Function
			End If
			peProcess.szExeFile = vbNullString
			nProcess = Process32Next(hSnap, peProcess)
		Loop 
		CloseHandle(hSnap)
	End Function
	Public Function FindProc(ByRef ProcName As String) As Integer
		Dim hwnd As Integer
		Dim ProcessID As Integer
		Dim ProcessHandle As Integer
		hwnd = FindWindow(vbNullString, ProcName)
		GetWindowThreadProcessId(hwnd, ProcessID)
		ProcessHandle = OpenProcess(PROCESS_ALL_ACCESS, False, ProcessID)
		FindProc = ProcessHandle
	End Function
End Module
Posts 115 of 16 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?