• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

Parasite-Invoke (Spread)

Status
Not open for further replies.

dEEpEst

☣☣ In The Depths ☣☣
Staff member
Administrator
Super Moderator
Hacker
Specter
Crawler
Shadow
Joined
Mar 29, 2018
Messages
13,859
Solutions
4
Reputation
27
Reaction score
45,545
Points
1,813
Credits
55,080
‎7 Years of Service‎
 
56%
Hide your P/Invoke signatures through other people's signed assemblies!

311028283-74bc4b69-cc38-493a-8ac2-1132f597e9b1.png


Example:

using System;
using System.Reflection;
using System.Runtime.InteropServices;

namespace Template
{
class Program
{
static void Main()
{
Assembly asm = Assembly.LoadFrom(@"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\WPF\UIAutomationClientsideProviders.dll");
Type t = asm.GetType("MS.Win32.UnsafeNativeMethods", true);
var methodInfo = t.GetMethod("VirtualAlloc", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static);
IntPtr result = (System.IntPtr)methodInfo.Invoke(null, new object[] { IntPtr.Zero, new UIntPtr(10), 0x3000, 0x40 } );
Marshal.Copy(new byte[] { 1, 2, 3 }, 0, result, 3);
Console.WriteLine(result);
return;
}

}
}


Download:

To see this hidden content, you must like this content.
 
Status
Not open for further replies.
Back
Top