From 563d7f29d13445a052b22a7948b857abbf6dbb34 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 23 Feb 2020 16:37:57 +0100 Subject: get the bot path from the config --- src/init.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/init.go b/src/init.go index b512ecb..7ebbd8b 100644 --- a/src/init.go +++ b/src/init.go @@ -36,7 +36,8 @@ func buildBot(i int, config *Config) { // // This uses the given architecture, the given bitness and the given path in // rasm2 to compile the bot - radareCommand := fmt.Sprintf("rasm2 -a %s -b %d -f %s", config.Arch, config.Bits, path) + botPath := config.Bots[i].Path + radareCommand := fmt.Sprintf("rasm2 -a %s -b %d -f %s", config.Arch, config.Bits, botPath) botSource := r2cmd(r2p1, radareCommand) bot := Bot{ -- cgit 1.4.1