From 4fc5cb4c6d6296c96e4ecb0aad7816ae78000553 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 23 Feb 2020 16:39:36 +0100 Subject: radare theming + logrus --- src/init.go | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'src/init.go') diff --git a/src/init.go b/src/init.go index f8bfb74..4b3f2d9 100644 --- a/src/init.go +++ b/src/init.go @@ -62,18 +62,29 @@ func initArena(config *Config) *r2pipe.Pipe { _ = r2cmd(r2p, fmt.Sprintf("e asm.bits = %d", config.Bits)) // enable colors - _ = r2cmd(r2p, "e scr.color = true") + // _ = r2cmd(r2p, "e scr.color = 0") + _ = r2cmd(r2p, "e scr.color = 3") + _ = r2cmd(r2p, "e scr.color.args = true") + _ = r2cmd(r2p, "e scr.color.bytes = true") + _ = r2cmd(r2p, "e scr.color.grep = true") + _ = r2cmd(r2p, "e scr.color.ops = true") + _ = r2cmd(r2p, "e scr.bgfill = true") + _ = r2cmd(r2p, "e scr.color.pipe = true") + _ = r2cmd(r2p, "e scr.utf8 = true") + + // hex column width + _ = r2cmd(r2p, "e hex.cols = 32") - log.Println("[+] Initializing the ESIL VM") // initialize ESIL VM state + logrus.Debug("Initializing the ESIL VM") _ = r2cmd(r2p, "aei") // initialize ESIL VM stack + logrus.Debug("Initializing the ESIL Stack") _ = r2cmd(r2p, "aeim") // return the pipe return r2p - } // getRandomOffsets returns random offsets for all bots -- cgit 1.4.1