New Load Lib function! with VB!

Posts 1–4 of 4 · Page 1 of 1
New Load Lib function! with VB!
here is a method i used to load a dll that i can look in it with olly
( i used asm method in visual basic 2010 ,.. i only give you the code,.. call it in a timer and your done, no more explenation! )

u need import files :
Code:
Imports System.Reflection
and the function here :
Code:
    Sub LoadLibDll(ByVal FileName As String, ByVal NameS As String, ByVal Func As String, ByVal Param() As Object)
        Try
            Dim ASM As [Assembly] _
              = Assembly.LoadFile(FileName)
            Dim O As Object _
            = ASM.CreateInstance(NameS)
            Dim T As Type _
            = O.GetType()
            Dim MI As MethodInfo _
            = T.GetMethod(Func)
            Dim Result As Object _
            = MI.Invoke(O, Param)
        Catch
            MsgBox("cant load the .dll!")
        End Try
    End Sub
have funn..
Nice @Code[VB] but i dont really use cshell loader
i use undetected ollydbg and open cshell normally with it
then F9 to unpack + analysis

but i don't really understand it because iam not good at VB
if i were you, i would import LoadLibraryA and use it
Nice I like it
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us