Ejemplo n.º 1
0
        public static BinHook CreateJMP(int hookLen, params BinElement[] code)
        {
            var hook = new BinHook(hookLen, null, new byte[1] {
                0xE9
            });

            foreach (BinElement element in code)
            {
                hook.Add(element);
            }

            return(hook);
        }
Ejemplo n.º 2
0
        public static BinaryEdit CreateEdit(string ident, int hookLen, params BinElement[] code)
        {
            var hook = new BinHook(hookLen, ident, new byte[1] {
                0xE9
            });

            foreach (BinElement element in code)
            {
                hook.Add(element);
            }

            return(new BinaryEdit(ident)
            {
                hook,
                new BinLabel(ident)
            });
        }