From 55260e71322d1daca79a32802defc2f6c123fbbb Mon Sep 17 00:00:00 2001 From: freqyXin Date: Mon, 14 Jun 2021 16:31:42 -0700 Subject: [PATCH] pushing work on wrath -- this function is not working yet --- src/wrath/wrath.go | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/src/wrath/wrath.go b/src/wrath/wrath.go index 5858290..2ee8ffb 100644 --- a/src/wrath/wrath.go +++ b/src/wrath/wrath.go @@ -1,9 +1,32 @@ package wrath -import bluetooth "git.tcp.direct/kayos/prototooth" +import ( + projVars "protomolecule/src/vars" + + bluetooth "git.tcp.direct/kayos/prototooth" + "github.com/rs/zerolog/log" +) //used for offensive operations -func wrath(bluetooth.Address) { +func targetPicture() bluetooth.MAC { + + ingest := projVars.WAFlag + + target, err := bluetooth.ParseMAC(*ingest) + if err != nil { + log.Err(err).Msg("Error") + } + + a := bluetooth.Address{ + MACAddress: target, + } + + return target } + +func wrath(bluetooth.Address) { + + bluetooth.DefaultAdapter.Connect(targetPicture(), bluetooth.ConnectionParams{}) +}