예제 #1
0
        public void TestCanOpenBasicWindow32()
        {
            // use BasicWindow32.exe as our victim
            // make sure it's already running
            Process notepad = ProcessQuery.OpenProcessByName("BasicWindow32.exe");

            Assert.False(notepad.Equals(default));
예제 #2
0
파일: Program.cs 프로젝트: h4nsbr1x/h4xbr1x
        static void Main(string[] args)
        {
            /*const string kernel32dump = "..\\..\\..\\..\\basicwindow32_kernel32.bin";
             * if (!File.Exists(kernel32dump))
             * {
             *  Console.WriteLine("Can't load file {0:s}", kernel32dump);
             *  return;
             * }
             * var kernel32mem = File.ReadAllBytes(kernel32dump);
             * var peFile = PeParser.ParseFromMem(kernel32mem);*/


            Process dummy = ProcessQuery.OpenProcessByName("BasicWindow32.exe");

            var dll = new InjectedDll("C:\\Users\\User\\source\\repos\\H4xbr1x\\H4xbr1xDemo\\hl1dll32.dll", dummy);

            dll.Inject();

            Console.ReadLine();

            Console.WriteLine("Unloading DLL");

            dll.UnInject();
        }