Esempio n. 1
0
        private void DisassembleSection(decimal vaddr, decimal vsize, Stream stream)
        {
            string colors = rizin.CommandString("e scr.color");
            string lines  = rizin.CommandString("e asm.lines");

            rizin.Command("e scr.color=0");
            rizin.Command("e asm.lines=false");
            string opcodes = rizin.CommandString($"pD {vsize} @{vaddr}");

            rizin.Command($"e scr.color={colors}");
            rizin.Command($"e asm.lines={lines}");
            byte[] data = Encoding.UTF8.GetBytes(opcodes);
            stream.Write(data, 0, data.Length);
        }
Esempio n. 2
0
        private void MapMainFileToOffsetZero()
        {
            string mainFilePath = rizin.CommandString("o.").TrimEnd();

            rizin.Command($"on \"{mainFilePath}\" 0x0");
        }