diff --git a/AsyncRAT-C#/Server/StreamLibrary/NativeMethods.cs b/AsyncRAT-C#/Server/StreamLibrary/NativeMethods.cs new file mode 100644 index 0000000..f77a55a --- /dev/null +++ b/AsyncRAT-C#/Server/StreamLibrary/NativeMethods.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.InteropServices; +using System.Text; +using System.Threading.Tasks; + +namespace Server.StreamLibrary +{ + public static class NativeMethods + { + [DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl)] + public static extern unsafe int memcmp(byte* ptr1, byte* ptr2, uint count); + + [DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl)] + public static extern int memcpy(IntPtr dst, IntPtr src, uint count); + + [DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl)] + public static extern unsafe int memcpy(void* dst, void* src, uint count); + } +}