Merge branch 'development' of ssh://git.tcp.direct:2222/freqy/protomolecule into development
This commit is contained in:
commit
b022d32ffe
11
main.go
11
main.go
@ -15,6 +15,7 @@ import (
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
// ScanMgr will keep track of concurrently running scans
|
||||
var ScanMgr *scanStuff.Meta
|
||||
|
||||
func listen() {
|
||||
@ -31,6 +32,10 @@ func listen() {
|
||||
if *projVars.TFlag {
|
||||
projVars.TrackingMode = true
|
||||
}
|
||||
|
||||
if *projVars.MFlag != "0" {
|
||||
projVars.ManuFile = *projVars.MFlag
|
||||
}
|
||||
}
|
||||
|
||||
func obey() {
|
||||
@ -90,8 +95,12 @@ func init() {
|
||||
|
||||
// see ./src/eros
|
||||
log.Debug().Msg("Initializing database engine")
|
||||
|
||||
eros.Awaken()
|
||||
eros.ManufLoad()
|
||||
|
||||
if *projVars.MFlag != "0" {
|
||||
eros.ManufLoad()
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
File diff suppressed because one or more lines are too long
@ -44,6 +44,7 @@ var AttackAdapter = bluetooth.DefaultAdapter
|
||||
var DFlag = flag.Bool("d", false, "global debug logging and pretty printing")
|
||||
var AFlag = flag.Bool("a", false, "attack mode")
|
||||
var TFlag = flag.Bool("t", false, "device tracking mode")
|
||||
var MFlag = flag.String("m", "0", "json file with manufacturer identifying data to preload into eros")
|
||||
|
||||
//flag.Parse()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user