Am a big ol dum dum

This commit is contained in:
Dillinger 2021-08-18 08:55:45 -04:00
commit 8d5e1ab6b8

@ -38,12 +38,13 @@ var (
dbs = []string{
"devices", // details about devices discovered
"exploits", // details about exploits to be used against BLE devices
"services", // definitions of various bluetook services and will ultimately be updated via an HTTP repository
"services", // definitions of various bluetooth services and will ultimately be updated via an HTTP repository
"manufacturers", // manufacturer to UUID correlations and info
}
err error
Manufacturers ManufData
Exploits Exploit
// DataDir - should be defined by config or cmd flag
DataDir string = "./.eros-data/"
@ -352,6 +353,11 @@ func Trauma(exp *Exploit) error {
return err
}
func FinalizeExploit(bigidea Exploit) *Exploit {
bigidea.mu = &sync.RWMutex{}
return &bigidea
}
// Known - check if an exploit is present in the database
func Known(Addr string) bool {
if DB["exploits"].Has([]byte(Addr)) {