Test Foro de elhacker.net SMF 2.1

Programación => .NET (C#, VB.NET, ASP) => Programación General => Programación Visual Basic => Mensaje iniciado por: ntaryl en 9 Julio 2008, 15:43 PM

Título: Api hooking with dll injection
Publicado por: ntaryl en 9 Julio 2008, 15:43 PM
Good  afternoon 
Big  sorry  i  dont know  spanish but  greek and english 
Iam a coder in  vbasic 6.0 and  this time  play around with api hooking 
I able to hook api localy  but  i cant do it 100% with dll  injection 
RM_code have a  good example (code injection and remote api hooking)
want to use dll injection to  do this .
please  if  someone  know  something to  help  me   
welcome   
thanks  a  lot   

Título: Re: Api hooking with dll injection
Publicado por: cobein en 9 Julio 2008, 17:43 PM
I think you first need to be really familiar with DLL injection in VB,  it is not and easy task due VB limitations but is totally possible, I sugest you to check PSC for LaVolpes's Desktop Icon Tweaks, and some samples from Alex Ionescu, both of them using injection. Also if you want you can search in here, I did some samples a while ago.
Título: Re: Api hooking with dll injection
Publicado por: ntaryl en 9 Julio 2008, 22:25 PM
Thanks  for the reply  my  friend 
I  know to inject a dll  and use vbadvance to success it 
U can help  me  about  this sample
i  cant  find  it   
thanks 
Título: Re: Api hooking with dll injection
Publicado por: cobein en 9 Julio 2008, 22:38 PM
There you go, the first link is LaVolpe's one, its pretty interesting and a good guide, I think he wrote some basic explanations about how to create the libraries and in this particular example he is using SetWindowsHookEx to acomplish the injection task, if you follow that structure you will not have any probs. 

http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=65301&lngWId=1

http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=45195&lngWId=1
Título: Re: Api hooking with dll injection
Publicado por: ntaryl en 10 Julio 2008, 19:38 PM
thanks  bro 

P.s why  not this  forum come in english   ?
\cya   
Título: Re: Api hooking with dll injection
Publicado por: cobein en 10 Julio 2008, 22:01 PM
Well basically because the forum is from Spain and dedicated to spanish talking ppl, besides Spanish is as popular as English. But there's no rule about language as far as I know, so you can keep posting in English and maybe ask someone to help you translate it to spanish (just to be fair to everyone).