diff options
author | Emile <hanemile@protonmail.com> | 2020-02-23 16:42:50 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2020-02-23 16:42:50 +0100 |
commit | ccb34dfdc89efad09fa59f4bd5080b10a482c94c (patch) | |
tree | ba856ee290e7c73be29548736c0c8765ecaaa935 /src/logic.go | |
parent | f0c4704b2229ceef35ded1c65f05f92f03fe9f41 (diff) |
dead logic
Diffstat (limited to 'src/logic.go')
-rw-r--r-- | src/logic.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/logic.go b/src/logic.go new file mode 100644 index 0000000..5bc6461 --- /dev/null +++ b/src/logic.go @@ -0,0 +1,17 @@ +package main + +import ( + "log" + + "github.com/radare/r2pipe-go" +) + +func dead(r2p *r2pipe.Pipe, botid int) bool { + status := r2cmd(r2p, "?v 1+theend") + + if status != "" && status != "0x1" { + log.Printf("[!] Bot %d has died", botid) + return true + } + return false +} |