Skip to content

Commit

Permalink
Support for x64
Browse files Browse the repository at this point in the history
  • Loading branch information
EquiFox committed Nov 28, 2017
1 parent 4819b8f commit a539817
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
20 changes: 3 additions & 17 deletions MInjector/Main.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions MInjector/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ private void injectBtn_Click(object sender, EventArgs e)
ClassName = classTxtBox.Text,
MethodName = methodTxtBox.Text,
HideAssemblyLoad = hideAssemblyLoadCheck.Checked,
HideGetAssemblies = hideAssemblyCheck.Checked
};

if (MonoInjector.Inject(printableProcess.InternalProcess, injectionSettings))
Expand All @@ -97,7 +96,6 @@ private void injectBtn_Click(object sender, EventArgs e)
namespaceTxtBox.Text = "";
classTxtBox.Text = "";
methodTxtBox.Text = "";
hideAssemblyCheck.Checked = false;
RefreshMonoProcesses();
}
}
Expand Down
7 changes: 0 additions & 7 deletions MInjector/MonoInjector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ public static bool Inject(Process p_TargetProcess, Settings p_InjectionSettings)
IntPtr classPointer = monoProcess.ClassFromName(assemblyImage, p_InjectionSettings.Namespace, p_InjectionSettings.ClassName);
IntPtr methodPointer = monoProcess.ClassGetMethodFromName(classPointer, p_InjectionSettings.MethodName);

if (p_InjectionSettings.HideGetAssemblies)
{
monoProcess.HideLastAssembly(monoDomain);
}

monoProcess.RuntimeInvoke(methodPointer);

if (p_InjectionSettings.HideAssemblyLoad)
Expand Down Expand Up @@ -61,8 +56,6 @@ public class Settings
public string MethodName { get; set; }

public bool HideAssemblyLoad { get; set; }

public bool HideGetAssemblies { get; set; }
}
}
}

0 comments on commit a539817

Please sign in to comment.