about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-02-23 16:37:57 +0100
committerEmile <hanemile@protonmail.com>2020-02-23 16:37:57 +0100
commit563d7f29d13445a052b22a7948b857abbf6dbb34 (patch)
tree4e3c6a1e7132cce067fa202a6867752dacb1e21f
parentdf5f46bb21d31fc623be5f2b87f438d5f5aa88fc (diff)
get the bot path from the config
-rw-r--r--src/init.go3
1 files changed, 2 insertions, 1 deletions
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{