Quasar icon indicating copy to clipboard operation
Quasar copied to clipboard

Execute into memory using reflection

Open moody2000 opened this issue 7 years ago • 8 comments

Hey , i wondering why cant load client bytes directly in memory using reflection and entrypoint

moody2000 avatar Apr 27 '17 11:04 moody2000

Executing the built client binary in memory should work without problems if that's what you mean.

MaxXor avatar May 01 '17 19:05 MaxXor

i used this code to load AppDomain.CurrentDomain.Load(byt).EntryPoint.Invoke(Nothing, New Object() {}) and got this error

An unhandled exception of type 'System.Reflection.TargetParameterCountException' occurred in mscorlib.dll Additional information: Parameter count mismatch.

moody2000 avatar May 02 '17 07:05 moody2000

Oslo tried many others methods to load but got the same error

moody2000 avatar May 02 '17 07:05 moody2000

Without knowing the context of your situation, I suggest looking this up on Google instead. Some good looking search results come up when searching for your solution.

yankejustin avatar May 02 '17 12:05 yankejustin

despite my error differ from this thread error i will try it and feedback

moody2000 avatar May 03 '17 21:05 moody2000

sorry for annoying you but still not working with reflection Dim args As [Object]() = New [Object](0) {} args(0) = New [String](-1) {} AppDomain.CurrentDomain.Load(byt).EntryPoint.Invoke(Nothing, args) this the code i used

moody2000 avatar May 03 '17 22:05 moody2000

Dim looks like VB.NET, not C#

EnricoVogt avatar May 04 '17 09:05 EnricoVogt

AppDomain.CurrentDomain.Load(byt).EntryPoint.Invoke(Nothing, Nothing)

ghost avatar Dec 18 '18 03:12 ghost