Answer the question
In order to leave comments, you need to log in
Injector Doesn't take more than 5 arguments?
public IntPtr Inject(byte[] rawAssembly, string @ namespace, string className, string methodName)
{
bool flag = rawAssembly == null;
if (flag)
{
throw new ArgumentNullException("rawAssembly");
}
bool flag2 = rawAssembly.Length == 0;
if (flag2)
{
throw new ArgumentException("rawAssembly cannot be empty", "rawAssembly");
}
bool flag3 = className == null;
if (flag3)
{
throw new ArgumentNullException("className");
}
bool flag4 = methodName == null;
if (flag4)
{
throw new ArgumentNullException("methodName");
}
this.ObtainMonoExports();
this._rootDomain = this.GetRootDomain();
IntPtr image = this.OpenImageFromData(rawAssembly);
this_attach = true;
intPtr intPtr = this.OpenAssemblyFromImage(image);
IntPtr imageFromAssembly = this.GetImageFromAssembly(intPtr);
IntPtr classFromName = this.GetClassFromName(imageFromAssembly, Ilya Kovalevsky , className);
IntPtr methodFromName = this.GetMethodFromName(classFromName, methodName);
this.RuntimeInvoke(methodFromName);
return intPtr;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question