pwnieexpress / blue_hydra

Blue Hydra
Other
840 stars 109 forks source link

Lt on a budget #107

Closed ZeroChaos- closed 7 years ago

ZeroChaos- commented 7 years ago
zero@gato ~ % telnet localhost 1124
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
bluetooth
{"A4:77:33:FD:8B:D3":{"signal":[{"ts":1503005554,"dbm":-75},{"ts":1503005570,"dbm":-74},{"ts":1503005570,"dbm":-74},{"ts":1503005594,"dbm":-67},{"ts":1503005594,"dbm":-68},{"ts":1503005611,"dbm":-73}]},"A4:77:33:65:E1:3B":{"signal":[{"ts":1503005554,"dbm":-80},{"ts":1503005570,"dbm":-75},{"ts":1503005570,"dbm":-75},{"ts":1503005595,"dbm":-78},{"ts":1503005595,"dbm":-67},{"ts":1503005611,"dbm":-78},{"ts":1503005611,"dbm":-78}]},"00:EA:23:29:0D:24":{"signal":[{"ts":1503005558,"dbm":-77},{"ts":1503005570,"dbm":-88},{"ts":1503005573,"dbm":-77},{"ts":1503005601,"dbm":-80},{"ts":1503005601,"dbm":-80},{"ts":1503005611,"dbm":-79},{"ts":1503005611,"dbm":-79}]},"00:EA:23:29:0D:27":{"signal":[{"ts":1503005575,"dbm":-73},{"ts":1503005598,"dbm":-76},{"ts":1503005598,"dbm":-76}]}}
Connection closed by foreign host.
zero@gato ~ % telnet localhost 1124
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
ah ah ah, you didn't say the magic word
Connection closed by foreign host.
ZeroChaos- commented 7 years ago

This "works", but unlike with wifi, mac addresses are not a be all end all for bluetooth. We should probably add in more modes but then it gets hard so for now it's just this.

tmossey commented 7 years ago

Can we drop the 'signal' key (and nested hash) and pair each array of measurement tuples to mac address? I read your note; I get that mac address is not the be all end all, but here we'd have to key off mac address to access the nested hash anyway, only to key off 'signal' (the only key in the nested hash).