Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Runtime.InteropServices;
- namespace RobloxExecutorAPI
- {
- class Program
- {
- [DllImport("kernel32.dll")]
- public static extern IntPtr OpenProcess(uint dwDesiredAccess, bool bInheritHandle, int dwProcessId);
- [DllImport("kernel32.dll")]
- public static extern bool WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, byte[] lpBuffer, uint nSize, out IntPtr lpNumberOfBytesWritten);
- static void Main(string[] args)
- {
- IntPtr processHandle = OpenProcess(0x1F0FFF, false, Process.GetProcessesByName("RobloxPlayerBeta")[0].Id);
- byte[] bypassCode = { 0x31, 0xC0, 0xC3 };
- IntPtr address = new IntPtr(0x1F9D7F0);
- IntPtr bytesWritten;
- WriteProcessMemory(processHandle, address, bypassCode, 3, out bytesWritten);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement