Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Syringe;
- using System;
- using System.Diagnostics;
- using System.Windows.Forms;
- namespace Inject
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Trying to inject dll into client.exe");
- try
- {
- using (Injector syringe = new Injector(Process.GetProcessesByName("client")[0]))
- {
- syringe.InjectLibrary( "C:\\Users\\Felipe\\Desktop\\mydll\\Debug\\mydll.dll" );
- Console.WriteLine("inject.exe injected into client, trying to call void dummy() with no parameters");
- syringe.CallExport( "C:\\Users\\Felipe\\Desktop\\mydll\\Debug\\mydll.dll", "dummy" );
- Application.Run();
- }
- }
- catch (Exception e)
- {
- MessageBox.Show( e.Message );
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment