views
6
likes
1

Comments

What do you think?
No comments yet.
Free

MaSigAPI

Version: 0.1.018 days ago

using System; using System.Runtime.InteropServices; using System.Text; using System.Net.Http; using Microsoft.Win32; namespace Vanta { public static class VantaAPI { private const string DllName = "VantaAPI.dll"; [DllImport(DllName, CallingConvention = CallingConvention.StdCall)] private static extern bool Initialize(); [DllImport(DllName, CallingConvention = CallingConvention.StdCall)] private static extern uint FindRobloxProcess(); [DllImport(DllName, CallingConvention = CallingConvention.StdCall)] private static extern bool Connect(uint pid); [DllImport(DllName, CallingConvention = CallingConvention.StdCall)] private static extern void Disconnect(); [DllImport(DllName, CallingConvention = CallingConvention.StdCall)] public static extern uint GetRobloxPid(); [DllImport(DllName, CallingConvention = CallingConvention.StdCall)] private static extern void RedirConsole(); [DllImport(DllName, CallingConvention = CallingConvention.StdCall)] public static extern UIntPtr GetDataModel(); [DllImport(DllName, CallingConvention = CallingConvention.StdCall)] public static extern int GetJobCount(); [DllImport(DllName, CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)] private static extern int ExecuteScript([MarshalAs(UnmanagedType.LPStr)] string source, int sourceLen); [DllImport(DllName, CallingConvention = CallingConvention.StdCall)] private static extern int GetLastExecError(StringBuilder buffer, int bufLen); [DllImport(DllName, CallingConvention = CallingConvention.StdCall)] public static extern bool ReadMemory(UIntPtr address, IntPtr buffer, UIntPtr size); [DllImport(DllName, CallingConvention = CallingConvention.StdCall)] public static extern bool WriteMemory(UIntPtr address, IntPtr buffer, UIntPtr size); [DllImport(DllName, CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)] public static extern bool GetClientInfo(StringBuilder buffer, int maxSize); public static bool Attach() { if (!Initialize()) return false; uint pid = FindRobloxProcess(); if (pid == 0) return false; return Connect(pid); } public static bool IsAttached() { return GetRobloxPid() != 0; } public static bool Execute(string script) { if (string.IsNullOrEmpty(script)) return false; int result = ExecuteScript(script, script.Length); return result == 0; } public static string GetLastError() { var sb = new StringBuilder(1024); GetLastExecError(sb, sb.Capacity); return sb.ToString(); } public static T Read<T>(UIntPtr address) where T : struct { int size = Marshal.SizeOf(typeof(T)); IntPtr ptr = Marshal.AllocHGlobal(size); try { if (ReadMemory(address, ptr, (UIntPtr)size)) { return Marshal.PtrToStructure<T>(ptr); } return default; } finally { Marshal.FreeHGlobal(ptr); } } } }



all-ages
Nothing has been posted to this project page yet. Check back later!