about summary refs log tree commit diff
path: root/src/logic.go
blob: 5bc64616e6bd9643ac00fe85bf063d348f08cc2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
}