I
I
idofficialcontract2020-02-02 11:38:19
JavaScript
idofficialcontract, 2020-02-02 11:38:19

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

1 answer(s)
D
Dima Pautov, 2019-05-13
@bootd

https://www.google.com/search?biw=1920&bih=937&tbm...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question