Example #1
0
        static void Main()
        {
            Console.WriteAscii("Rhydon v1.0.0", Color.Coral);
            Console.WriteLine(new string(' ', 44) + "by xsilent007 & TobitoFatito\n", Color.White);

            var ctx = new RhydonContext {
                Module = ModuleDefMD.Load("Test.exe"),
                Logger = new Logger()
            };

            Resolver.ResolveAssemblies(ctx);
            KoiHeader.Parse(ctx);
            OpCodeMap.Parse(ctx);
            VirtualizedMethods.Parse(ctx);

            var emu = new KoiEmulator(ctx, ctx.Header.Methods[2]);

            emu.EmulateNext();
            emu.EmulateNext();
            emu.EmulateNext();
            emu.EmulateNext();
            emu.EmulateNext();
            emu.EmulateNext();
            emu.EmulateNext();
            emu.EmulateNext();
            emu.EmulateNext();
            emu.EmulateNext();
            emu.EmulateNext();
            emu.EmulateNext();
            emu.EmulateNext();
            emu.EmulateNext();
            emu.EmulateNext();

            Console.ReadLine();
        }
Example #2
0
        public void TestNoKoiHeader()
        {
            var mod = new ModuleDefUser("test");
            var ms  = new MemoryStream();

            mod.Write(ms);

            var ctx = new RhydonContext {
                Module = ModuleDefMD.Load(ms), Logger = new DummyLogger()
            };

            KoiHeader.Parse(ctx);
            Assert.IsNull(ctx.Header);

            ms.Close();
        }