diff options
author | Emile <hanemile@protonmail.com> | 2020-02-23 16:39:14 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2020-02-23 16:39:14 +0100 |
commit | b25e599b6dc64c84db86be1a9f4b31ef003e8eaa (patch) | |
tree | 8af91836d623ece0a19de24950721fe6c647ffbb /src/init.go | |
parent | 52d7e6616c9f1a6fb461cd40c3dfc7edc9607db1 (diff) |
logrus
Diffstat (limited to 'src/init.go')
-rw-r--r-- | src/init.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/init.go b/src/init.go index 2bf600b..f8bfb74 100644 --- a/src/init.go +++ b/src/init.go @@ -44,16 +44,18 @@ func buildBot(i int, config *Config) { } // init initializes the arena -func initArena(config Config) *r2pipe.Pipe { - log.Println("[+] Initializing the arena") - log.Printf("[ ] Allocating %d bytes of memory...", config.Memsize) +func initArena(config *Config) *r2pipe.Pipe { - // alocate memory + logrus.Info("Initializing the arena") + logrus.Debugf("Allocating %d bytes of memory...", config.Memsize) + + // allocate memory r2p, err := r2pipe.NewPipe(fmt.Sprintf("malloc://%d", config.Memsize)) if err != nil { panic(err) } - log.Println("[+] Memoy successfully allocated \\o/") + + logrus.Info("Memoy successfully allocated") // define the architecture and the bitness _ = r2cmd(r2p, fmt.Sprintf("e asm.arch = %s", config.Arch)) |