Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 18:24

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Help Injector vb.net

Discussion on Help Injector vb.net within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2016
Posts: 10
Received Thanks: 1
Help Injector vb.net

Hello

i made dll injector vb.net
But it works only on 32 bit
doesn't work on 64 bit
so can anyone help me ?

sorry for my bad language



lionwar12 is offline  
Old 04/25/2019, 15:32   #2
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,110
Received Thanks: 538
Windows simply doesn't support mixing 32 and 64 bit code, and if you are using a 32 bit DLL you can only use it within 32 bit processes (same for 64 bit)


warfley is offline  
Thanks
1 User
Old 04/26/2019, 03:18   #3
 
elite*gold: 0
Join Date: Jul 2016
Posts: 10
Received Thanks: 1
This Dll Works on 32 and 64 bro but my injector works only on 32
lionwar12 is offline  
Old 04/26/2019, 21:30   #4
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,110
Received Thanks: 538
Sure the DLL works on 32 and 64 bit Windows, as modern x64 CPU's and operating systems have 32 bit compatibility. But you can not use a 32 bit DLL within an 64 bit process and vice versa.

Are both, your target process and your DLL built for the same architecture? Otherwise there seems to be a bug in your code. Without posting further information, no one can help you


warfley is offline  
Thanks
1 User
Old 04/27/2019, 02:56   #5
 
elite*gold: 0
Join Date: Jul 2016
Posts: 10
Received Thanks: 1
My codes works only on 32bit so i need codes to make new one for 64bit
lionwar12 is offline  
Thanks
1 User
Old 04/27/2019, 17:45   #6
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,110
Received Thanks: 538
Creating a DLL injector is quite easy, so I can only think about a few reasons this might fail:
1. As already said your DLL and Process have incompatible architectures
2. GetProcAddress(LoadLibrary("kernel32"), "LoadLibraryA"); called from a 32 bit process will return the address of the 32 bit variant of LoadLibraryA function, in which case it will fail when injected into a 64 bit process.

What you could do is, to target the second problem:
1. Check the target of your process you like to inject (i.e. if its x64 or x86_64)
2. Call LoadLibrary("C:\Windows\System32\kernel32.dll") on 64 bit and LoadLibrary("C:\Windows\SysWoW64\kernel32.dll") for 32 bit (don't get confused with the names, System32 is the 64 bit directory, while SysWoW64 is the 32 bit directory. Microsoft is just really bad at numbers)
3. call GetProcAddress for the handle you optained in 2
warfley is offline  
Old 04/27/2019, 17:55   #7
 
elite*gold: 1226
Join Date: Apr 2010
Posts: 1,054
Received Thanks: 624
Quote:
Originally Posted by warfley View Post
[...]
What you could do is, to target the second problem:
1. Check the target of your process you like to inject (i.e. if its x64 or x86_64)
2. Call LoadLibrary("C:\Windows\System32\kernel32.dll") on 64 bit and LoadLibrary("C:\Windows\SysWoW64\kernel32.dll") for 32 bit (don't get confused with the names, System32 is the 64 bit directory, while SysWoW64 is the 32 bit directory. Microsoft is just really bad at numbers)
3. call GetProcAddress for the handle you optained in 2
You cannot simply load the correct version of kernel32 depending on the target. If your injector is a 32 bit application, you cannot simply load the 64 bit kernel32.dll and vice versa. You might deploy two injectors and choose one depending on the architecture of the target. The harder approach to really get everything into one application is to write a 32 bit application which breaks the WOW64 emulation layer to also execute 64 bit code, load kernel32 in the 64 bit environment and inject your 64 bit dll in the 64 bit target using that. Deploying two different applications is easier though.

With best regards
Jeoni
Jeoni is offline  
Old 04/27/2019, 18:13   #8
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,110
Received Thanks: 538
Quote:
Originally Posted by Jeoni View Post
You cannot simply load the correct version of kernel32 depending on the target. If your injector is a 32 bit application, you cannot simply load the 64 bit kernel32.dll and vice versa. You might deploy two injectors and choose one depending on the architecture of the target. The harder approach to really get everything into one application is to write a 32 bit application which breaks the WOW64 emulation layer to also execute 64 bit code, load kernel32 in the 64 bit environment and inject your 64 bit dll in the 64 bit target using that. Deploying two different applications is easier though.

With best regards
Jeoni
Ah, i forgott that to optain the address the library has to be loaded into the current process -.-. But he could simply parse the kernel32.dll for the address (similar like objdump or [insert windows alternative here] work), fetch the base address from kernel32.dll and call this one.

Alternatively, he could only write a small program like
Code:
#include<stdio.h>
#include<libloaderapi.h> // windows.h?
int main() 
{ printf("%p", &LoadLibraryA); 
  return 0; }
And compile it for x64 and x86_64 so he only needs to call this program to get the address, while the main functionality could still be in an x86_64 vb program
warfley is offline  
Old 10/26/2019, 22:23   #9
 
elite*gold: 0
Join Date: Feb 2010
Posts: 768
Received Thanks: 499


Mafia67 is offline  
Reply


Similar Threads
setup Net microsoft net Framework sp 3.5 sp1 log all setup Net microsoft net Framewo
11/17/2011 - Rappelz - 0 Replies
setup Net microsoft net Framework sp 3.5 sp1 log all setup Net microsoft net Framework sp 3.5 sp1 log all some proplem this ): here ........ http://www.elitepvpers.com/forum/rappelz/1542117- help-decrypt-client-3.html#post13918381 help @@ PLZ ):
Injector geht net bei Sirosix kein Injector geht. hier Screen!
02/06/2011 - WarRock - 6 Replies
Wennn ich den Hack Sirosix öffne mit dem Injector passiert dies.! Bilder-Upload - Kostenlos Fotos hochladen und ins Netz stellen wieso passiert das? woran liegt es? was soll ich tun?
help help help help help help
06/28/2009 - Say Hello - 0 Replies
how i can dowmload Mangos 6385 ??????????????????????????????????? please give me the limk i can't see that i know it is in www.elitepvpers.com/.../153716-release-mangos-relea ses-blackscorpian-win32-2-4-3-a.html - but give me link sent it to my email plz
HELP INJECTOR DI OMFGZ INJECTOR DI GUMAGANA!
06/23/2009 - Soldier Front Philippines - 2 Replies
PA HELP PO DI PO KASI NAGANA UNG OMFGZ INJECTOR KO D2 SYSTEM ERROR NKA LAGAY.... PLZ REPLY!!!!!!!!! cge na!!!!!!!!!!!!!!!!!!



All times are GMT +1. The time now is 18:24.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2019 elitepvpers All Rights Reserved.