Am a big ol dum dum
This commit is contained in:
commit
8d5e1ab6b8
@ -38,12 +38,13 @@ var (
|
|||||||
dbs = []string{
|
dbs = []string{
|
||||||
"devices", // details about devices discovered
|
"devices", // details about devices discovered
|
||||||
"exploits", // details about exploits to be used against BLE devices
|
"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
|
"manufacturers", // manufacturer to UUID correlations and info
|
||||||
}
|
}
|
||||||
|
|
||||||
err error
|
err error
|
||||||
Manufacturers ManufData
|
Manufacturers ManufData
|
||||||
|
Exploits Exploit
|
||||||
|
|
||||||
// DataDir - should be defined by config or cmd flag
|
// DataDir - should be defined by config or cmd flag
|
||||||
DataDir string = "./.eros-data/"
|
DataDir string = "./.eros-data/"
|
||||||
@ -352,6 +353,11 @@ func Trauma(exp *Exploit) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func FinalizeExploit(bigidea Exploit) *Exploit {
|
||||||
|
bigidea.mu = &sync.RWMutex{}
|
||||||
|
return &bigidea
|
||||||
|
}
|
||||||
|
|
||||||
// Known - check if an exploit is present in the database
|
// Known - check if an exploit is present in the database
|
||||||
func Known(Addr string) bool {
|
func Known(Addr string) bool {
|
||||||
if DB["exploits"].Has([]byte(Addr)) {
|
if DB["exploits"].Has([]byte(Addr)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user