Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 03:50

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



C# Injecting Unmanaged Export with Syringe

Discussion on C# Injecting Unmanaged Export with Syringe within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2011
Posts: 18
Received Thanks: 0
C# Injecting Unmanaged Export with Syringe

Hello guys, I'm having a trouble with injecting unmanaged export.


It is my unmanaged export (Test.dll) code:

Code:
using System;
using System.Threading;

using System.Windows.Forms;
using RGiesecke.DllExport;

namespace Test
{
    internal static class UnmanagedExports
    {
        [DllExport("dll_main", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
        static void dll_main()
        {

            new Thread(() => Application.Run(new MainForm())).Start();
        } 
    }
}
And it is my injection code with Syringe library:

Code:
          try
            {
                using (Injector syringe = new Injector(Process.GetProcessesByName("notepad")[0]))
                {
                    syringe.InjectLibrary("Test.dll");

                    syringe.CallExport("Test.dll", "dll_main");
                }
               
                
            }

            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
When i execute my code it gives an error in here : syringe.CallExport("Test.dll", "dll_main");


It is : "The specified procedure could not be found"


Project Version: .Net Framework 2.0
DLL Version : .Net Framework 2.0
falchonn is offline  
Old 09/08/2015, 18:23   #2


 
elite*gold: 1091
Join Date: Jun 2007
Posts: 19,836
Received Thanks: 7,180

Quote:
- You have to set your platform target to either x86, ia64 or x64. AnyCPU assemblies cannot export functions.
Have you followed that hint? I'm asking this because you obviously did not read the hints given by the DllExport package dev since you specified the calling convention and method name instead of just flagging the method with [DllExport].
Mostey is offline  
Reply


Similar Threads Similar Threads
Injecting ..
02/02/2015 - S4 League - 6 Replies
Why when want to inject bypass , inject failed ? Pls help me :/
.lua injecting?
07/18/2012 - League of Legends - 0 Replies
hallo zusammen. gibt es jetzt, da sich fpb verabschiedet hat eine weitere möglichkeit all die scripts zu injecten?
DOTBLOCK - $1 UNMANAGED VPS - Limited Time Only!
02/18/2012 - Trading - 21 Replies
Founded in 2006, DotBlock is an award-winning virtualization company offering unmanaged linux VPS and windows VPS hosting. Business is Personal and that's how we feel at DotBlock. Our service is centered around positive vendor-client relationships and our main focus at DotBlock is the customer. DOTBLOCK $1 VPS SALE (coupon code: 30day) $1 $1 $1 $1 $1 $1 $1 $1 $1 $1 $1 $1 $1 $1 $1 $1 $1 $1 $1 $1 $1 $1 $1 $1 $1 For a limited time only, DotBlock is offering $1 for your first month...
Help by injecting
10/01/2010 - Combat Arms Hacks, Bots, Cheats & Exploits - 3 Replies
Some people say their hacks dont work but you always can use Gordon 1.4.0 You dont need to have an account for it. Just download gordonsys loader, open it and than u see login screen. But above login screen there are some tabs, click on injector, type by process Engine.exe click on pick library, choose your .dll file fill in by delay 0 (or 1000) click on stealth injection, (If u want to keep this settings click on Add library) click inject, And enjoy playing, (srry for my bad english)...



All times are GMT +2. The time now is 03:50.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.