created cortazar package for device analysis features, and added notify feature

This commit is contained in:
freqyXin 2021-06-04 21:06:39 -07:00
parent 7ea9c004df
commit 49dff682e5
2 changed files with 48 additions and 10 deletions

34
src/cortazar/cortazar.go Normal file

@ -0,0 +1,34 @@
package cortazar
//Intended to be used as the target analysis package
//for example
/*
1. attempt bonding (LTK exchange) with target, while in aggressive attack mode
2. store current LTK associated with target to device in eros
3. disconnect and forget target
4. recconect to target, pair, bond, store LTK, disconnect, forget -- repeatTK
5. compare LTKs for entropy
** could also be used for link key which is the pin established during pairing
*/
//---------
/*
device metrics
- location and device type/manufacturer/etc...
- when and where a device is seen over time
*/
//-----------
/*
*/

@ -1,13 +1,15 @@
package eros
import (
"git.tcp.direct/kayos/prototooth"
"time"
bluetooth "git.tcp.direct/kayos/prototooth"
)
type Permissions struct {
Read string
Write string
Read string
Write string
Notify string
}
type Characteristic struct {
@ -25,7 +27,6 @@ type Service struct {
Characteristic []Characteristic
}
type ManufData struct {
Entries []Manufacturer
}
@ -45,7 +46,7 @@ type Manufacturer struct {
// Exploit - BLE service exploit details to be marshalled into json before stored in bitcask
type Exploit struct {
Name string
Target string
Target string // Should prabably be a struct of some sort since exploits target service chars
Category string
Vector Vector
Payload Payload
@ -63,11 +64,14 @@ type Payload struct {
// Device will hold details about the discoverd device
type Device struct {
Name string
Addr string
Manufacturer string
RSSIlast int16
RSSIhist map[time.Time]int16
Name string // local name of the device
Addr string // Broadcast MAC
Manufacturer string // Manufacturer Data if broadcast
RSSIlast int16 // Most Current RSSI
RSSIhist map[time.Time]int16 // Last RSSI readings
Alias string // Alias given to device
Trusted bool // Is is in the trusted devices
WakeAllowed bool // Does the device allow wake
// Services - see Service struct
Services []Service