Docs: fix comments
This commit is contained in:
parent
3e72e21fab
commit
7042dfb8d9
@ -1,25 +1,21 @@
|
|||||||
package projVars
|
package common
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
|
|
||||||
bluetooth "git.tcp.direct/kayos/prototooth"
|
bluetooth "git.tcp.direct/kayos/prototooth"
|
||||||
"github.com/rs/zerolog"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//The initial list of device in the area
|
type Config struct {
|
||||||
var ScanList map[string]string
|
}
|
||||||
|
|
||||||
var InitResults []string
|
var InitResults []string
|
||||||
|
|
||||||
// Place holder for
|
// ManuFile is a place holder for a file with list of all known Manufacturers
|
||||||
// File with list of all known Manufacturers
|
// this is actually stored by eros and likely deprecated.
|
||||||
// is probably unneeded*****
|
|
||||||
var ManuFile = "./ManufUUID.json"
|
var ManuFile = "./ManufUUID.json"
|
||||||
|
|
||||||
//var to hold service UUIDs
|
// AdapterInUse TODO: use this or refactor it
|
||||||
var SrvcUUID bluetooth.UUID
|
|
||||||
|
|
||||||
var AdapterInUse = *&bluetooth.Adapter{}
|
var AdapterInUse = *&bluetooth.Adapter{}
|
||||||
|
|
||||||
var AttackMode bool = false
|
var AttackMode bool = false
|
||||||
@ -27,17 +23,17 @@ var TrackingMode bool = false
|
|||||||
|
|
||||||
// var SrvcUUIDList map[uint32]string
|
// var SrvcUUIDList map[uint32]string
|
||||||
|
|
||||||
//hold the values for the initial ble scan results..
|
// ScanResChan hold the values for the initial ble scan results..
|
||||||
// ... i.e. the mac and broadcast name string
|
// ... i.e. the mac and broadcast name string
|
||||||
var C = make(chan bluetooth.ScanResult)
|
var ScanResChan = make(chan bluetooth.ScanResult)
|
||||||
|
|
||||||
//the BLE adapter --duh
|
// ScanAdapter the BLE adapter --duh
|
||||||
// var Adapter = bluetooth.DefaultAdapter
|
// var Adapter = bluetooth.DefaultAdapter
|
||||||
var ScanAdapter = bluetooth.DefaultAdapter
|
var ScanAdapter = bluetooth.DefaultAdapter
|
||||||
|
|
||||||
var AttackAdapter = bluetooth.DefaultAdapter
|
var AttackAdapter = bluetooth.DefaultAdapter
|
||||||
|
|
||||||
//Device to be targeted --not fully implemented
|
// DFlag Device to be targeted --not fully implemented
|
||||||
// var Target = flag.String("t", "00:00:00:00:00:00", "Target device to attack")
|
// var Target = flag.String("t", "00:00:00:00:00:00", "Target device to attack")
|
||||||
var DFlag = flag.Bool("d", false, "global debug logging and pretty printing")
|
var DFlag = flag.Bool("d", false, "global debug logging and pretty printing")
|
||||||
var AFlag = flag.Bool("a", false, "attack mode")
|
var AFlag = flag.Bool("a", false, "attack mode")
|
||||||
@ -47,17 +43,9 @@ var WAFlag = flag.String("w", "00:00:00:00:00:00", "MAC address of target")
|
|||||||
|
|
||||||
var Debug bool = false
|
var Debug bool = false
|
||||||
|
|
||||||
//flag.Parse()
|
// SonosScanTest Service UUIDs for testing
|
||||||
|
|
||||||
//var attacker bluetooth.Addresser
|
|
||||||
|
|
||||||
var log *zerolog.Logger
|
|
||||||
|
|
||||||
//Service UUIDs for testing
|
|
||||||
var SonosScanTest = bluetooth.New16BitUUID(0xfe07)
|
var SonosScanTest = bluetooth.New16BitUUID(0xfe07)
|
||||||
var AppleScanTest = bluetooth.New16BitUUID(0x004c)
|
var AppleScanTest = bluetooth.New16BitUUID(0x004c)
|
||||||
|
|
||||||
//var ServiceUUID16Out
|
// WrathTarget target to attack with wrath
|
||||||
|
|
||||||
//target to attack with wrath
|
|
||||||
var WrathTarget = bluetooth.Address{}
|
var WrathTarget = bluetooth.Address{}
|
||||||
|
Loading…
Reference in New Issue
Block a user